From 41f9e3edf5fbccc0a21303c84ec47621a5909a48 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 31 Oct 2024 20:04:09 +0000 Subject: [PATCH 01/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 ++-- pkg/apis/ui/v1/ui_types.go | 7 ++++++- pkg/openapi/zz_generated.openapi.go | 9 ++++++++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 84109912..dc3ca0b9 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 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/agentapi/v4 v4.1.0-alpha.19 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 7e4f65bc..671fe034 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 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/agentapi/v4 v4.1.0-alpha.19 h1:YoSavyYFrGN2diMO3qLLz89ufbeuiKaOADahBPgURGk= +github.com/loft-sh/agentapi/v4 v4.1.0-alpha.19/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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index b5cd94b1..91c2f8bc 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -34,11 +34,16 @@ type UISettingsSpec struct { // +optional Offline bool `json:"offline,omitempty"` - // HasHelmRelease indicates whether loft has been installed via Helm + // HasHelmRelease indicates whether the vCluster Platform instance + // has been installed via Helm HasHelmRelease bool `json:"hasHelmRelease,omitempty"` // DefaultVClusterVersion is the default version of vClusters DefaultVClusterVersion string `json:"defaultVClusterVersion,omitempty"` + + // LoftHosted indicates whether the vCluster Platform instance + // is hosted and operated by Loft Labs Inc. + LoftHosted bool `json:"loftHosted,omitempty"` } type UISettingsConfig struct { diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index a60f689e..2e5b689c 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -28483,7 +28483,7 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O }, "hasHelmRelease": { SchemaProps: spec.SchemaProps{ - Description: "HasHelmRelease indicates whether loft has been installed via Helm", + Description: "HasHelmRelease indicates whether the vCluster Platform instance has been installed via Helm", Type: []string{"boolean"}, Format: "", }, @@ -28495,6 +28495,13 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Format: "", }, }, + "loftHosted": { + SchemaProps: spec.SchemaProps{ + Description: "LoftHosted indicates whether the vCluster Platform instance is hosted and operated by Loft Labs Inc.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, From 0fe28c2e0287f57bb332d9e6f6395994b0ac2d24 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:35:16 +0000 Subject: [PATCH 02/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- .../install/zz_generated.api.register.go | 1 + ...lclusterinstance_externaldatabase_types.go | 34 ++++ .../v1/virtualclusterinstance_types.go | 2 + .../v1/zz_generated.api.register.go | 14 ++ .../management/v1/zz_generated.conversion.go | 134 ++++++++++++++++ .../management/v1/zz_generated.deepcopy.go | 93 +++++++++++ .../management/zz_generated.api.register.go | 36 ++++- pkg/apis/management/zz_generated.deepcopy.go | 93 +++++++++++ .../v1/fake/fake_virtualclusterinstance.go | 12 ++ .../management/v1/virtualclusterinstance.go | 16 ++ pkg/openapi/zz_generated.openapi.go | 149 +++++++++++++++++- 13 files changed, 578 insertions(+), 12 deletions(-) create mode 100644 pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go diff --git a/go.mod b/go.mod index dc3ca0b9..feeb4cae 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 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.19 + github.com/loft-sh/agentapi/v4 v4.1.0-alpha.21 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 671fe034..46a8aca1 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 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.19 h1:YoSavyYFrGN2diMO3qLLz89ufbeuiKaOADahBPgURGk= -github.com/loft-sh/agentapi/v4 v4.1.0-alpha.19/go.mod h1:CXweRDab9ZcSzcaitULFagYGgSzW8Q12W3cBdKMjR8k= +github.com/loft-sh/agentapi/v4 v4.1.0-alpha.21 h1:P4cotygKNhYiwFPaDSCeUSeGQPT/2CIX0vIbdHwxfWc= +github.com/loft-sh/agentapi/v4 v4.1.0-alpha.21/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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index bbc8be27..6480568d 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -136,6 +136,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.VirtualClusterInstance{}, &management.VirtualClusterInstanceList{}, &management.VirtualClusterAccessKey{}, + &management.VirtualClusterExternalDatabase{}, &management.VirtualClusterInstanceKubeConfig{}, &management.VirtualClusterInstanceLog{}, &management.VirtualClusterTemplate{}, diff --git a/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go new file mode 100644 index 00000000..1fd3701f --- /dev/null +++ b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go @@ -0,0 +1,34 @@ +package v1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters +// +subresource-request +type VirtualClusterExternalDatabase struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec VirtualClusterExternalDatabaseSpec `json:"spec,omitempty"` + Status VirtualClusterExternalDatabaseStatus `json:"status,omitempty"` +} + +type VirtualClusterExternalDatabaseSpec struct { + // Connector specifies the secret that should be used to connect to an external database server. The connection is + // used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and + // database is returned on status. The secret specified by connector should contain the following fields: + // endpoint - the endpoint where the database server can be accessed + // user - the database username + // password - the password for the database username + // port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly + // 3306 + // +optional + Connector string `json:"connector,omitempty"` +} + +type VirtualClusterExternalDatabaseStatus struct { + // DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and + // database are created from the given connector. + DataSource string `json:"dataSource,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclusterinstance_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index 3dc28a2f..c0b87f1a 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -11,6 +11,7 @@ import ( // +genclient:noStatus // +genclient:method=GetKubeConfig,verb=create,subresource=kubeconfig,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig // +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey +// +genclient:method=GetExternalDatabase,verb=create,subresource=externaldatabase,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -19,6 +20,7 @@ import ( // +subresource:request=VirtualClusterInstanceLog,path=log,kind=VirtualClusterInstanceLog,rest=VirtualClusterInstanceLogREST // +subresource:request=VirtualClusterInstanceKubeConfig,path=kubeconfig,kind=VirtualClusterInstanceKubeConfig,rest=VirtualClusterInstanceKubeConfigREST // +subresource:request=VirtualClusterAccessKey,path=accesskey,kind=VirtualClusterAccessKey,rest=VirtualClusterAccessKeyREST +// +subresource:request=VirtualClusterExternalDatabase,path=externaldatabase,kind=VirtualClusterExternalDatabase,rest=VirtualClusterExternalDatabaseREST type VirtualClusterInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 631c4d13..de255385 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -127,6 +127,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &VirtualClusterInstance{}, &VirtualClusterInstanceList{}, &VirtualClusterAccessKey{}, + &VirtualClusterExternalDatabase{}, &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, &VirtualClusterTemplate{}, @@ -371,6 +372,11 @@ var ( func() runtime.Object { return &VirtualClusterAccessKey{} }, // Register versioned resource nil, management.NewVirtualClusterAccessKeyREST), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterExternalDatabaseREST, + func() runtime.Object { return &VirtualClusterExternalDatabase{} }, // Register versioned resource + nil, + management.NewVirtualClusterExternalDatabaseREST), builders.NewApiResourceWithStorage( management.InternalVirtualClusterInstanceKubeConfigREST, func() runtime.Object { return &VirtualClusterInstanceKubeConfig{} }, // Register versioned resource @@ -1015,6 +1021,14 @@ type VirtualClusterAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterExternalDatabaseList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterExternalDatabase `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterInstanceKubeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 28128504..26772823 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -2659,6 +2659,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); 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 { @@ -9532,6 +9572,100 @@ func Convert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKe return autoConvert_management_VirtualClusterAccessKeyList_To_v1_VirtualClusterAccessKeyList(in, out, s) } +func autoConvert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in *VirtualClusterExternalDatabase, out *management.VirtualClusterExternalDatabase, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in *VirtualClusterExternalDatabase, out *management.VirtualClusterExternalDatabase, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabase_To_management_VirtualClusterExternalDatabase(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in *management.VirtualClusterExternalDatabase, out *VirtualClusterExternalDatabase, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in *management.VirtualClusterExternalDatabase, out *VirtualClusterExternalDatabase, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabase_To_v1_VirtualClusterExternalDatabase(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in *VirtualClusterExternalDatabaseList, out *management.VirtualClusterExternalDatabaseList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterExternalDatabase)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in *VirtualClusterExternalDatabaseList, out *management.VirtualClusterExternalDatabaseList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabaseList_To_management_VirtualClusterExternalDatabaseList(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in *management.VirtualClusterExternalDatabaseList, out *VirtualClusterExternalDatabaseList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterExternalDatabase)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in *management.VirtualClusterExternalDatabaseList, out *VirtualClusterExternalDatabaseList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabaseList_To_v1_VirtualClusterExternalDatabaseList(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in *VirtualClusterExternalDatabaseSpec, out *management.VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector + return nil +} + +// Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in *VirtualClusterExternalDatabaseSpec, out *management.VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabaseSpec_To_management_VirtualClusterExternalDatabaseSpec(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in *management.VirtualClusterExternalDatabaseSpec, out *VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + out.Connector = in.Connector + return nil +} + +// Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in *management.VirtualClusterExternalDatabaseSpec, out *VirtualClusterExternalDatabaseSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterExternalDatabaseSpec(in, out, s) +} + +func autoConvert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in *VirtualClusterExternalDatabaseStatus, out *management.VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + out.DataSource = in.DataSource + return nil +} + +// Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in *VirtualClusterExternalDatabaseStatus, out *management.VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualClusterExternalDatabaseStatus(in, out, s) +} + +func autoConvert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in *management.VirtualClusterExternalDatabaseStatus, out *VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + out.DataSource = in.DataSource + return nil +} + +// Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in *management.VirtualClusterExternalDatabaseStatus, out *VirtualClusterExternalDatabaseStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterExternalDatabaseStatus_To_v1_VirtualClusterExternalDatabaseStatus(in, out, s) +} + func autoConvert_v1_VirtualClusterInstance_To_management_VirtualClusterInstance(in *VirtualClusterInstance, out *management.VirtualClusterInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(&in.Spec, &out.Spec, s); err != nil { diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 0dbb4fb9..d1b05f3f 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -7106,6 +7106,99 @@ func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabase. +func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabase) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 15c51fdc..4c757f55 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -1194,7 +1194,15 @@ var ( NewVirtualClusterAccessKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewVirtualClusterAccessKeyRESTFunc(Factory) } - NewVirtualClusterAccessKeyRESTFunc NewRESTFunc + NewVirtualClusterAccessKeyRESTFunc NewRESTFunc + InternalVirtualClusterExternalDatabaseREST = builders.NewInternalSubresource( + "virtualclusterinstances", "VirtualClusterExternalDatabase", "externaldatabase", + func() runtime.Object { return &VirtualClusterExternalDatabase{} }, + ) + NewVirtualClusterExternalDatabaseREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewVirtualClusterExternalDatabaseRESTFunc(Factory) + } + NewVirtualClusterExternalDatabaseRESTFunc NewRESTFunc InternalVirtualClusterInstanceKubeConfigREST = builders.NewInternalSubresource( "virtualclusterinstances", "VirtualClusterInstanceKubeConfig", "kubeconfig", func() runtime.Object { return &VirtualClusterInstanceKubeConfig{} }, @@ -1339,6 +1347,7 @@ var ( InternalVirtualClusterInstance, InternalVirtualClusterInstanceStatus, InternalVirtualClusterAccessKeyREST, + InternalVirtualClusterExternalDatabaseREST, InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, InternalVirtualClusterTemplate, @@ -2729,6 +2738,23 @@ type VirtualClusterAccessKey struct { AccessKey string `json:"accessKey,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type VirtualClusterExternalDatabase struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec VirtualClusterExternalDatabaseSpec `json:"spec,omitempty"` + Status VirtualClusterExternalDatabaseStatus `json:"status,omitempty"` +} + +type VirtualClusterExternalDatabaseSpec struct { + Connector string `json:"connector,omitempty"` +} + +type VirtualClusterExternalDatabaseStatus struct { + DataSource string `json:"dataSource,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -7628,6 +7654,14 @@ type VirtualClusterAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterExternalDatabaseList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterExternalDatabase `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterInstanceKubeConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index a6d83fc6..2dd0f507 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -7049,6 +7049,99 @@ func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabase. +func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabase) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *out = *in 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..f2b5c3e2 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go @@ -140,3 +140,15 @@ func (c *FakeVirtualClusterInstances) GetAccessKey(ctx context.Context, virtualC } return obj.(*v1.VirtualClusterAccessKey), err } + +// 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.NewCreateSubresourceActionWithOptions(virtualclusterinstancesResource, virtualClusterInstanceName, "externaldatabase", c.ns, virtualClusterExternalDatabase, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.VirtualClusterExternalDatabase), err +} diff --git a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go index e8fef8a2..cc7cf23f 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go @@ -31,6 +31,7 @@ type VirtualClusterInstanceInterface interface { 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) + GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *v1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (*v1.VirtualClusterExternalDatabase, error) VirtualClusterInstanceExpansion } @@ -81,3 +82,18 @@ func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClust Into(result) return } + +// GetExternalDatabase takes the representation of a virtualClusterExternalDatabase and creates it. Returns the server's representation of the virtualClusterExternalDatabase, and an error, if there is any. +func (c *virtualClusterInstances) GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *v1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (result *v1.VirtualClusterExternalDatabase, err error) { + result = &v1.VirtualClusterExternalDatabase{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("externaldatabase"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterExternalDatabase). + Do(ctx). + Into(result) + return +} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 2e5b689c..2530d09d 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -342,6 +342,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), @@ -17712,6 +17716,139 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.Refere } } +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", + Type: []string{"object"}, + 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.VirtualClusterExternalDatabaseSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "connector": { + SchemaProps: spec.SchemaProps{ + Description: "Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "dataSource": { + SchemaProps: spec.SchemaProps{ + Description: "DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and database are created from the given connector.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -29246,10 +29383,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29411,10 +29547,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29513,10 +29648,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30914,10 +31048,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From 2a6efd5edf127f39a8281bcf715b51171beb11c9 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 8 Nov 2024 08:10:25 +0000 Subject: [PATCH 03/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- pkg/apis/management/v1/config_types.go | 24 ++++++ .../management/v1/zz_generated.conversion.go | 70 +++++++++++++++++ .../management/v1/zz_generated.deepcopy.go | 38 ++++++++++ .../management/zz_generated.api.register.go | 13 +++- pkg/apis/management/zz_generated.deepcopy.go | 38 ++++++++++ pkg/openapi/zz_generated.openapi.go | 76 +++++++++++++++++-- 8 files changed, 256 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index feeb4cae..15af1ea8 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 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.21 + github.com/loft-sh/agentapi/v4 v4.1.0-beta.1 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 46a8aca1..1529bf5b 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 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.21 h1:P4cotygKNhYiwFPaDSCeUSeGQPT/2CIX0vIbdHwxfWc= -github.com/loft-sh/agentapi/v4 v4.1.0-alpha.21/go.mod h1:CXweRDab9ZcSzcaitULFagYGgSzW8Q12W3cBdKMjR8k= +github.com/loft-sh/agentapi/v4 v4.1.0-beta.1 h1:+/gPF6NmlznxHReo/C1DqlV7pLv0Jh0+kp1V2Kw0SJY= +github.com/loft-sh/agentapi/v4 v4.1.0-beta.1/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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index b8da7098..3015b113 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -69,6 +69,10 @@ type ConfigStatus struct { // DisableLoftConfigEndpoint will disable setting config via the UI and config.management.loft.sh endpoint DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + + // Cloud holkds the settings to be used exclusively in vCluster Cloud based + // environments and deployments. + Cloud *Cloud `json:"cloud,omitempty"` } // Audit holds the audit configuration options for loft. Changing any options will require a loft restart @@ -692,3 +696,23 @@ type AuthenticationOIDC struct { // +optional Type string `json:"type,omitempty"` } + +type Cloud struct { + // ReleaseChannel specifies the release channel for the cloud configuration. + // This can be used to determine which updates or versions are applied. + ReleaseChannel string `json:"releaseChannel,omitempty"` + + // MaintenanceWindow specifies the maintenance window for the cloud configuration. + // This is a structured representation of the time window during which maintenance can occur. + MaintenanceWindow MaintenanceWindow `json:"maintenanceWindow,omitempty"` +} + +type MaintenanceWindow struct { + // DayOfWeek specifies the day of the week for the maintenance window. + // It should be a string representing the day, e.g., "Monday", "Tuesday", etc. + DayOfWeek string `json:"dayOfWeek,omitempty"` + + // TimeWindow specifies the time window for the maintenance. + // It should be a string representing the time range in 24-hour format, in UTC, e.g., "02:00-03:00". + TimeWindow string `json:"timeWindow,omitempty"` +} diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 26772823..8bb4e682 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -399,6 +399,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 { @@ -1419,6 +1429,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*MaintenanceWindow)(nil), (*management.MaintenanceWindow)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow(a.(*MaintenanceWindow), b.(*management.MaintenanceWindow), scope) + }); err != nil { + return err + } + 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((*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 { @@ -3920,6 +3940,32 @@ func Convert_management_BackupStatus_To_v1_BackupStatus(in *management.BackupSta return autoConvert_management_BackupStatus_To_v1_BackupStatus(in, out, s) } +func autoConvert_v1_Cloud_To_management_Cloud(in *Cloud, out *management.Cloud, s conversion.Scope) error { + out.ReleaseChannel = in.ReleaseChannel + if err := Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow(&in.MaintenanceWindow, &out.MaintenanceWindow, s); err != nil { + return err + } + return nil +} + +// Convert_v1_Cloud_To_management_Cloud is an autogenerated conversion function. +func Convert_v1_Cloud_To_management_Cloud(in *Cloud, out *management.Cloud, s conversion.Scope) error { + return autoConvert_v1_Cloud_To_management_Cloud(in, out, s) +} + +func autoConvert_management_Cloud_To_v1_Cloud(in *management.Cloud, out *Cloud, s conversion.Scope) error { + out.ReleaseChannel = in.ReleaseChannel + if err := Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow(&in.MaintenanceWindow, &out.MaintenanceWindow, s); err != nil { + return err + } + return nil +} + +// Convert_management_Cloud_To_v1_Cloud is an autogenerated conversion function. +func Convert_management_Cloud_To_v1_Cloud(in *management.Cloud, out *Cloud, s conversion.Scope) error { + return autoConvert_management_Cloud_To_v1_Cloud(in, out, s) +} + func autoConvert_v1_Cluster_To_management_Cluster(in *Cluster, out *management.Cluster, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ClusterSpec_To_management_ClusterSpec(&in.Spec, &out.Spec, s); err != nil { @@ -4757,6 +4803,7 @@ func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, ou out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.Cloud = (*management.Cloud)(unsafe.Pointer(in.Cloud)) return nil } @@ -4778,6 +4825,7 @@ func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.Confi out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.Cloud = (*Cloud)(unsafe.Pointer(in.Cloud)) return nil } @@ -6489,6 +6537,28 @@ func Convert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in *management return autoConvert_management_LoftUpgradeStatus_To_v1_LoftUpgradeStatus(in, out, s) } +func autoConvert_v1_MaintenanceWindow_To_management_MaintenanceWindow(in *MaintenanceWindow, out *management.MaintenanceWindow, s conversion.Scope) error { + out.DayOfWeek = in.DayOfWeek + out.TimeWindow = in.TimeWindow + return nil +} + +// Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow is an autogenerated conversion function. +func Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow(in *MaintenanceWindow, out *management.MaintenanceWindow, s conversion.Scope) error { + return autoConvert_v1_MaintenanceWindow_To_management_MaintenanceWindow(in, out, s) +} + +func autoConvert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in *management.MaintenanceWindow, out *MaintenanceWindow, s conversion.Scope) error { + out.DayOfWeek = in.DayOfWeek + out.TimeWindow = in.TimeWindow + return nil +} + +// Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow is an autogenerated conversion function. +func Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in *management.MaintenanceWindow, out *MaintenanceWindow, s conversion.Scope) error { + return autoConvert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in, out, s) +} + func autoConvert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { out.Enabled = in.Enabled out.WildcardRedirect = in.WildcardRedirect diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index d1b05f3f..7476a60c 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -995,6 +995,23 @@ 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 @@ -2011,6 +2028,11 @@ 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 + } return } @@ -3730,6 +3752,22 @@ func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { + *out = *in + return +} + +// 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(MaintenanceWindow) + 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) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 4c757f55..2fbd630c 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -1632,6 +1632,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 @@ -1815,6 +1820,7 @@ type ConfigStatus struct { UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + Cloud *Cloud `json:"cloud,omitempty"` } type Connector struct { @@ -2065,7 +2071,7 @@ type KioskStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2141,6 +2147,11 @@ type LoftUpgradeSpec struct { type LoftUpgradeStatus struct { } +type MaintenanceWindow struct { + DayOfWeek string `json:"dayOfWeek,omitempty"` + TimeWindow string `json:"timeWindow,omitempty"` +} + type OIDC struct { Enabled bool `json:"enabled,omitempty"` WildcardRedirect bool `json:"wildcardRedirect,omitempty"` diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 2dd0f507..1e201a8b 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -970,6 +970,23 @@ 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 @@ -1986,6 +2003,11 @@ 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 + } return } @@ -3689,6 +3711,22 @@ func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { + *out = *in + return +} + +// 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(MaintenanceWindow) + 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) { *out = *in diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 2530d09d..7582087c 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -114,6 +114,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), @@ -217,6 +218,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.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), @@ -6591,6 +6593,34 @@ func schema_pkg_apis_management_v1_BackupStatus(ref common.ReferenceCallback) co } } +func schema_pkg_apis_management_v1_Cloud(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "releaseChannel": { + SchemaProps: spec.SchemaProps{ + Description: "ReleaseChannel specifies the release channel for the cloud configuration. This can be used to determine which updates or versions are applied.", + Type: []string{"string"}, + Format: "", + }, + }, + "maintenanceWindow": { + SchemaProps: spec.SchemaProps{ + Description: "MaintenanceWindow specifies the maintenance window for the cloud configuration. This is a structured representation of the time window during which maintenance can occur.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow"}, + } +} + func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -8416,11 +8446,17 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co Format: "", }, }, + "cloud": { + SchemaProps: spec.SchemaProps{ + Description: "Cloud holkds the settings to be used exclusively in vCluster Cloud based environments and deployments.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, } } @@ -11378,6 +11414,32 @@ func schema_pkg_apis_management_v1_LoftUpgradeStatus(ref common.ReferenceCallbac } } +func schema_pkg_apis_management_v1_MaintenanceWindow(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "dayOfWeek": { + SchemaProps: spec.SchemaProps{ + Description: "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: "", + }, + }, + "timeWindow": { + SchemaProps: spec.SchemaProps{ + Description: "TimeWindow specifies the time window for the maintenance. It should be a string representing the time range in 24-hour format, in UTC, e.g., \"02:00-03:00\".", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -29383,9 +29445,10 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29547,9 +29610,10 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29648,9 +29712,10 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31048,9 +31113,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From edfe1d92cfdca4f9f150ecc956c94ff152864da5 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:37:12 +0000 Subject: [PATCH 04/30] [skip ci] repo-sync --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 15af1ea8..c966b889 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.22.5 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-beta.1 + github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 + github.com/loft-sh/agentapi/v4 v4.2.0-alpha.2 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 1529bf5b..3ff820ae 100644 --- a/go.sum +++ b/go.sum @@ -107,10 +107,10 @@ 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-beta.1 h1:+/gPF6NmlznxHReo/C1DqlV7pLv0Jh0+kp1V2Kw0SJY= -github.com/loft-sh/agentapi/v4 v4.1.0-beta.1/go.mod h1:CXweRDab9ZcSzcaitULFagYGgSzW8Q12W3cBdKMjR8k= +github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 h1:fAn1LUVsxpkRasDJcSq7wRncxET+zeA8MVtGyxL2rSU= +github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.2 h1:pjFv8n2cahDrEZ2HEQROFcY256H8hsEheI1+r6rk+HQ= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.2/go.mod h1:yqbIMmyXqbzZcK0DlwldRLy0xb3lYnH4NoI3K+iETlM= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= From 7a25611a47c4e61ba9fca1d424f569dc36d27789 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:20:53 +0000 Subject: [PATCH 05/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- .../install/zz_generated.api.register.go | 2 + .../v1/devpodenvironmenttemplate_types.go | 26 +- .../v1/devpodworkspacepreset_types.go | 51 ++ .../management/v1/project_templates_types.go | 3 + .../v1/zz_generated.api.register.go | 11 + .../management/v1/zz_generated.conversion.go | 134 ++++ .../management/v1/zz_generated.deepcopy.go | 134 +++- .../management/zz_generated.api.register.go | 166 +++- pkg/apis/management/zz_generated.deepcopy.go | 101 +++ .../v1/devpodenvironmenttemplate_types.go | 43 +- .../v1/devpodworkspaceinstance_types.go | 22 +- .../storage/v1/devpodworkspacepreset_types.go | 121 +++ pkg/apis/storage/v1/project_types.go | 12 + pkg/apis/storage/v1/zz_generated.deepcopy.go | 284 ++++++- pkg/apis/zz_generated.api.register.go | 1 + .../management/v1/devpodworkspacepreset.go | 53 ++ .../v1/fake/fake_devpodworkspacepreset.go | 122 +++ .../v1/fake/fake_management_client.go | 4 + .../management/v1/generated_expansion.go | 2 + .../typed/management/v1/management_client.go | 5 + .../typed/storage/v1/devpodworkspacepreset.go | 51 ++ .../v1/fake/fake_devpodworkspacepreset.go | 110 +++ .../storage/v1/fake/fake_storage_client.go | 4 + .../typed/storage/v1/generated_expansion.go | 2 + .../typed/storage/v1/storage_client.go | 5 + pkg/informers/externalversions/generic.go | 4 + .../management/v1/devpodworkspacepreset.go | 73 ++ .../management/v1/interface.go | 7 + .../storage/v1/devpodworkspacepreset.go | 73 ++ .../externalversions/storage/v1/interface.go | 7 + .../management/v1/devpodworkspacepreset.go | 32 + .../management/v1/expansion_generated.go | 4 + .../storage/v1/devpodworkspacepreset.go | 32 + pkg/listers/storage/v1/expansion_generated.go | 4 + pkg/openapi/zz_generated.openapi.go | 753 ++++++++++++++++-- 37 files changed, 2351 insertions(+), 113 deletions(-) create mode 100644 pkg/apis/management/v1/devpodworkspacepreset_types.go create mode 100644 pkg/apis/storage/v1/devpodworkspacepreset_types.go create mode 100644 pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go create mode 100644 pkg/informers/externalversions/management/v1/devpodworkspacepreset.go create mode 100644 pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go create mode 100644 pkg/listers/management/v1/devpodworkspacepreset.go create mode 100644 pkg/listers/storage/v1/devpodworkspacepreset.go diff --git a/go.mod b/go.mod index c966b889..9092aa35 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 - github.com/loft-sh/agentapi/v4 v4.2.0-alpha.2 + github.com/loft-sh/agentapi/v4 v4.2.0-alpha.5 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 3ff820ae..3f56f01a 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 h1:fAn1LUVsxpkRasDJcSq7wRncxET+zeA8MVtGyxL2rSU= github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.2 h1:pjFv8n2cahDrEZ2HEQROFcY256H8hsEheI1+r6rk+HQ= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.2/go.mod h1:yqbIMmyXqbzZcK0DlwldRLy0xb3lYnH4NoI3K+iETlM= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.5 h1:tyBxgUjW/JmV9CL4GxNBrLTPNcrd6r7jFmO+/wjHYTw= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.5/go.mod h1:yqbIMmyXqbzZcK0DlwldRLy0xb3lYnH4NoI3K+iETlM= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index 6480568d..f4ddc32e 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -60,6 +60,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.DevPodWorkspaceInstanceState{}, &management.DevPodStopOptions{}, &management.DevPodUpOptions{}, + &management.DevPodWorkspacePreset{}, + &management.DevPodWorkspacePresetList{}, &management.DevPodWorkspaceTemplate{}, &management.DevPodWorkspaceTemplateList{}, &management.DirectClusterEndpointToken{}, diff --git a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go b/pkg/apis/management/v1/devpodenvironmenttemplate_types.go index c61f3360..b22464aa 100644 --- a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go +++ b/pkg/apis/management/v1/devpodenvironmenttemplate_types.go @@ -26,18 +26,17 @@ type DevPodEnvironmentTemplateSpec struct { storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` } -// GitEnvironmentTemplate stores configuration of Git environment template source -type GitEnvironmentTemplate struct { - // Repository stores repository URL for Git environment spec source - Repository string `json:"repository"` - - // Revision stores revision to checkout in repository - // +optional - Revision string `json:"revision,omitempty"` - - // SubPath stores subpath within Repositor where environment spec is - // +optional - SubPath string `json:"subpath,omitempty"` +// DevPodEnvironmentTemplateStatus holds the status +type DevPodEnvironmentTemplateStatus struct{} + +func (a *DevPodEnvironmentTemplate) GetVersions() []storagev1.VersionAccessor { + var retVersions []storagev1.VersionAccessor + for _, v := range a.Spec.Versions { + b := v + retVersions = append(retVersions, &b) + } + + return retVersions } func (a *DevPodEnvironmentTemplate) GetOwner() *storagev1.UserOrTeam { @@ -55,6 +54,3 @@ func (a *DevPodEnvironmentTemplate) GetAccess() []storagev1.Access { func (a *DevPodEnvironmentTemplate) SetAccess(access []storagev1.Access) { a.Spec.Access = access } - -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct{} diff --git a/pkg/apis/management/v1/devpodworkspacepreset_types.go b/pkg/apis/management/v1/devpodworkspacepreset_types.go new file mode 100644 index 00000000..45b1f912 --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspacepreset_types.go @@ -0,0 +1,51 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevPodWorkspacePreset +// +k8s:openapi-gen=true +// +resource:path=devpodworkspacepresets,rest=DevPodWorkspacePresetREST +type DevPodWorkspacePreset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` + Status DevPodWorkspacePresetStatus `json:"status,omitempty"` +} + +// DevPodWorkspacePresetSpec holds the specification +type DevPodWorkspacePresetSpec struct { + storagev1.DevPodWorkspacePresetSpec `json:",inline"` +} + +// DevPodWorkspacePresetSource +// +k8s:openapi-gen=true +type DevPodWorkspacePresetSource struct { + storagev1.DevPodWorkspacePresetSource `json:",inline"` +} + +func (a *DevPodWorkspacePreset) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevPodWorkspacePreset) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *DevPodWorkspacePreset) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} + +// DevPodWorkspacePresetStatus holds the status +type DevPodWorkspacePresetStatus struct{} diff --git a/pkg/apis/management/v1/project_templates_types.go b/pkg/apis/management/v1/project_templates_types.go index 5c894109..6ea1539d 100644 --- a/pkg/apis/management/v1/project_templates_types.go +++ b/pkg/apis/management/v1/project_templates_types.go @@ -32,6 +32,9 @@ type ProjectTemplates struct { // DevPodEnvironmentTemplates holds all the allowed environment templates DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` + // DevPodWorkspacePresets holds all the allowed workspace presets + DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` + // DefaultDevPodEnvironmentTemplate DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` } diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index de255385..6f1d2d3a 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -51,6 +51,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &DevPodWorkspaceInstanceState{}, &DevPodStopOptions{}, &DevPodUpOptions{}, + &DevPodWorkspacePreset{}, + &DevPodWorkspacePresetList{}, &DevPodWorkspaceTemplate{}, &DevPodWorkspaceTemplateList{}, &DirectClusterEndpointToken{}, @@ -229,6 +231,7 @@ var ( func() runtime.Object { return &DevPodUpOptions{} }, // Register versioned resource nil, management.NewDevPodUpOptionsREST), + management.ManagementDevPodWorkspacePresetStorage, management.ManagementDevPodWorkspaceTemplateStorage, management.ManagementDirectClusterEndpointTokenStorage, management.ManagementEventStorage, @@ -637,6 +640,14 @@ type DevPodUpOptionsList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspacePresetList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspacePreset `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodWorkspaceTemplateList 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 8bb4e682..225988fa 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -1019,6 +1019,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePreset)(nil), (*management.DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(a.(*DevPodWorkspacePreset), b.(*management.DevPodWorkspacePreset), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePreset)(nil), (*DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(a.(*management.DevPodWorkspacePreset), b.(*DevPodWorkspacePreset), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetList)(nil), (*management.DevPodWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(a.(*DevPodWorkspacePresetList), b.(*management.DevPodWorkspacePresetList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetList)(nil), (*DevPodWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(a.(*management.DevPodWorkspacePresetList), b.(*DevPodWorkspacePresetList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetSpec)(nil), (*management.DevPodWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(a.(*DevPodWorkspacePresetSpec), b.(*management.DevPodWorkspacePresetSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetSpec)(nil), (*DevPodWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(a.(*management.DevPodWorkspacePresetSpec), b.(*DevPodWorkspacePresetSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetStatus)(nil), (*management.DevPodWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(a.(*DevPodWorkspacePresetStatus), b.(*management.DevPodWorkspacePresetStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetStatus)(nil), (*DevPodWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(a.(*management.DevPodWorkspacePresetStatus), b.(*DevPodWorkspacePresetStatus), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplate)(nil), (*management.DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(a.(*DevPodWorkspaceTemplate), b.(*management.DevPodWorkspaceTemplate), scope) }); err != nil { @@ -5551,6 +5591,98 @@ func Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInsta return autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in, out, s) } +func autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset is an autogenerated conversion function. +func Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in, out, s) +} + +func autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset is an autogenerated conversion function. +func Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in, out, s) +} + +func autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in, out, s) +} + +func autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList is an autogenerated conversion function. +func Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in, out, s) +} + +func autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { + out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec + return nil +} + +// Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec is an autogenerated conversion function. +func Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in, out, s) +} + +func autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { + out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec + return nil +} + +// Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec is an autogenerated conversion function. +func Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in, out, s) +} + +func autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { + return nil +} + +// Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus is an autogenerated conversion function. +func Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in, out, s) +} + +func autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { + return nil +} + +// Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in, out, s) +} + func autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { @@ -7520,6 +7652,7 @@ func autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectT out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate out.DevPodWorkspaceTemplates = *(*[]management.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) out.DevPodEnvironmentTemplates = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) + out.DevPodWorkspacePresets = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.DevPodWorkspacePresets)) out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate return nil } @@ -7538,6 +7671,7 @@ func autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in *manageme out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate out.DevPodWorkspaceTemplates = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) out.DevPodEnvironmentTemplates = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) + out.DevPodWorkspacePresets = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.DevPodWorkspacePresets)) out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate return nil } diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 7476a60c..13aaa5df 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -2742,6 +2742,117 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStat return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. +func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { + if in == nil { + return nil + } + out := new(DevPodWorkspacePreset) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. +func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { + *out = *in + out.DevPodWorkspacePresetSource = in.DevPodWorkspacePresetSource + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. +func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { + *out = *in + in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. +func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. +func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { *out = *in @@ -3123,22 +3234,6 @@ func (in *FeatureStatus) DeepCopy() *FeatureStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitEnvironmentTemplate) DeepCopyInto(out *GitEnvironmentTemplate) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitEnvironmentTemplate. -func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { - if in == nil { - return nil - } - out := new(GitEnvironmentTemplate) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupResources) DeepCopyInto(out *GroupResources) { *out = *in @@ -4874,6 +4969,13 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.DevPodWorkspacePresets != nil { + in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 2fbd630c..902b93b7 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -136,7 +136,17 @@ var ( NewDevPodWorkspaceInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDevPodWorkspaceInstanceRESTFunc(Factory) } - NewDevPodWorkspaceInstanceRESTFunc NewRESTFunc + NewDevPodWorkspaceInstanceRESTFunc NewRESTFunc + ManagementDevPodWorkspacePresetStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDevPodWorkspacePreset, + func() runtime.Object { return &DevPodWorkspacePreset{} }, // Register versioned resource + func() runtime.Object { return &DevPodWorkspacePresetList{} }, // Register versioned resource list + NewDevPodWorkspacePresetREST, + ) + NewDevPodWorkspacePresetREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspacePresetRESTFunc(Factory) + } + NewDevPodWorkspacePresetRESTFunc NewRESTFunc ManagementDevPodWorkspaceTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalDevPodWorkspaceTemplate, func() runtime.Object { return &DevPodWorkspaceTemplate{} }, // Register versioned resource @@ -698,7 +708,19 @@ var ( NewDevPodUpOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDevPodUpOptionsRESTFunc(Factory) } - NewDevPodUpOptionsRESTFunc NewRESTFunc + NewDevPodUpOptionsRESTFunc NewRESTFunc + InternalDevPodWorkspacePreset = builders.NewInternalResource( + "devpodworkspacepresets", + "DevPodWorkspacePreset", + func() runtime.Object { return &DevPodWorkspacePreset{} }, + func() runtime.Object { return &DevPodWorkspacePresetList{} }, + ) + InternalDevPodWorkspacePresetStatus = builders.NewInternalResourceStatus( + "devpodworkspacepresets", + "DevPodWorkspacePresetStatus", + func() runtime.Object { return &DevPodWorkspacePreset{} }, + func() runtime.Object { return &DevPodWorkspacePresetList{} }, + ) InternalDevPodWorkspaceTemplate = builders.NewInternalResource( "devpodworkspacetemplates", "DevPodWorkspaceTemplate", @@ -1271,6 +1293,8 @@ var ( InternalDevPodWorkspaceInstanceStateREST, InternalDevPodStopOptionsREST, InternalDevPodUpOptionsREST, + InternalDevPodWorkspacePreset, + InternalDevPodWorkspacePresetStatus, InternalDevPodWorkspaceTemplate, InternalDevPodWorkspaceTemplateStatus, InternalDirectClusterEndpointToken, @@ -1948,6 +1972,24 @@ type DevPodWorkspaceInstanceStatus struct { // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspacePreset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` + Status DevPodWorkspacePresetStatus `json:"status,omitempty"` +} + +type DevPodWorkspacePresetSpec struct { + storagev1.DevPodWorkspacePresetSpec `json:",inline"` +} + +type DevPodWorkspacePresetStatus struct { +} + +// +genclient +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodWorkspaceTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -2358,6 +2400,7 @@ type ProjectTemplates struct { DefaultDevPodWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` DevPodWorkspaceTemplates []DevPodWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` + DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` } @@ -4270,6 +4313,125 @@ func (s *storageDevPodWorkspaceInstance) DeleteDevPodWorkspaceInstance(ctx conte return sync, err } +// DevPodWorkspacePreset Functions and Structs +// +// +k8s:deepcopy-gen=false +type DevPodWorkspacePresetStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type DevPodWorkspacePresetStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspacePresetList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspacePreset `json:"items"` +} + +func (DevPodWorkspacePreset) NewStatus() interface{} { + return DevPodWorkspacePresetStatus{} +} + +func (pc *DevPodWorkspacePreset) GetStatus() interface{} { + return pc.Status +} + +func (pc *DevPodWorkspacePreset) SetStatus(s interface{}) { + pc.Status = s.(DevPodWorkspacePresetStatus) +} + +func (pc *DevPodWorkspacePreset) GetSpec() interface{} { + return pc.Spec +} + +func (pc *DevPodWorkspacePreset) SetSpec(s interface{}) { + pc.Spec = s.(DevPodWorkspacePresetSpec) +} + +func (pc *DevPodWorkspacePreset) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *DevPodWorkspacePreset) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc DevPodWorkspacePreset) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store DevPodWorkspacePreset. +// +k8s:deepcopy-gen=false +type DevPodWorkspacePresetRegistry interface { + ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, error) + GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) + CreateDevPodWorkspacePreset(ctx context.Context, id *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) + UpdateDevPodWorkspacePreset(ctx context.Context, id *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) + DeleteDevPodWorkspacePreset(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewDevPodWorkspacePresetRegistry(sp builders.StandardStorageProvider) DevPodWorkspacePresetRegistry { + return &storageDevPodWorkspacePreset{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageDevPodWorkspacePreset struct { + builders.StandardStorageProvider +} + +func (s *storageDevPodWorkspacePreset) ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, error) { + if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { + return nil, fmt.Errorf("field selector not supported yet") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*DevPodWorkspacePresetList), err +} + +func (s *storageDevPodWorkspacePreset) GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*DevPodWorkspacePreset), nil +} + +func (s *storageDevPodWorkspacePreset) CreateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DevPodWorkspacePreset), nil +} + +func (s *storageDevPodWorkspacePreset) UpdateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { + st := s.GetStandardStorage() + obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DevPodWorkspacePreset), nil +} + +func (s *storageDevPodWorkspacePreset) DeleteDevPodWorkspacePreset(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + // DevPodWorkspaceTemplate Functions and Structs // // +k8s:deepcopy-gen=false diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 1e201a8b..ae1dfd14 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -2717,6 +2717,100 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStat return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. +func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { + if in == nil { + return nil + } + out := new(DevPodWorkspacePreset) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. +func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { + *out = *in + in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. +func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. +func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { *out = *in @@ -4833,6 +4927,13 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.DevPodWorkspacePresets != nil { + in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } diff --git a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go index c2737baa..ed66c960 100644 --- a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go +++ b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go @@ -15,7 +15,26 @@ type DevPodEnvironmentTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` + Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` + Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` +} + +// DevPodEnvironmentTemplateStatus holds the status +type DevPodEnvironmentTemplateStatus struct { +} + +func (a *DevPodEnvironmentTemplate) GetVersions() []VersionAccessor { + var retVersions []VersionAccessor + for _, v := range a.Spec.Versions { + b := v + retVersions = append(retVersions, &b) + } + + return retVersions +} + +func (a *DevPodEnvironmentTemplateVersion) GetVersion() string { + return a.Version } func (a *DevPodEnvironmentTemplate) GetOwner() *UserOrTeam { @@ -39,9 +58,9 @@ type DevPodEnvironmentTemplateSpec struct { // +optional DisplayName string `json:"displayName,omitempty"` - // Git holds configuration for git environment spec source + // Description describes the environment template // +optional - Git GitEnvironmentTemplate `json:"git,omitempty"` + Description string `json:"description,omitempty"` // Owner holds the owner of this object // +optional @@ -51,11 +70,25 @@ type DevPodEnvironmentTemplateSpec struct { // +optional Access []Access `json:"access,omitempty"` + // Template is the inline template to use for DevPod environments + // +optional + Template *DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` + // Versions are different versions of the template that can be referenced as well // +optional Versions []DevPodEnvironmentTemplateVersion `json:"versions,omitempty"` } +type DevPodEnvironmentTemplateDefinition struct { + // Git holds configuration for git environment spec source + // +optional + Git *GitEnvironmentTemplate `json:"git,omitempty"` + + // Inline holds an inline devcontainer.json definition + // +optional + Inline string `json:"inline,omitempty"` +} + // GitEnvironmentTemplate stores configuration of Git environment template source type GitEnvironmentTemplate struct { // Repository stores repository URL for Git environment spec source @@ -75,9 +108,9 @@ type GitEnvironmentTemplate struct { } type DevPodEnvironmentTemplateVersion struct { - // Git holds the GitEnvironmentTemplate + // Template holds the environment template definition // +optional - Git GitEnvironmentTemplate `json:"git,omitempty"` + Template DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` // Version is the version. Needs to be in X.X.X format. // +optional diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go index 51e8fedd..3063847b 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go @@ -86,13 +86,17 @@ type DevPodWorkspaceInstanceSpec struct { // +optional Owner *UserOrTeam `json:"owner,omitempty"` + // PresetRef holds the DevPodWorkspacePreset template reference + // +optional + PresetRef *PresetRef `json:"presetRef,omitempty"` + // TemplateRef holds the DevPod machine template reference // +optional TemplateRef *TemplateRef `json:"templateRef,omitempty"` // EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used // +optional - EnvironmentRef EnvironmentRef `json:"environmentRef,omitempty"` + EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` // Template is the inline template to use for DevPod machine creation. This is mutually // exclusive with templateRef. @@ -118,6 +122,18 @@ type DevPodWorkspaceInstanceSpec struct { PreventWakeUpOnConnection bool `json:"preventWakeUpOnConnection,omitempty"` } +type PresetRef struct { + // Name is the name of DevPodWorkspacePreset + Name string `json:"name"` + + // Version holds the preset version to use. Version is expected to + // be in semantic versioning format. Alternatively, you can also exchange + // major, minor or patch with an 'x' to tell Loft to automatically select + // the latest major, minor or patch version. + // +optional + Version string `json:"version,omitempty"` +} + type RunnerRef struct { // Runner is the connected runner the workspace will be created in // +optional @@ -127,6 +143,10 @@ type RunnerRef struct { type EnvironmentRef struct { // Name is the name of DevPodEnvironmentTemplate this references Name string `json:"name"` + + // Version is the version of DevPodEnvironmentTemplate this references + // +optional + Version string `json:"version,omitempty"` } type DevPodWorkspaceInstanceStatus struct { diff --git a/pkg/apis/storage/v1/devpodworkspacepreset_types.go b/pkg/apis/storage/v1/devpodworkspacepreset_types.go new file mode 100644 index 00000000..4fff5fa1 --- /dev/null +++ b/pkg/apis/storage/v1/devpodworkspacepreset_types.go @@ -0,0 +1,121 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:noStatus +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevPodWorkspacePreset +// +k8s:openapi-gen=true +type DevPodWorkspacePreset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` + Status DevPodWorkspacePresetStatus `json:"status,omitempty"` +} + +func (a *DevPodWorkspacePreset) GetOwner() *UserOrTeam { + return a.Spec.Owner +} + +func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevPodWorkspacePreset) GetAccess() []Access { + return a.Spec.Access +} + +func (a *DevPodWorkspacePreset) SetAccess(access []Access) { + a.Spec.Access = access +} + +type DevPodWorkspacePresetSpec struct { + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` + + // Source stores inline path of project source + Source *DevPodWorkspacePresetSource `json:"source"` + + // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use + InfrastructureRef *TemplateRef `json:"infrastructureRef"` + + // EnvironmentRef stores reference to DevPodEnvironmentTemplate + // +optional + EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` + + // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment + // +optional + UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` + + // Owner holds the owner of this object + // +optional + Owner *UserOrTeam `json:"owner,omitempty"` + + // Access to the DevPod machine instance object itself + // +optional + Access []Access `json:"access,omitempty"` + + // Versions are different versions of the template that can be referenced as well + // +optional + Versions []DevPodWorkspacePresetVersion `json:"versions,omitempty"` +} + +type DevPodWorkspacePresetSource struct { + // Git stores path to git repo to use as workspace source + // +optional + Git string `json:"git,omitempty"` + + // Image stores container image to use as workspace source + // +optional + Image string `json:"image,omitempty"` +} + +type DevPodWorkspacePresetVersion struct { + // Version is the version. Needs to be in X.X.X format. + // +optional + Version string `json:"version,omitempty"` + + // Source stores inline path of project source + // +optional + Source *DevPodWorkspacePresetSource `json:"source,omitempty"` + + // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use + // +optional + InfrastructureRef *TemplateRef `json:"infrastructureRef,omitempty"` + + // EnvironmentRef stores reference to DevPodEnvironmentTemplate + // +optional + EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` + + // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment + // +optional + UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` +} + +// DevPodWorkspacePresetStatus holds the status +type DevPodWorkspacePresetStatus struct { +} + +type WorkspaceRef struct { + // Name is the name of DevPodWorkspaceTemplate this references + Name string `json:"name"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects +type DevPodWorkspacePresetList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspacePreset `json:"items"` +} + +func init() { + SchemeBuilder.Register(&DevPodWorkspacePreset{}, &DevPodWorkspacePresetList{}) +} diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index 2fec41e1..1cca19b9 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -106,6 +106,10 @@ type ProjectSpec struct { // +optional RequireTemplate RequireTemplate `json:"requireTemplate,omitempty"` + // RequirePreset configures if a preset is required for instance creation. + // +optional + RequirePreset RequirePreset `json:"requirePreset,omitempty"` + // Members are the users and teams that are part of this project // +optional Members []Member `json:"members,omitempty"` @@ -142,6 +146,13 @@ type RequireTemplate struct { Disabled bool `json:"disabled,omitempty"` } +type RequirePreset struct { + // If true, all users within the project will not be allowed to create a new instance without a preset. + // By default, all users are allowed to create a new instance without a preset. + // +optional + Enabled bool `json:"disabled,omitempty"` +} + type NamespacePattern struct { // Space holds the namespace pattern to use for space instances // +optional @@ -165,6 +176,7 @@ var ( SpaceTemplateKind = "SpaceTemplate" VirtualClusterTemplateKind = "VirtualClusterTemplate" DevPodWorkspaceTemplateKind = "DevPodWorkspaceTemplate" + DevPodWorkspacePresetKind = "DevPodWorkspacePreset" ) type AllowedTemplate struct { diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index 7de9add4..0412cfaf 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -1447,6 +1447,7 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status return } @@ -1468,6 +1469,27 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodEnvironmentTemplateDefinition) DeepCopyInto(out *DevPodEnvironmentTemplateDefinition) { + *out = *in + if in.Git != nil { + in, out := &in.Git, &out.Git + *out = new(GitEnvironmentTemplate) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateDefinition. +func (in *DevPodEnvironmentTemplateDefinition) DeepCopy() *DevPodEnvironmentTemplateDefinition { + if in == nil { + return nil + } + out := new(DevPodEnvironmentTemplateDefinition) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { *out = *in @@ -1504,7 +1526,6 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { *out = *in - out.Git = in.Git if in.Owner != nil { in, out := &in.Owner, &out.Owner *out = new(UserOrTeam) @@ -1517,10 +1538,17 @@ func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemp (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(DevPodEnvironmentTemplateDefinition) + (*in).DeepCopyInto(*out) + } if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]DevPodEnvironmentTemplateVersion, len(*in)) - copy(*out, *in) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } @@ -1535,10 +1563,26 @@ func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSp return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodEnvironmentTemplateStatus) DeepCopyInto(out *DevPodEnvironmentTemplateStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. +func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { + if in == nil { + return nil + } + out := new(DevPodEnvironmentTemplateStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodEnvironmentTemplateVersion) DeepCopyInto(out *DevPodEnvironmentTemplateVersion) { *out = *in - out.Git = in.Git + in.Template.DeepCopyInto(&out.Template) return } @@ -1710,12 +1754,21 @@ func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstance *out = new(UserOrTeam) **out = **in } + if in.PresetRef != nil { + in, out := &in.PresetRef, &out.PresetRef + *out = new(PresetRef) + **out = **in + } if in.TemplateRef != nil { in, out := &in.TemplateRef, &out.TemplateRef *out = new(TemplateRef) **out = **in } - out.EnvironmentRef = in.EnvironmentRef + if in.EnvironmentRef != nil { + in, out := &in.EnvironmentRef, &out.EnvironmentRef + *out = new(EnvironmentRef) + **out = **in + } if in.Template != nil { in, out := &in.Template, &out.Template *out = new(DevPodWorkspaceTemplateDefinition) @@ -1792,6 +1845,180 @@ func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopy() *DevPodWorkspace return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. +func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { + if in == nil { + return nil + } + out := new(DevPodWorkspacePreset) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspacePreset, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. +func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. +func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { + *out = *in + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = new(DevPodWorkspacePresetSource) + **out = **in + } + if in.InfrastructureRef != nil { + in, out := &in.InfrastructureRef, &out.InfrastructureRef + *out = new(TemplateRef) + **out = **in + } + if in.EnvironmentRef != nil { + in, out := &in.EnvironmentRef, &out.EnvironmentRef + *out = new(EnvironmentRef) + **out = **in + } + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in + } + if in.Access != nil { + in, out := &in.Access, &out.Access + *out = make([]Access, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]DevPodWorkspacePresetVersion, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. +func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. +func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePresetVersion) DeepCopyInto(out *DevPodWorkspacePresetVersion) { + *out = *in + if in.Source != nil { + in, out := &in.Source, &out.Source + *out = new(DevPodWorkspacePresetSource) + **out = **in + } + if in.InfrastructureRef != nil { + in, out := &in.InfrastructureRef, &out.InfrastructureRef + *out = new(TemplateRef) + **out = **in + } + if in.EnvironmentRef != nil { + in, out := &in.EnvironmentRef, &out.EnvironmentRef + *out = new(EnvironmentRef) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetVersion. +func (in *DevPodWorkspacePresetVersion) DeepCopy() *DevPodWorkspacePresetVersion { + if in == nil { + return nil + } + out := new(DevPodWorkspacePresetVersion) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceProvider) DeepCopyInto(out *DevPodWorkspaceProvider) { *out = *in @@ -2622,6 +2849,22 @@ func (in *PodSelector) DeepCopy() *PodSelector { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PresetRef) DeepCopyInto(out *PresetRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PresetRef. +func (in *PresetRef) DeepCopy() *PresetRef { + if in == nil { + return nil + } + out := new(PresetRef) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Project) DeepCopyInto(out *Project) { *out = *in @@ -2708,6 +2951,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)) @@ -3018,6 +3262,22 @@ func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RequirePreset) DeepCopyInto(out *RequirePreset) { + *out = *in + return +} + +// 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(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 *RequireTemplate) DeepCopyInto(out *RequireTemplate) { *out = *in @@ -5132,6 +5392,22 @@ func (in *VirtualClusterTemplateVersion) DeepCopy() *VirtualClusterTemplateVersi return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceRef) DeepCopyInto(out *WorkspaceRef) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceRef. +func (in *WorkspaceRef) DeepCopy() *WorkspaceRef { + if in == nil { + return nil + } + out := new(WorkspaceRef) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkspaceStatusResult) DeepCopyInto(out *WorkspaceStatusResult) { *out = *in diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index 3e4477ae..00ba5133 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -49,6 +49,7 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Config", "ConvertVirtualClusterConfig", "DevPodEnvironmentTemplate", + "DevPodWorkspacePreset", "DevPodWorkspaceTemplate", "DirectClusterEndpointToken", "Event", diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..9877f627 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go @@ -0,0 +1,53 @@ +// 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" +) + +// DevPodWorkspacePresetsGetter has a method to return a DevPodWorkspacePresetInterface. +// A group's client should implement this interface. +type DevPodWorkspacePresetsGetter interface { + DevPodWorkspacePresets() DevPodWorkspacePresetInterface +} + +// DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. +type DevPodWorkspacePresetInterface interface { + Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*v1.DevPodWorkspacePreset, error) + Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*v1.DevPodWorkspacePreset, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*v1.DevPodWorkspacePreset, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspacePreset, error) + List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspacePresetList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) + DevPodWorkspacePresetExpansion +} + +// devPodWorkspacePresets implements DevPodWorkspacePresetInterface +type devPodWorkspacePresets struct { + *gentype.ClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] +} + +// newDevPodWorkspacePresets returns a DevPodWorkspacePresets +func newDevPodWorkspacePresets(c *ManagementV1Client) *devPodWorkspacePresets { + return &devPodWorkspacePresets{ + gentype.NewClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( + "devpodworkspacepresets", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, + func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go new file mode 100644 index 00000000..6929b126 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go @@ -0,0 +1,122 @@ +// 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" +) + +// FakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface +type FakeDevPodWorkspacePresets struct { + Fake *FakeManagementV1 +} + +var devpodworkspacepresetsResource = v1.SchemeGroupVersion.WithResource("devpodworkspacepresets") + +var devpodworkspacepresetsKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset") + +// Get takes name of the devPodWorkspacePreset, and returns the corresponding devPodWorkspacePreset object, and an error if there is any. +func (c *FakeDevPodWorkspacePresets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootGetActionWithOptions(devpodworkspacepresetsResource, name, options), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} + +// List takes label and field selectors, and returns the list of DevPodWorkspacePresets that match those selectors. +func (c *FakeDevPodWorkspacePresets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspacePresetList, err error) { + emptyResult := &v1.DevPodWorkspacePresetList{} + obj, err := c.Fake. + Invokes(testing.NewRootListActionWithOptions(devpodworkspacepresetsResource, devpodworkspacepresetsKind, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1.DevPodWorkspacePresetList{ListMeta: obj.(*v1.DevPodWorkspacePresetList).ListMeta} + for _, item := range obj.(*v1.DevPodWorkspacePresetList).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 devPodWorkspacePresets. +func (c *FakeDevPodWorkspacePresets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacepresetsResource, opts)) +} + +// Create takes the representation of a devPodWorkspacePreset and creates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. +func (c *FakeDevPodWorkspacePresets) Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} + +// Update takes the representation of a devPodWorkspacePreset and updates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. +func (c *FakeDevPodWorkspacePresets) Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), 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 *FakeDevPodWorkspacePresets) UpdateStatus(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootUpdateSubresourceActionWithOptions(devpodworkspacepresetsResource, "status", devPodWorkspacePreset, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} + +// Delete takes name of the devPodWorkspacePreset and deletes it. Returns an error if one occurs. +func (c *FakeDevPodWorkspacePresets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacepresetsResource, name, opts), &v1.DevPodWorkspacePreset{}) + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakeDevPodWorkspacePresets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { + action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacepresetsResource, opts, listOpts) + + _, err := c.Fake.Invokes(action, &v1.DevPodWorkspacePresetList{}) + return err +} + +// Patch applies the patch and returns the patched devPodWorkspacePreset. +func (c *FakeDevPodWorkspacePresets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacepresetsResource, name, pt, data, opts, subresources...), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), 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..942f0d6a 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 @@ -56,6 +56,10 @@ func (c *FakeManagementV1) DevPodWorkspaceInstances(namespace string) v1.DevPodW return &FakeDevPodWorkspaceInstances{c, namespace} } +func (c *FakeManagementV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { + return &FakeDevPodWorkspacePresets{c} +} + func (c *FakeManagementV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { return &FakeDevPodWorkspaceTemplates{c} } diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index f8255641..d21459c7 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -24,6 +24,8 @@ type DevPodEnvironmentTemplateExpansion interface{} type DevPodWorkspaceInstanceExpansion interface{} +type DevPodWorkspacePresetExpansion interface{} + type DevPodWorkspaceTemplateExpansion interface{} type DirectClusterEndpointTokenExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index be891c7a..538a754b 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -23,6 +23,7 @@ type ManagementV1Interface interface { ConvertVirtualClusterConfigsGetter DevPodEnvironmentTemplatesGetter DevPodWorkspaceInstancesGetter + DevPodWorkspacePresetsGetter DevPodWorkspaceTemplatesGetter DirectClusterEndpointTokensGetter EventsGetter @@ -102,6 +103,10 @@ func (c *ManagementV1Client) DevPodWorkspaceInstances(namespace string) DevPodWo return newDevPodWorkspaceInstances(c, namespace) } +func (c *ManagementV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { + return newDevPodWorkspacePresets(c) +} + func (c *ManagementV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { return newDevPodWorkspaceTemplates(c) } diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..6be3081f --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go @@ -0,0 +1,51 @@ +// 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" +) + +// DevPodWorkspacePresetsGetter has a method to return a DevPodWorkspacePresetInterface. +// A group's client should implement this interface. +type DevPodWorkspacePresetsGetter interface { + DevPodWorkspacePresets() DevPodWorkspacePresetInterface +} + +// DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. +type DevPodWorkspacePresetInterface interface { + Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*v1.DevPodWorkspacePreset, error) + Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*v1.DevPodWorkspacePreset, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspacePreset, error) + List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspacePresetList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) + DevPodWorkspacePresetExpansion +} + +// devPodWorkspacePresets implements DevPodWorkspacePresetInterface +type devPodWorkspacePresets struct { + *gentype.ClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] +} + +// newDevPodWorkspacePresets returns a DevPodWorkspacePresets +func newDevPodWorkspacePresets(c *StorageV1Client) *devPodWorkspacePresets { + return &devPodWorkspacePresets{ + gentype.NewClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( + "devpodworkspacepresets", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, + func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go new file mode 100644 index 00000000..12467c2b --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go @@ -0,0 +1,110 @@ +// 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" +) + +// FakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface +type FakeDevPodWorkspacePresets struct { + Fake *FakeStorageV1 +} + +var devpodworkspacepresetsResource = v1.SchemeGroupVersion.WithResource("devpodworkspacepresets") + +var devpodworkspacepresetsKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset") + +// Get takes name of the devPodWorkspacePreset, and returns the corresponding devPodWorkspacePreset object, and an error if there is any. +func (c *FakeDevPodWorkspacePresets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootGetActionWithOptions(devpodworkspacepresetsResource, name, options), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} + +// List takes label and field selectors, and returns the list of DevPodWorkspacePresets that match those selectors. +func (c *FakeDevPodWorkspacePresets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspacePresetList, err error) { + emptyResult := &v1.DevPodWorkspacePresetList{} + obj, err := c.Fake. + Invokes(testing.NewRootListActionWithOptions(devpodworkspacepresetsResource, devpodworkspacepresetsKind, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1.DevPodWorkspacePresetList{ListMeta: obj.(*v1.DevPodWorkspacePresetList).ListMeta} + for _, item := range obj.(*v1.DevPodWorkspacePresetList).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 devPodWorkspacePresets. +func (c *FakeDevPodWorkspacePresets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacepresetsResource, opts)) +} + +// Create takes the representation of a devPodWorkspacePreset and creates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. +func (c *FakeDevPodWorkspacePresets) Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} + +// Update takes the representation of a devPodWorkspacePreset and updates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. +func (c *FakeDevPodWorkspacePresets) Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} + +// Delete takes name of the devPodWorkspacePreset and deletes it. Returns an error if one occurs. +func (c *FakeDevPodWorkspacePresets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacepresetsResource, name, opts), &v1.DevPodWorkspacePreset{}) + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakeDevPodWorkspacePresets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { + action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacepresetsResource, opts, listOpts) + + _, err := c.Fake.Invokes(action, &v1.DevPodWorkspacePresetList{}) + return err +} + +// Patch applies the patch and returns the patched devPodWorkspacePreset. +func (c *FakeDevPodWorkspacePresets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) { + emptyResult := &v1.DevPodWorkspacePreset{} + obj, err := c.Fake. + Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacepresetsResource, name, pt, data, opts, subresources...), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspacePreset), err +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go index 81d78c2f..3f2e892b 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 @@ -40,6 +40,10 @@ func (c *FakeStorageV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWork return &FakeDevPodWorkspaceInstances{c, namespace} } +func (c *FakeStorageV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { + return &FakeDevPodWorkspacePresets{c} +} + func (c *FakeStorageV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { return &FakeDevPodWorkspaceTemplates{c} } diff --git a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go index 6faed075..68e8095a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -16,6 +16,8 @@ type DevPodEnvironmentTemplateExpansion interface{} type DevPodWorkspaceInstanceExpansion interface{} +type DevPodWorkspacePresetExpansion interface{} + type DevPodWorkspaceTemplateExpansion interface{} type NetworkPeerExpansion interface{} diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index c360fa26..e3dbd35f 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -19,6 +19,7 @@ type StorageV1Interface interface { ClusterRoleTemplatesGetter DevPodEnvironmentTemplatesGetter DevPodWorkspaceInstancesGetter + DevPodWorkspacePresetsGetter DevPodWorkspaceTemplatesGetter NetworkPeersGetter ProjectsGetter @@ -66,6 +67,10 @@ func (c *StorageV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorks return newDevPodWorkspaceInstances(c, namespace) } +func (c *StorageV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { + return newDevPodWorkspacePresets(c) +} + func (c *StorageV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { return newDevPodWorkspaceTemplates(c) } diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 19bb27f5..60138dd4 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -61,6 +61,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodEnvironmentTemplates().Informer()}, nil case v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceInstances().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspacePresets().Informer()}, nil case v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceTemplates().Informer()}, nil case v1.SchemeGroupVersion.WithResource("directclusterendpointtokens"): @@ -133,6 +135,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodEnvironmentTemplates().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceInstances().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("devpodworkspacepresets"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspacePresets().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceTemplates().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("networkpeers"): diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..11508272 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go @@ -0,0 +1,73 @@ +// 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" +) + +// DevPodWorkspacePresetInformer provides access to a shared informer and lister for +// DevPodWorkspacePresets. +type DevPodWorkspacePresetInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1.DevPodWorkspacePresetLister +} + +type devPodWorkspacePresetInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspacePresets().List(context.TODO(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspacePresets().Watch(context.TODO(), options) + }, + }, + &managementv1.DevPodWorkspacePreset{}, + resyncPeriod, + indexers, + ) +} + +func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&managementv1.DevPodWorkspacePreset{}, f.defaultInformer) +} + +func (f *devPodWorkspacePresetInformer) Lister() v1.DevPodWorkspacePresetLister { + return v1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index 38e860d7..93aa6b10 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -30,6 +30,8 @@ type Interface interface { DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer + // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. + DevPodWorkspacePresets() DevPodWorkspacePresetInformer // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. @@ -154,6 +156,11 @@ func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. +func (v *version) DevPodWorkspacePresets() DevPodWorkspacePresetInformer { + return &devPodWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..2ed8915f --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go @@ -0,0 +1,73 @@ +// 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" +) + +// DevPodWorkspacePresetInformer provides access to a shared informer and lister for +// DevPodWorkspacePresets. +type DevPodWorkspacePresetInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1.DevPodWorkspacePresetLister +} + +type devPodWorkspacePresetInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspacePresets().List(context.TODO(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspacePresets().Watch(context.TODO(), options) + }, + }, + &storagev1.DevPodWorkspacePreset{}, + resyncPeriod, + indexers, + ) +} + +func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&storagev1.DevPodWorkspacePreset{}, f.defaultInformer) +} + +func (f *devPodWorkspacePresetInformer) Lister() v1.DevPodWorkspacePresetLister { + return v1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index d2f36b8f..1c2b075e 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -22,6 +22,8 @@ type Interface interface { DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer + // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. + DevPodWorkspacePresets() DevPodWorkspacePresetInformer // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // NetworkPeers returns a NetworkPeerInformer. @@ -94,6 +96,11 @@ func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. +func (v *version) DevPodWorkspacePresets() DevPodWorkspacePresetInformer { + return &devPodWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/listers/management/v1/devpodworkspacepreset.go b/pkg/listers/management/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..8a1b33ed --- /dev/null +++ b/pkg/listers/management/v1/devpodworkspacepreset.go @@ -0,0 +1,32 @@ +// 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" +) + +// DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. +// All objects returned here must be treated as read-only. +type DevPodWorkspacePresetLister interface { + // List lists all DevPodWorkspacePresets in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1.DevPodWorkspacePreset, err error) + // Get retrieves the DevPodWorkspacePreset from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1.DevPodWorkspacePreset, error) + DevPodWorkspacePresetListerExpansion +} + +// devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. +type devPodWorkspacePresetLister struct { + listers.ResourceIndexer[*v1.DevPodWorkspacePreset] +} + +// NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. +func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { + return &devPodWorkspacePresetLister{listers.New[*v1.DevPodWorkspacePreset](indexer, v1.Resource("devpodworkspacepreset"))} +} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 534e2257..7870d440 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -50,6 +50,10 @@ type DevPodWorkspaceInstanceListerExpansion interface{} // DevPodWorkspaceInstanceNamespaceLister. type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// DevPodWorkspacePresetListerExpansion allows custom methods to be added to +// DevPodWorkspacePresetLister. +type DevPodWorkspacePresetListerExpansion interface{} + // DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to // DevPodWorkspaceTemplateLister. type DevPodWorkspaceTemplateListerExpansion interface{} diff --git a/pkg/listers/storage/v1/devpodworkspacepreset.go b/pkg/listers/storage/v1/devpodworkspacepreset.go new file mode 100644 index 00000000..ca475058 --- /dev/null +++ b/pkg/listers/storage/v1/devpodworkspacepreset.go @@ -0,0 +1,32 @@ +// 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" +) + +// DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. +// All objects returned here must be treated as read-only. +type DevPodWorkspacePresetLister interface { + // List lists all DevPodWorkspacePresets in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1.DevPodWorkspacePreset, err error) + // Get retrieves the DevPodWorkspacePreset from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1.DevPodWorkspacePreset, error) + DevPodWorkspacePresetListerExpansion +} + +// devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. +type devPodWorkspacePresetLister struct { + listers.ResourceIndexer[*v1.DevPodWorkspacePreset] +} + +// NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. +func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { + return &devPodWorkspacePresetLister{listers.New[*v1.DevPodWorkspacePreset](indexer, v1.Resource("devpodworkspacepreset"))} +} diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index a6099455..dd70675a 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -34,6 +34,10 @@ type DevPodWorkspaceInstanceListerExpansion interface{} // DevPodWorkspaceInstanceNamespaceLister. type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// DevPodWorkspacePresetListerExpansion allows custom methods to be added to +// DevPodWorkspacePresetLister. +type DevPodWorkspacePresetListerExpansion interface{} + // DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to // DevPodWorkspaceTemplateLister. type DevPodWorkspaceTemplateListerExpansion interface{} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 7582087c..24daa5d5 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -176,6 +176,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), @@ -192,7 +197,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GitEnvironmentTemplate": schema_pkg_apis_management_v1_GitEnvironmentTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.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), @@ -421,8 +425,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStopOptions": schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandUpOptions": schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), @@ -433,6 +439,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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), @@ -469,6 +481,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), @@ -481,6 +494,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner": schema_pkg_apis_storage_v1_Runner(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef": schema_pkg_apis_storage_v1_RunnerClusterRef(ref), @@ -559,6 +573,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(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), @@ -8931,11 +8946,11 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe Format: "", }, }, - "git": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "Description describes the environment template", + Type: []string{"string"}, + Format: "", }, }, "owner": { @@ -8958,6 +8973,12 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe }, }, }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod environments", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + }, + }, "versions": { SchemaProps: spec.SchemaProps{ Description: "Versions are different versions of the template that can be referenced as well", @@ -8976,7 +8997,7 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -9458,6 +9479,12 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, + "presetRef": { + SchemaProps: spec.SchemaProps{ + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), + }, + }, "templateRef": { SchemaProps: spec.SchemaProps{ Description: "TemplateRef holds the DevPod machine template reference", @@ -9467,7 +9494,6 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere "environmentRef": { SchemaProps: spec.SchemaProps{ Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, @@ -9516,7 +9542,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -9691,6 +9717,221 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.Refe } } +func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePreset", + 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.DevPodWorkspacePresetSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(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.DevPodWorkspacePreset"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetSource", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "git": { + SchemaProps: spec.SchemaProps{ + Description: "Git stores path to git repo to use as workspace source", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Description: "Image stores container image to use as workspace source", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source stores inline path of project source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), + }, + }, + "infrastructureRef": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "useProjectGitCredentials": { + 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: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "access": { + 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"), + }, + }, + }, + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), + }, + }, + }, + }, + }, + }, + Required: []string{"source", "infrastructureRef"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -10469,42 +10710,6 @@ func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) c } } -func schema_pkg_apis_management_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "repository": { - SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "revision": { - SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", - Type: []string{"string"}, - Format: "", - }, - }, - "subpath": { - SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"repository"}, - }, - }, - } -} - func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -13275,6 +13480,13 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), }, }, + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + }, + }, "members": { SchemaProps: spec.SchemaProps{ Description: "Members are the users and teams that are part of this project", @@ -13337,7 +13549,7 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } @@ -13479,6 +13691,20 @@ func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback }, }, }, + "devPodWorkspacePresets": { + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresets holds all the allowed workspace presets", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), + }, + }, + }, + }, + }, "defaultDevPodEnvironmentTemplate": { SchemaProps: spec.SchemaProps{ Description: "DefaultDevPodEnvironmentTemplate", @@ -13490,7 +13716,7 @@ func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -21636,11 +21862,44 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref common.ReferenceCa Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), }, }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "git": { + SchemaProps: spec.SchemaProps{ + Description: "Git holds configuration for git environment spec source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + }, + }, + "inline": { + SchemaProps: spec.SchemaProps{ + Description: "Inline holds an inline devcontainer.json definition", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, } } @@ -21706,11 +21965,11 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.Referen Format: "", }, }, - "git": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Description: "Description describes the environment template", + Type: []string{"string"}, + Format: "", }, }, "owner": { @@ -21733,6 +21992,12 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.Referen }, }, }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod environments", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + }, + }, "versions": { SchemaProps: spec.SchemaProps{ Description: "Versions are different versions of the template that can be referenced as well", @@ -21751,7 +22016,18 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodEnvironmentTemplateStatus holds the status", + Type: []string{"object"}, + }, + }, } } @@ -21761,11 +22037,11 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.Refe SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Git holds the GitEnvironmentTemplate", + Description: "Template holds the environment template definition", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), }, }, "version": { @@ -21779,7 +22055,7 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"}, } } @@ -22024,6 +22300,12 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.Reference Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, + "presetRef": { + SchemaProps: spec.SchemaProps{ + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), + }, + }, "templateRef": { SchemaProps: spec.SchemaProps{ Description: "TemplateRef holds the DevPod machine template reference", @@ -22033,7 +22315,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.Reference "environmentRef": { SchemaProps: spec.SchemaProps{ Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, @@ -22082,7 +22363,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.Reference }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -22182,6 +22463,266 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref co } } +func schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePreset", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(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 stores path to git repo to use as workspace source", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Description: "Image stores container image to use as workspace source", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source stores inline path of project source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), + }, + }, + "infrastructureRef": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "useProjectGitCredentials": { + 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: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "access": { + 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"), + }, + }, + }, + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), + }, + }, + }, + }, + }, + }, + Required: []string{"source", "infrastructureRef"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePresetStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version. Needs to be in X.X.X format.", + Type: []string{"string"}, + Format: "", + }, + }, + "source": { + SchemaProps: spec.SchemaProps{ + Description: "Source stores inline path of project source", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), + }, + }, + "infrastructureRef": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "useProjectGitCredentials": { + 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: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"}, + } +} + func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -22673,6 +23214,13 @@ func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) com Format: "", }, }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version of DevPodEnvironmentTemplate this references", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"name"}, }, @@ -23954,6 +24502,34 @@ func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common } } +func schema_pkg_apis_storage_v1_PresetRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of DevPodWorkspacePreset", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version holds the preset version to use. Version is expected to be in semantic versioning format. Alternatively, you can also exchange major, minor or patch with an 'x' to tell Loft to automatically select the latest major, minor or patch version.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24132,6 +24708,13 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), }, }, + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + }, + }, "members": { SchemaProps: spec.SchemaProps{ Description: "Members are the users and teams that are part of this project", @@ -24194,7 +24777,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(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.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } @@ -24571,6 +25154,25 @@ func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) } } +func schema_pkg_apis_storage_v1_RequirePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If true, all users within the project will not be allowed to create a new instance without a preset. By default, all users are allowed to create a new instance without a preset.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -28336,6 +28938,27 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen } } +func schema_pkg_apis_storage_v1_WorkspaceRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of DevPodWorkspaceTemplate this references", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -29445,10 +30068,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29610,10 +30232,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -29712,10 +30333,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31113,10 +31733,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From 6e8daf3fbcb7f97576d2c40a08fab56a66d4f679 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:07:36 +0000 Subject: [PATCH 06/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- .../install/zz_generated.api.register.go | 1 + ...podworkspaceinstance_troubleshoot_types.go | 41 +++++ .../v1/devpodworkspaceinstance_types.go | 1 + .../v1/zz_generated.api.register.go | 14 ++ .../management/v1/zz_generated.conversion.go | 75 ++++++++ .../management/v1/zz_generated.deepcopy.go | 89 ++++++++++ .../management/v1/zz_generated.defaults.go | 163 ++++++++++++++++++ .../management/zz_generated.api.register.go | 35 +++- pkg/apis/management/zz_generated.deepcopy.go | 89 ++++++++++ pkg/apis/management/zz_generated.defaults.go | 163 ++++++++++++++++++ .../v1/devpodworkspaceinstance_types.go | 4 + pkg/openapi/zz_generated.openapi.go | 146 ++++++++++++++++ 14 files changed, 822 insertions(+), 5 deletions(-) create mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go diff --git a/go.mod b/go.mod index 9092aa35..d959ab37 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 - github.com/loft-sh/agentapi/v4 v4.2.0-alpha.5 + github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 3f56f01a..ed77eb02 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 h1:fAn1LUVsxpkRasDJcSq7wRncxET+zeA8MVtGyxL2rSU= github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.5 h1:tyBxgUjW/JmV9CL4GxNBrLTPNcrd6r7jFmO+/wjHYTw= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.5/go.mod h1:yqbIMmyXqbzZcK0DlwldRLy0xb3lYnH4NoI3K+iETlM= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 h1:eVIzaW+EvIygxNXl5163c1+WcUr8c95OP6lj8FcJHUc= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6/go.mod h1:yqbIMmyXqbzZcK0DlwldRLy0xb3lYnH4NoI3K+iETlM= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index f4ddc32e..0c6d75ed 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -59,6 +59,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.DevPodSshOptions{}, &management.DevPodWorkspaceInstanceState{}, &management.DevPodStopOptions{}, + &management.DevPodWorkspaceInstanceTroubleshoot{}, &management.DevPodUpOptions{}, &management.DevPodWorkspacePreset{}, &management.DevPodWorkspacePresetList{}, diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go new file mode 100644 index 00000000..33edb58a --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go @@ -0,0 +1,41 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceTroubleshoot struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // State holds the workspaces state as given by 'devpod export' + // +optional + State string `json:"state,omitempty"` + + // Workspace holds the workspace's instance object data + // +optional + Workspace *DevPodWorkspaceInstance `json:"workspace,omitempty"` + + // Template holds the workspace instance's template used to create it. + // This is the raw template, not the rendered one. + // +optional + Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` + + // Pods is a list of pod objects that are linked to the workspace. + // +optional + Pods []corev1.Pod `json:"pods,omitempty"` + + // PVCs is a list of PVC objects that are linked to the workspace. + // +optional + PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` + + // Errors is a list of errors that occurred while trying to collect + // informations for troubleshooting. + // +optional + Errors []string `json:"errors,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go index a77b5498..eed9e595 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_types.go @@ -22,6 +22,7 @@ import ( // +subresource:request=DevPodStopOptions,path=stop,kind=DevPodStopOptions,rest=DevPodStopOptionsREST // +subresource:request=DevPodStatusOptions,path=getstatus,kind=DevPodStatusOptions,rest=DevPodStatusOptionsREST // +subresource:request=DevPodWorkspaceInstanceState,path=state,kind=DevPodWorkspaceInstanceState,rest=DevPodWorkspaceInstanceStateREST +// +subresource:request=DevPodWorkspaceInstanceTroubleshoot,path=troubleshoot,kind=DevPodWorkspaceInstanceTroubleshoot,rest=DevPodWorkspaceInstanceTroubleshootREST type DevPodWorkspaceInstance 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 6f1d2d3a..338cedae 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -50,6 +50,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &DevPodSshOptions{}, &DevPodWorkspaceInstanceState{}, &DevPodStopOptions{}, + &DevPodWorkspaceInstanceTroubleshoot{}, &DevPodUpOptions{}, &DevPodWorkspacePreset{}, &DevPodWorkspacePresetList{}, @@ -226,6 +227,11 @@ var ( func() runtime.Object { return &DevPodStopOptions{} }, // Register versioned resource nil, management.NewDevPodStopOptionsREST), + builders.NewApiResourceWithStorage( + management.InternalDevPodWorkspaceInstanceTroubleshootREST, + func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, // Register versioned resource + nil, + management.NewDevPodWorkspaceInstanceTroubleshootREST), builders.NewApiResourceWithStorage( management.InternalDevPodUpOptionsREST, func() runtime.Object { return &DevPodUpOptions{} }, // Register versioned resource @@ -632,6 +638,14 @@ type DevPodStopOptionsList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspaceInstanceTroubleshootList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodUpOptionsList 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 225988fa..07aabbeb 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" @@ -1019,6 +1020,26 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshoot)(nil), (*management.DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(a.(*DevPodWorkspaceInstanceTroubleshoot), b.(*management.DevPodWorkspaceInstanceTroubleshoot), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTroubleshoot)(nil), (*DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(a.(*management.DevPodWorkspaceInstanceTroubleshoot), b.(*DevPodWorkspaceInstanceTroubleshoot), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshootList)(nil), (*management.DevPodWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(a.(*DevPodWorkspaceInstanceTroubleshootList), b.(*management.DevPodWorkspaceInstanceTroubleshootList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTroubleshootList)(nil), (*DevPodWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(a.(*management.DevPodWorkspaceInstanceTroubleshootList), b.(*DevPodWorkspaceInstanceTroubleshootList), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePreset)(nil), (*management.DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(a.(*DevPodWorkspacePreset), b.(*management.DevPodWorkspacePreset), scope) }); err != nil { @@ -5591,6 +5612,60 @@ func Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInsta return autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in, out, s) } +func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.State = in.State + out.Workspace = (*management.DevPodWorkspaceInstance)(unsafe.Pointer(in.Workspace)) + out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) + out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) + out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) + out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.State = in.State + out.Workspace = (*DevPodWorkspaceInstance)(unsafe.Pointer(in.Workspace)) + out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) + out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) + out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) + out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) + return nil +} + +// Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in, out, s) +} + func autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 13aaa5df..5bebc5a4 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -12,6 +12,7 @@ import ( auditv1 "github.com/loft-sh/api/v4/pkg/apis/audit/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -2742,6 +2743,94 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStat return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Workspace != nil { + in, out := &in.Workspace, &out.Workspace + *out = new(DevPodWorkspaceInstance) + (*in).DeepCopyInto(*out) + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(storagev1.DevPodWorkspaceTemplate) + (*in).DeepCopyInto(*out) + } + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = make([]corev1.Pod, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PVCs != nil { + in, out := &in.PVCs, &out.PVCs + *out = make([]corev1.PersistentVolumeClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Errors != nil { + in, out := &in.Errors, &out.Errors + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshoot) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceTroubleshoot, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshootList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { *out = *in diff --git a/pkg/apis/management/v1/zz_generated.defaults.go b/pkg/apis/management/v1/zz_generated.defaults.go index d7e43310..dcd0a968 100644 --- a/pkg/apis/management/v1/zz_generated.defaults.go +++ b/pkg/apis/management/v1/zz_generated.defaults.go @@ -14,6 +14,12 @@ 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(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) + }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) + }) 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)) }) @@ -23,6 +29,163 @@ func RegisterDefaults(scheme *runtime.Scheme) error { return nil } +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { + for i := range in.Pods { + a := &in.Pods[i] + for j := range a.Spec.Volumes { + b := &a.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Spec.InitContainers { + b := &a.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.Containers { + b := &a.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.EphemeralContainers { + b := &a.Spec.EphemeralContainers[j] + for k := range b.EphemeralContainerCommon.Ports { + c := &b.EphemeralContainerCommon.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.EphemeralContainerCommon.LivenessProbe != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.ReadinessProbe != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.StartupProbe != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) + } +} + func SetObjectDefaults_ProjectClusters(in *ProjectClusters) { for i := range in.Runners { a := &in.Runners[i] diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 902b93b7..1c1b28e6 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -15,6 +15,7 @@ import ( "github.com/loft-sh/api/v4/pkg/managerfactory" "github.com/loft-sh/apiserver/pkg/builders" authorizationv1 "k8s.io/api/authorization/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" "k8s.io/apimachinery/pkg/apis/meta/internalversion" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -700,8 +701,16 @@ var ( NewDevPodStopOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDevPodStopOptionsRESTFunc(Factory) } - NewDevPodStopOptionsRESTFunc NewRESTFunc - InternalDevPodUpOptionsREST = builders.NewInternalSubresource( + NewDevPodStopOptionsRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceTroubleshootREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceTroubleshoot", "troubleshoot", + func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, + ) + NewDevPodWorkspaceInstanceTroubleshootREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceTroubleshootRESTFunc(Factory) + } + NewDevPodWorkspaceInstanceTroubleshootRESTFunc NewRESTFunc + InternalDevPodUpOptionsREST = builders.NewInternalSubresource( "devpodworkspaceinstances", "DevPodUpOptions", "up", func() runtime.Object { return &DevPodUpOptions{} }, ) @@ -1292,6 +1301,7 @@ var ( InternalDevPodSshOptionsREST, InternalDevPodWorkspaceInstanceStateREST, InternalDevPodStopOptionsREST, + InternalDevPodWorkspaceInstanceTroubleshootREST, InternalDevPodUpOptionsREST, InternalDevPodWorkspacePreset, InternalDevPodWorkspacePresetStatus, @@ -1968,6 +1978,19 @@ type DevPodWorkspaceInstanceStatus struct { SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceTroubleshoot struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + State string `json:"state,omitempty"` + Workspace *DevPodWorkspaceInstance `json:"workspace,omitempty"` + Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` + Pods []corev1.Pod `json:"pods,omitempty"` + PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` + Errors []string `json:"errors,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -4208,6 +4231,14 @@ type DevPodStopOptionsList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspaceInstanceTroubleshootList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodUpOptionsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index ae1dfd14..5da053f7 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -12,6 +12,7 @@ import ( v1 "github.com/loft-sh/api/v4/pkg/apis/audit/v1" storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" uiv1 "github.com/loft-sh/api/v4/pkg/apis/ui/v1" + corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -2717,6 +2718,94 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStat return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Workspace != nil { + in, out := &in.Workspace, &out.Workspace + *out = new(DevPodWorkspaceInstance) + (*in).DeepCopyInto(*out) + } + if in.Template != nil { + in, out := &in.Template, &out.Template + *out = new(storagev1.DevPodWorkspaceTemplate) + (*in).DeepCopyInto(*out) + } + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = make([]corev1.Pod, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PVCs != nil { + in, out := &in.PVCs, &out.PVCs + *out = make([]corev1.PersistentVolumeClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Errors != nil { + in, out := &in.Errors, &out.Errors + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshoot) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceTroubleshoot, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTroubleshootList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { *out = *in diff --git a/pkg/apis/management/zz_generated.defaults.go b/pkg/apis/management/zz_generated.defaults.go index 619605f4..228a30c3 100644 --- a/pkg/apis/management/zz_generated.defaults.go +++ b/pkg/apis/management/zz_generated.defaults.go @@ -14,6 +14,12 @@ 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(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) + }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) + }) 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)) }) @@ -23,6 +29,163 @@ func RegisterDefaults(scheme *runtime.Scheme) error { return nil } +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { + for i := range in.Pods { + a := &in.Pods[i] + for j := range a.Spec.Volumes { + b := &a.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Spec.InitContainers { + b := &a.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.Containers { + b := &a.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Spec.EphemeralContainers { + b := &a.Spec.EphemeralContainers[j] + for k := range b.EphemeralContainerCommon.Ports { + c := &b.EphemeralContainerCommon.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.EphemeralContainerCommon.LivenessProbe != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.ReadinessProbe != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.EphemeralContainerCommon.StartupProbe != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil { + if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) + } +} + func SetObjectDefaults_ProjectClusters(in *ProjectClusters) { for i := range in.Runners { a := &in.Runners[i] diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go index 3063847b..c6e86c3f 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go @@ -17,6 +17,10 @@ var ( // DevPodWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace DevPodWorkspaceUIDLabel = "loft.sh/workspace-uid" + // DevPodKubernetesProviderWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace on resources + // created by the DevPod Kubernetes provider. + DevPodKubernetesProviderWorkspaceUIDLabel = "devpod.sh/workspace-uid" + // DevPodWorkspacePictureAnnotation holds the workspace picture url of the devpod workspace DevPodWorkspacePictureAnnotation = "loft.sh/workspace-picture" diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 24daa5d5..9ac43199 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -176,6 +176,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), @@ -9717,6 +9719,150 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.Refe } } +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "State holds the workspaces state as given by 'devpod export'", + Type: []string{"string"}, + Format: "", + }, + }, + "workspace": { + SchemaProps: spec.SchemaProps{ + Description: "Workspace holds the workspace's instance object data", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the workspace instance's template used to create it. This is the raw template, not the rendered one.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate"), + }, + }, + "pods": { + SchemaProps: spec.SchemaProps{ + Description: "Pods is a list of pod objects that are linked to the workspace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Pod"), + }, + }, + }, + }, + }, + "pvcs": { + SchemaProps: spec.SchemaProps{ + Description: "PVCs is a list of PVC objects that are linked to the workspace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), + }, + }, + }, + }, + }, + "errors": { + SchemaProps: spec.SchemaProps{ + Description: "Errors is a list of errors that occurred while trying to collect informations for troubleshooting.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate", "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(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.DevPodWorkspaceInstanceTroubleshoot"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ From a24d4104d586e7261007a7b9bf50b0b4a6c496c7 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 29 Nov 2024 07:49:10 +0000 Subject: [PATCH 07/30] [skip ci] repo-sync --- go.mod | 4 +- go.sum | 12 +- pkg/apis/management/v1/cluster_types.go | 11 +- pkg/apis/management/v1/config_types.go | 44 +++- .../v1/devpodworkspaceinstance_types.go | 1 + .../v1/zz_generated.api.register.go | 5 + .../management/v1/zz_generated.conversion.go | 106 ++++++++ .../management/v1/zz_generated.deepcopy.go | 92 ++++++- .../management/zz_generated.api.register.go | 26 +- pkg/apis/management/zz_generated.deepcopy.go | 92 ++++++- pkg/apis/storage/v1/cluster_types.go | 49 ++++ pkg/apis/storage/v1/zz_generated.deepcopy.go | 52 +++- .../management/v1/devpodworkspaceinstance.go | 15 ++ .../v1/fake/fake_devpodworkspaceinstance.go | 12 + pkg/openapi/zz_generated.openapi.go | 226 +++++++++++++++++- 15 files changed, 723 insertions(+), 24 deletions(-) diff --git a/go.mod b/go.mod index d959ab37..cc25fe16 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.5 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0 + github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 @@ -61,7 +61,7 @@ require ( github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus/client_golang v1.20.4 // indirect + github.com/prometheus/client_golang v1.20.5 // 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 diff --git a/go.sum b/go.sum index ed77eb02..bd9ffabf 100644 --- a/go.sum +++ b/go.sum @@ -107,10 +107,10 @@ 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-20241105163154-88dd686aaba0 h1:fAn1LUVsxpkRasDJcSq7wRncxET+zeA8MVtGyxL2rSU= -github.com/loft-sh/admin-apis v0.0.0-20241105163154-88dd686aaba0/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 h1:eVIzaW+EvIygxNXl5163c1+WcUr8c95OP6lj8FcJHUc= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6/go.mod h1:yqbIMmyXqbzZcK0DlwldRLy0xb3lYnH4NoI3K+iETlM= +github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= +github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 h1:uwEMDiehtTJhRjE42HaaNT+7k6vBH6RMaZyn7UfQ0z8= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6/go.mod h1:np3oo4gi1fYJvhXAYLk+SY6bVy2iqsxoAf8ebZNMnXU= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -135,8 +135,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI= -github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= +github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= +github.com/prometheus/client_golang v1.20.5/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= diff --git a/pkg/apis/management/v1/cluster_types.go b/pkg/apis/management/v1/cluster_types.go index af314867..228c2f20 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" ) @@ -16,7 +17,7 @@ import ( // 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 @@ -63,3 +64,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/config_types.go b/pkg/apis/management/v1/config_types.go index 3015b113..86a9e102 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -70,9 +70,12 @@ type ConfigStatus struct { // DisableLoftConfigEndpoint will disable setting config via the UI and config.management.loft.sh endpoint DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` - // Cloud holkds the settings to be used exclusively in vCluster Cloud based + // 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"` } // Audit holds the audit configuration options for loft. Changing any options will require a loft restart @@ -716,3 +719,42 @@ type MaintenanceWindow struct { // 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"` + + // GlobalMetrics are settings for the global metrics backend. This aggregates metrics for the Cost Control Dashboard + // across all connected clusters + GlobalMetrics *storagev1.Metrics `json:"globalMetrics,omitempty"` + + // ClusterMetrics are settings for each cluster's metrics backend. These settings apply all connected clusters + // unless overridden by modifying the Cluster's spec. + ClusterMetrics *storagev1.Metrics `json:"clusterMetrics,omitempty"` + + // Settings specify price-related settings that are taken into account for the ROI dashboard calculations. + Settings *CostControlSettings `json:"settings,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"` + + // ControlPlanePricePerCluster specifies the price of one physical cluster. + ControlPlanePricePerCluster *CostControlResourcePrice `json:"controlPlanePricePerCluster,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"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go index eed9e595..08db551b 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_types.go @@ -11,6 +11,7 @@ import ( // +genclient:noStatus // +genclient:method=GetState,verb=get,subresource=state,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState // +genclient:method=SetState,verb=create,subresource=state,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState +// +genclient:method=Troubleshoot,verb=get,subresource=troubleshoot,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 338cedae..41670215 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -156,6 +156,11 @@ var ( nil, 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 diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 07aabbeb..9118c733 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -820,6 +820,36 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*CostControl)(nil), (*management.CostControl)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControl_To_management_CostControl(a.(*CostControl), b.(*management.CostControl), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControl)(nil), (*CostControl)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControl_To_v1_CostControl(a.(*management.CostControl), b.(*CostControl), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlResourcePrice)(nil), (*management.CostControlResourcePrice)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlResourcePrice_To_management_CostControlResourcePrice(a.(*CostControlResourcePrice), b.(*management.CostControlResourcePrice), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlResourcePrice)(nil), (*CostControlResourcePrice)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlResourcePrice_To_v1_CostControlResourcePrice(a.(*management.CostControlResourcePrice), b.(*CostControlResourcePrice), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlSettings)(nil), (*management.CostControlSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlSettings_To_management_CostControlSettings(a.(*CostControlSettings), b.(*management.CostControlSettings), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlSettings)(nil), (*CostControlSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlSettings_To_v1_CostControlSettings(a.(*management.CostControlSettings), b.(*CostControlSettings), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*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 { @@ -4865,6 +4895,7 @@ func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, ou out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint out.Cloud = (*management.Cloud)(unsafe.Pointer(in.Cloud)) + out.CostControl = (*management.CostControl)(unsafe.Pointer(in.CostControl)) return nil } @@ -4887,6 +4918,7 @@ func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.Confi out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint out.Cloud = (*Cloud)(unsafe.Pointer(in.Cloud)) + out.CostControl = (*CostControl)(unsafe.Pointer(in.CostControl)) return nil } @@ -5053,6 +5085,80 @@ func Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualCl return autoConvert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualClusterConfigStatus(in, out, s) } +func autoConvert_v1_CostControl_To_management_CostControl(in *CostControl, out *management.CostControl, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + out.GlobalMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.GlobalMetrics)) + out.ClusterMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.ClusterMetrics)) + out.Settings = (*management.CostControlSettings)(unsafe.Pointer(in.Settings)) + return nil +} + +// 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_CostControl_To_v1_CostControl(in *management.CostControl, out *CostControl, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + out.GlobalMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.GlobalMetrics)) + out.ClusterMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.ClusterMetrics)) + out.Settings = (*CostControlSettings)(unsafe.Pointer(in.Settings)) + return nil +} + +// 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_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_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_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_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_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.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.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_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in *DevPodDeleteOptions, out *management.DevPodDeleteOptions, s conversion.Scope) error { out.Options = in.Options return nil diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 5bebc5a4..2122c056 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -1019,7 +1019,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 } @@ -1835,7 +1835,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 } @@ -2034,6 +2034,11 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *out = new(Cloud) **out = **in } + if in.CostControl != nil { + in, out := &in.CostControl, &out.CostControl + *out = new(CostControl) + (*in).DeepCopyInto(*out) + } return } @@ -2210,6 +2215,89 @@ func (in *ConvertVirtualClusterConfigStatus) DeepCopy() *ConvertVirtualClusterCo return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControl) DeepCopyInto(out *CostControl) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + if in.GlobalMetrics != nil { + in, out := &in.GlobalMetrics, &out.GlobalMetrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) + } + if in.ClusterMetrics != nil { + in, out := &in.ClusterMetrics, &out.ClusterMetrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) + } + 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 CostControl. +func (in *CostControl) DeepCopy() *CostControl { + if in == nil { + return nil + } + out := new(CostControl) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlResourcePrice) DeepCopyInto(out *CostControlResourcePrice) { + *out = *in + return +} + +// 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(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 *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.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 CostControlSettings. +func (in *CostControlSettings) DeepCopy() *CostControlSettings { + if in == nil { + return nil + } + 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 *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 1c1b28e6..b4621659 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -77,7 +77,11 @@ var ( NewClusterREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewClusterRESTFunc(Factory) } - NewClusterRESTFunc NewRESTFunc + NewClusterRESTFunc NewRESTFunc + NewClusterStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewClusterStatusRESTFunc(Factory) + } + NewClusterStatusRESTFunc NewRESTFunc ManagementClusterAccessStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalClusterAccess, func() runtime.Object { return &ClusterAccess{} }, // Register versioned resource @@ -1855,6 +1859,7 @@ type ConfigStatus struct { VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` Cloud *Cloud `json:"cloud,omitempty"` + CostControl *CostControl `json:"costControl,omitempty"` } type Connector struct { @@ -1894,6 +1899,25 @@ type ConvertVirtualClusterConfigStatus struct { Converted bool `json:"converted"` } +type CostControl struct { + Enabled *bool `json:"enabled,omitempty"` + GlobalMetrics *storagev1.Metrics `json:"globalMetrics,omitempty"` + ClusterMetrics *storagev1.Metrics `json:"clusterMetrics,omitempty"` + Settings *CostControlSettings `json:"settings,omitempty"` +} + +type CostControlResourcePrice struct { + Price float64 `json:"price,omitempty"` + TimePeriod string `json:"timePeriod,omitempty"` +} + +type CostControlSettings struct { + PriceCurrency string `json:"priceCurrency,omitempty"` + AvgCPUPricePerNode *CostControlResourcePrice `json:"averageCPUPricePerNode,omitempty"` + AvgRAMPricePerNode *CostControlResourcePrice `json:"averageRAMPricePerNode,omitempty"` + ControlPlanePricePerCluster *CostControlResourcePrice `json:"controlPlanePricePerCluster,omitempty"` +} + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type DevPodDeleteOptions struct { diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 5da053f7..59bf659e 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -994,7 +994,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 } @@ -1810,7 +1810,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 } @@ -2009,6 +2009,11 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *out = new(Cloud) **out = **in } + if in.CostControl != nil { + in, out := &in.CostControl, &out.CostControl + *out = new(CostControl) + (*in).DeepCopyInto(*out) + } return } @@ -2185,6 +2190,89 @@ func (in *ConvertVirtualClusterConfigStatus) DeepCopy() *ConvertVirtualClusterCo return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControl) DeepCopyInto(out *CostControl) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + if in.GlobalMetrics != nil { + in, out := &in.GlobalMetrics, &out.GlobalMetrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) + } + if in.ClusterMetrics != nil { + in, out := &in.ClusterMetrics, &out.ClusterMetrics + *out = new(storagev1.Metrics) + (*in).DeepCopyInto(*out) + } + 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 CostControl. +func (in *CostControl) DeepCopy() *CostControl { + if in == nil { + return nil + } + out := new(CostControl) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlResourcePrice) DeepCopyInto(out *CostControlResourcePrice) { + *out = *in + return +} + +// 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(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 *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.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 CostControlSettings. +func (in *CostControlSettings) DeepCopy() *CostControlSettings { + if in == nil { + return nil + } + 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 *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { *out = *in diff --git a/pkg/apis/storage/v1/cluster_types.go b/pkg/apis/storage/v1/cluster_types.go index e814511f..88341233 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -2,9 +2,28 @@ 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" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +const ( + 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" + + GlobalPrometheusLastAppliedHashAnnotation = "loft.sh/global-prometheus-last-applied-hash" + GlobalPrometheusDeployed agentstoragev1.ConditionType = "GlobalPrometheusDeployed" + GlobalPrometheusAvailable agentstoragev1.ConditionType = "GlobalPrometheusAvailable" + + OpenCostLastAppliedHashAnnotation = "loft.sh/opencost-last-applied-hash" + OpenCostDeployed agentstoragev1.ConditionType = "OpenCostDeployed" + OpenCostAvailable agentstoragev1.ConditionType = "OpenCostAvailable" +) + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -35,6 +54,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 +99,9 @@ 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"` } type AllowedClusterAccountTemplate struct { @@ -90,6 +120,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 +207,18 @@ type Chart struct { // +optional Password string `json:"password,omitempty"` } + +type Metrics struct { + // 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"` +} diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index 0412cfaf..c498bf45 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -943,7 +943,7 @@ func (in *Cluster) DeepCopyInto(out *Cluster) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } @@ -1302,6 +1302,11 @@ 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) + } return } @@ -1318,6 +1323,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 } @@ -2677,6 +2689,23 @@ func (in *Member) DeepCopy() *Member { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Metrics) DeepCopyInto(out *Metrics) { + *out = *in + in.Storage.DeepCopyInto(&out.Storage) + return +} + +// 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(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 *NamespacePattern) DeepCopyInto(out *NamespacePattern) { *out = *in @@ -4132,6 +4161,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 diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go index 4a1d6d9d..23f8a7ed 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go @@ -31,6 +31,7 @@ type DevPodWorkspaceInstanceInterface interface { 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) + Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*v1.DevPodWorkspaceInstanceTroubleshoot, error) DevPodWorkspaceInstanceExpansion } @@ -81,3 +82,17 @@ func (c *devPodWorkspaceInstances) SetState(ctx context.Context, devPodWorkspace Into(result) return } + +// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding v1.DevPodWorkspaceInstanceTroubleshoot object, and an error if there is any. +func (c *devPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { + result = &v1.DevPodWorkspaceInstanceTroubleshoot{} + err = c.GetClient().Get(). + Namespace(c.GetNamespace()). + Resource("devpodworkspaceinstances"). + Name(devPodWorkspaceInstanceName). + SubResource("troubleshoot"). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go index 759bff6e..78b9596f 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go @@ -140,3 +140,15 @@ func (c *FakeDevPodWorkspaceInstances) SetState(ctx context.Context, devPodWorks } return obj.(*v1.DevPodWorkspaceInstanceState), err } + +// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstanceTroubleshoot object, and an error if there is any. +func (c *FakeDevPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { + emptyResult := &v1.DevPodWorkspaceInstanceTroubleshoot{} + obj, err := c.Fake. + Invokes(testing.NewGetSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, "troubleshoot", devPodWorkspaceInstanceName, options), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspaceInstanceTroubleshoot), err +} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 9ac43199..895a497c 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -156,6 +156,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.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), @@ -476,6 +479,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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), @@ -527,6 +531,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), @@ -8121,11 +8126,17 @@ func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) com }, }, }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -8154,6 +8165,20 @@ func schema_pkg_apis_management_v1_ClusterStatus(ref common.ReferenceCallback) c Format: "", }, }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, "online": { SchemaProps: spec.SchemaProps{ Description: "Online is whether the cluster is currently connected to the coordination server.", @@ -8164,6 +8189,8 @@ func schema_pkg_apis_management_v1_ClusterStatus(ref common.ReferenceCallback) c }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } @@ -8465,15 +8492,21 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co }, "cloud": { SchemaProps: spec.SchemaProps{ - Description: "Cloud holkds the settings to be used exclusively in vCluster Cloud based environments and deployments.", + Description: "Cloud holds the settings to be used exclusively in vCluster Cloud based environments and deployments.", Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud"), }, }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl"), + }, + }, }, }, }, 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.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, } } @@ -8758,6 +8791,110 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref common. } } +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: "", + }, + }, + "globalMetrics": { + SchemaProps: spec.SchemaProps{ + Description: "GlobalMetrics are settings for the global metrics backend. This aggregates metrics for the Cost Control Dashboard across all connected clusters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "clusterMetrics": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterMetrics are settings for each cluster's metrics backend. These settings apply all connected clusters unless overridden by modifying the Cluster's spec.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "settings": { + SchemaProps: spec.SchemaProps{ + Description: "Settings specify price-related settings that are taken into account for the ROI dashboard calculations.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"}, + } +} + +func schema_pkg_apis_management_v1_CostControlResourcePrice(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "price": { + SchemaProps: spec.SchemaProps{ + Description: "Price specifies the price.", + Type: []string{"number"}, + Format: "double", + }, + }, + "timePeriod": { + SchemaProps: spec.SchemaProps{ + Description: "TimePeriod specifies the time period for the price.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "priceCurrency": { + SchemaProps: spec.SchemaProps{ + Description: "PriceCurrency specifies the currency.", + Type: []string{"string"}, + Format: "", + }, + }, + "averageCPUPricePerNode": { + SchemaProps: spec.SchemaProps{ + Description: "AvgCPUPricePerNode specifies the average CPU price per node.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + "averageRAMPricePerNode": { + SchemaProps: spec.SchemaProps{ + Description: "AvgRAMPricePerNode specifies the average RAM price per node.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + "controlPlanePricePerCluster": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlanePricePerCluster specifies the price of one physical cluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"}, + } +} + func schema_pkg_apis_management_v1_DevPodDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -21709,11 +21846,17 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common }, }, }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -21742,9 +21885,25 @@ 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } @@ -24180,6 +24339,27 @@ func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.Open } } +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{ + "storage": { + SchemaProps: spec.SchemaProps{ + Description: "Storage contains settings related to the metrics backend's persistent volume configuration", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage"}, + } +} + func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -26740,6 +26920,32 @@ func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallbac } } +func schema_pkg_apis_storage_v1_Storage(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "storageClass": { + SchemaProps: spec.SchemaProps{ + Description: "StorageClass the storage class to use when provisioning the metrics backend's persistent volume If set to \"-\" or \"\" dynamic provisioning is disabled If set to undefined or null (the default), the cluster's default storage class is used for provisioning", + Type: []string{"string"}, + Format: "", + }, + }, + "size": { + SchemaProps: spec.SchemaProps{ + Description: "Size the size of the metrics backend's persistent volume", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_storage_v1_StreamContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -30214,9 +30420,10 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30378,9 +30585,10 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30479,9 +30687,10 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31879,9 +32088,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From 32cadd49c56805206b42f710430b57aa322b6e3f Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:11:29 +0000 Subject: [PATCH 08/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- pkg/apis/management/v1/config_types.go | 26 +++- .../management/v1/zz_generated.conversion.go | 78 ++++++++++- .../management/v1/zz_generated.deepcopy.go | 59 ++++++-- .../management/zz_generated.api.register.go | 19 ++- pkg/apis/management/zz_generated.deepcopy.go | 59 ++++++-- pkg/apis/storage/v1/cluster_types.go | 22 ++- pkg/apis/storage/v1/zz_generated.deepcopy.go | 41 ++++++ pkg/openapi/zz_generated.openapi.go | 130 ++++++++++++++++-- 10 files changed, 391 insertions(+), 49 deletions(-) diff --git a/go.mod b/go.mod index cc25fe16..bd7fb354 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 + github.com/loft-sh/agentapi/v4 v4.2.0-alpha.7 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index bd9ffabf..01049f9c 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6 h1:uwEMDiehtTJhRjE42HaaNT+7k6vBH6RMaZyn7UfQ0z8= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.6/go.mod h1:np3oo4gi1fYJvhXAYLk+SY6bVy2iqsxoAf8ebZNMnXU= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.7 h1:GcaxOAbutQjv0tTKHonVyt/aX3zplJ2Att/uoFXEgsY= +github.com/loft-sh/agentapi/v4 v4.2.0-alpha.7/go.mod h1:np3oo4gi1fYJvhXAYLk+SY6bVy2iqsxoAf8ebZNMnXU= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index 86a9e102..6b4a528f 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -725,18 +725,32 @@ type CostControl struct { // that provides dashboard data is deployed Enabled *bool `json:"enabled,omitempty"` - // GlobalMetrics are settings for the global metrics backend. This aggregates metrics for the Cost Control Dashboard - // across all connected clusters - GlobalMetrics *storagev1.Metrics `json:"globalMetrics,omitempty"` + // Global are settings for globally managed components + Global CostControlGlobalConfig `json:"global,omitempty"` - // ClusterMetrics are settings for each cluster's metrics backend. These settings apply all connected clusters - // unless overridden by modifying the Cluster's spec. - ClusterMetrics *storagev1.Metrics `json:"clusterMetrics,omitempty"` + // Cluster are settings for each cluster's managed components. These settings apply to all connected clusters + // unless overridden by modifying the Cluster's spec + Cluster CostControlClusterConfig `json:"cluster,omitempty"` // Settings specify price-related settings that are taken into account for the ROI dashboard calculations. Settings *CostControlSettings `json:"settings,omitempty"` } +type CostControlGlobalConfig struct { + // Metrics these settings apply to metric infrastructure used to aggregate metrics across all connected clusters + Metrics *storagev1.Metrics `json:"metrics,omitempty"` +} + +type CostControlClusterConfig struct { + // Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in + // individual clusters by modifying the Cluster's spec + Metrics *storagev1.Metrics `json:"metrics,omitempty"` + + // OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in + // individual clusters by modifying the Cluster's spec + OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` +} + type CostControlSettings struct { // PriceCurrency specifies the currency. PriceCurrency string `json:"priceCurrency,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 9118c733..e5f3f90e 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -830,6 +830,26 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*CostControlClusterConfig)(nil), (*management.CostControlClusterConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(a.(*CostControlClusterConfig), b.(*management.CostControlClusterConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlClusterConfig)(nil), (*CostControlClusterConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(a.(*management.CostControlClusterConfig), b.(*CostControlClusterConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*CostControlGlobalConfig)(nil), (*management.CostControlGlobalConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(a.(*CostControlGlobalConfig), b.(*management.CostControlGlobalConfig), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlGlobalConfig)(nil), (*CostControlGlobalConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(a.(*management.CostControlGlobalConfig), b.(*CostControlGlobalConfig), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*CostControlResourcePrice)(nil), (*management.CostControlResourcePrice)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_CostControlResourcePrice_To_management_CostControlResourcePrice(a.(*CostControlResourcePrice), b.(*management.CostControlResourcePrice), scope) }); err != nil { @@ -5087,8 +5107,12 @@ func Convert_management_ConvertVirtualClusterConfigStatus_To_v1_ConvertVirtualCl func autoConvert_v1_CostControl_To_management_CostControl(in *CostControl, out *management.CostControl, s conversion.Scope) error { out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) - out.GlobalMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.GlobalMetrics)) - out.ClusterMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.ClusterMetrics)) + if err := Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(&in.Global, &out.Global, s); err != nil { + return err + } + if err := Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(&in.Cluster, &out.Cluster, s); err != nil { + return err + } out.Settings = (*management.CostControlSettings)(unsafe.Pointer(in.Settings)) return nil } @@ -5100,8 +5124,12 @@ func Convert_v1_CostControl_To_management_CostControl(in *CostControl, out *mana func autoConvert_management_CostControl_To_v1_CostControl(in *management.CostControl, out *CostControl, s conversion.Scope) error { out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) - out.GlobalMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.GlobalMetrics)) - out.ClusterMetrics = (*storagev1.Metrics)(unsafe.Pointer(in.ClusterMetrics)) + if err := Convert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(&in.Global, &out.Global, s); err != nil { + return err + } + if err := Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(&in.Cluster, &out.Cluster, s); err != nil { + return err + } out.Settings = (*CostControlSettings)(unsafe.Pointer(in.Settings)) return nil } @@ -5111,6 +5139,48 @@ func Convert_management_CostControl_To_v1_CostControl(in *management.CostControl return autoConvert_management_CostControl_To_v1_CostControl(in, out, s) } +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_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_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_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_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in *CostControlGlobalConfig, out *management.CostControlGlobalConfig, s conversion.Scope) error { + out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) + return nil +} + +// Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig is an autogenerated conversion function. +func Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in *CostControlGlobalConfig, out *management.CostControlGlobalConfig, s conversion.Scope) error { + return autoConvert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in, out, s) +} + +func autoConvert_management_CostControlGlobalConfig_To_v1_CostControlGlobalConfig(in *management.CostControlGlobalConfig, out *CostControlGlobalConfig, s conversion.Scope) error { + out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) + return nil +} + +// Convert_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_CostControlResourcePrice_To_management_CostControlResourcePrice(in *CostControlResourcePrice, out *management.CostControlResourcePrice, s conversion.Scope) error { out.Price = in.Price out.TimePeriod = in.TimePeriod diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 2122c056..dbcf7a96 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -2223,16 +2223,8 @@ func (in *CostControl) DeepCopyInto(out *CostControl) { *out = new(bool) **out = **in } - if in.GlobalMetrics != nil { - in, out := &in.GlobalMetrics, &out.GlobalMetrics - *out = new(storagev1.Metrics) - (*in).DeepCopyInto(*out) - } - if in.ClusterMetrics != nil { - in, out := &in.ClusterMetrics, &out.ClusterMetrics - *out = new(storagev1.Metrics) - (*in).DeepCopyInto(*out) - } + in.Global.DeepCopyInto(&out.Global) + in.Cluster.DeepCopyInto(&out.Cluster) if in.Settings != nil { in, out := &in.Settings, &out.Settings *out = new(CostControlSettings) @@ -2251,6 +2243,53 @@ func (in *CostControl) DeepCopy() *CostControl { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlClusterConfig) DeepCopyInto(out *CostControlClusterConfig) { + *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 CostControlClusterConfig. +func (in *CostControlClusterConfig) DeepCopy() *CostControlClusterConfig { + if in == nil { + return nil + } + out := new(CostControlClusterConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlGlobalConfig) DeepCopyInto(out *CostControlGlobalConfig) { + *out = *in + 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 CostControlGlobalConfig. +func (in *CostControlGlobalConfig) DeepCopy() *CostControlGlobalConfig { + if in == nil { + return nil + } + out := new(CostControlGlobalConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CostControlResourcePrice) DeepCopyInto(out *CostControlResourcePrice) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index b4621659..04891512 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -1900,10 +1900,19 @@ type ConvertVirtualClusterConfigStatus struct { } type CostControl struct { - Enabled *bool `json:"enabled,omitempty"` - GlobalMetrics *storagev1.Metrics `json:"globalMetrics,omitempty"` - ClusterMetrics *storagev1.Metrics `json:"clusterMetrics,omitempty"` - Settings *CostControlSettings `json:"settings,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Global CostControlGlobalConfig `json:"global,omitempty"` + Cluster CostControlClusterConfig `json:"cluster,omitempty"` + Settings *CostControlSettings `json:"settings,omitempty"` +} + +type CostControlClusterConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` + OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` +} + +type CostControlGlobalConfig struct { + Metrics *storagev1.Metrics `json:"metrics,omitempty"` } type CostControlResourcePrice struct { @@ -2016,7 +2025,7 @@ type DevPodWorkspaceInstanceTroubleshoot struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type DevPodWorkspacePreset struct { diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 59bf659e..2df2d326 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -2198,16 +2198,8 @@ func (in *CostControl) DeepCopyInto(out *CostControl) { *out = new(bool) **out = **in } - if in.GlobalMetrics != nil { - in, out := &in.GlobalMetrics, &out.GlobalMetrics - *out = new(storagev1.Metrics) - (*in).DeepCopyInto(*out) - } - if in.ClusterMetrics != nil { - in, out := &in.ClusterMetrics, &out.ClusterMetrics - *out = new(storagev1.Metrics) - (*in).DeepCopyInto(*out) - } + in.Global.DeepCopyInto(&out.Global) + in.Cluster.DeepCopyInto(&out.Cluster) if in.Settings != nil { in, out := &in.Settings, &out.Settings *out = new(CostControlSettings) @@ -2226,6 +2218,53 @@ func (in *CostControl) DeepCopy() *CostControl { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlClusterConfig) DeepCopyInto(out *CostControlClusterConfig) { + *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 CostControlClusterConfig. +func (in *CostControlClusterConfig) DeepCopy() *CostControlClusterConfig { + if in == nil { + return nil + } + out := new(CostControlClusterConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlGlobalConfig) DeepCopyInto(out *CostControlGlobalConfig) { + *out = *in + 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 CostControlGlobalConfig. +func (in *CostControlGlobalConfig) DeepCopy() *CostControlGlobalConfig { + if in == nil { + return nil + } + out := new(CostControlGlobalConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CostControlResourcePrice) DeepCopyInto(out *CostControlResourcePrice) { *out = *in diff --git a/pkg/apis/storage/v1/cluster_types.go b/pkg/apis/storage/v1/cluster_types.go index 88341233..520207ad 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -3,6 +3,7 @@ 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" ) @@ -102,6 +103,9 @@ type ClusterSpec struct { // 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 { @@ -207,8 +211,16 @@ 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"` } @@ -222,3 +234,11 @@ type Storage struct { // 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/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index c498bf45..f6c13ca6 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -1307,6 +1307,11 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { *out = new(Metrics) (*in).DeepCopyInto(*out) } + if in.OpenCost != nil { + in, out := &in.OpenCost, &out.OpenCost + *out = new(OpenCost) + (*in).DeepCopyInto(*out) + } return } @@ -2692,6 +2697,16 @@ func (in *Member) DeepCopy() *Member { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Metrics) DeepCopyInto(out *Metrics) { *out = *in + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } in.Storage.DeepCopyInto(&out.Storage) return } @@ -2856,6 +2871,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 diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 895a497c..cfadf0f3 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -157,6 +157,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions": schema_pkg_apis_management_v1_DevPodDeleteOptions(ref), @@ -486,6 +488,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), @@ -8132,11 +8135,17 @@ func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) com Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), }, }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -8804,16 +8813,18 @@ func schema_pkg_apis_management_v1_CostControl(ref common.ReferenceCallback) com Format: "", }, }, - "globalMetrics": { + "global": { SchemaProps: spec.SchemaProps{ - Description: "GlobalMetrics are settings for the global metrics backend. This aggregates metrics for the Cost Control Dashboard across all connected clusters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + Description: "Global are settings for globally managed components", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig"), }, }, - "clusterMetrics": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "ClusterMetrics are settings for each cluster's metrics backend. These settings apply all connected clusters unless overridden by modifying the Cluster's spec.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + Description: "Cluster are settings for each cluster's managed components. These settings apply to all connected clusters unless overridden by modifying the Cluster's spec", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig"), }, }, "settings": { @@ -8826,7 +8837,53 @@ func schema_pkg_apis_management_v1_CostControl(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings"}, + } +} + +func schema_pkg_apis_management_v1_CostControlClusterConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"}, + } +} + +func schema_pkg_apis_management_v1_CostControlGlobalConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics these settings apply to metric infrastructure used to aggregate metrics across all connected clusters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"}, } } @@ -21852,11 +21909,17 @@ func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), }, }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } @@ -24345,6 +24408,26 @@ func schema_pkg_apis_storage_v1_Metrics(ref common.ReferenceCallback) common.Ope SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "replicas": { + SchemaProps: spec.SchemaProps{ + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources are compute resource required by the metrics backend", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + "retention": { + SchemaProps: spec.SchemaProps{ + Description: "Retention is the metrics data retention period. Default is 1y", + Type: []string{"string"}, + Format: "", + }, + }, "storage": { SchemaProps: spec.SchemaProps{ Description: "Storage contains settings related to the metrics backend's persistent volume configuration", @@ -24356,7 +24439,7 @@ func schema_pkg_apis_storage_v1_Metrics(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage", "k8s.io/api/core/v1.ResourceRequirements"}, } } @@ -24800,6 +24883,33 @@ func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) comm } } +func schema_pkg_apis_storage_v1_OpenCost(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "replicas": { + SchemaProps: spec.SchemaProps{ + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources are compute resource required by the OpenCost backend", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ From e266730e09c0669c198f752519796860579cd84e Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 23 Jan 2025 12:47:37 +0000 Subject: [PATCH 09/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index bd7fb354..6b773e90 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.5 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.2.0-alpha.7 + github.com/loft-sh/agentapi/v4 v4.2.2-beta.0 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 01049f9c..aea4658f 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.7 h1:GcaxOAbutQjv0tTKHonVyt/aX3zplJ2Att/uoFXEgsY= -github.com/loft-sh/agentapi/v4 v4.2.0-alpha.7/go.mod h1:np3oo4gi1fYJvhXAYLk+SY6bVy2iqsxoAf8ebZNMnXU= +github.com/loft-sh/agentapi/v4 v4.2.2-beta.0 h1:5WNUioE4XMEelkmngHqWqWTLz9vonVJd64HJEi9zA8Q= +github.com/loft-sh/agentapi/v4 v4.2.2-beta.0/go.mod h1:np3oo4gi1fYJvhXAYLk+SY6bVy2iqsxoAf8ebZNMnXU= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= From 681b66b070259c6014a543b8a847bf81ce511e96 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:43:42 +0000 Subject: [PATCH 10/30] [skip ci] repo-sync --- go.mod | 53 +++++++++++++-------------- go.sum | 111 +++++++++++++++++++++++++++++---------------------------- 2 files changed, 83 insertions(+), 81 deletions(-) diff --git a/go.mod b/go.mod index 6b773e90..44d25abd 100644 --- a/go.mod +++ b/go.mod @@ -1,20 +1,20 @@ module github.com/loft-sh/api/v4 -go 1.22.5 +go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.2.2-beta.0 + github.com/loft-sh/agentapi/v4 v4.2.2-rc.5 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 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-20241105132330-32ad38e42d3f + sigs.k8s.io/controller-runtime v0.19.4 + sigs.k8s.io/controller-tools v0.16.4 ) require ( @@ -38,7 +38,7 @@ require ( 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 @@ -54,7 +54,7 @@ require ( 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/klauspost/compress v1.17.11 // 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 @@ -72,41 +72,42 @@ require ( 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/auto/sdk v1.1.0 // 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/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect + go.opentelemetry.io/otel v1.33.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.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/metric v1.33.0 // indirect go.opentelemetry.io/otel/sdk v1.30.0 // indirect - go.opentelemetry.io/otel/trace v1.30.0 // indirect + go.opentelemetry.io/otel/trace v1.33.0 // indirect go.opentelemetry.io/proto/otlp v1.3.1 // 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 + golang.org/x/crypto v0.32.0 // indirect + golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect + golang.org/x/mod v0.22.0 // indirect + golang.org/x/net v0.34.0 // indirect + golang.org/x/oauth2 v0.25.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.29.1-0.20250107080300-1c14dcadc3ab // indirect + golang.org/x/term v0.28.0 // indirect + golang.org/x/text v0.21.0 // indirect + golang.org/x/time v0.9.0 // indirect + golang.org/x/tools v0.29.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 + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect k8s.io/apiextensions-apiserver v0.31.1 // indirect k8s.io/component-base v0.31.1 // indirect - k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect + k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // 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/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index aea4658f..49c72fcd 100644 --- a/go.sum +++ b/go.sum @@ -50,8 +50,8 @@ 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= @@ -99,8 +99,8 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.17.10 h1:oXAz+Vh0PMUvJczoi+flxpnBEPxoER1IaAnU/NMPtT0= -github.com/klauspost/compress v1.17.10/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= 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= @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.2-beta.0 h1:5WNUioE4XMEelkmngHqWqWTLz9vonVJd64HJEi9zA8Q= -github.com/loft-sh/agentapi/v4 v4.2.2-beta.0/go.mod h1:np3oo4gi1fYJvhXAYLk+SY6bVy2iqsxoAf8ebZNMnXU= +github.com/loft-sh/agentapi/v4 v4.2.2-rc.5 h1:5LM2M3a6lCvRElAldMK9FOnzcWs9mAXcgkbf7aLpRhU= +github.com/loft-sh/agentapi/v4 v4.2.2-rc.5/go.mod h1:F655LajEWXxo7RqHJrTbw1GaJ1Lk+zGVzYGAjoUeLMk= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -143,8 +143,8 @@ github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJN 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/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= @@ -163,8 +163,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7otjonDflCTK0BCfls4SPy3NcCVb5dqqmbRknE= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75/go.mod h1:KO6IkyS8Y3j8OdNO85qEYBsRPuteD+YciPomcXdrMnk= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= @@ -189,22 +189,24 @@ 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/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.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/contrib/instrumentation/net/http/otelhttp v0.58.0 h1:yd02MEjBdJkG3uabWP9apV+OuWRIXGDuJEUJbOHmCFU= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0/go.mod h1:umTcuxiv1n/s/S6/c2AT/g2CQ7u5C59sHDNmfSwgz7Q= +go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= +go.opentelemetry.io/otel v1.33.0/go.mod h1:SUUkR6csvUQl+yjReHu5uM3EtVV7MBm5FHKRlNx4I8I= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.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/metric v1.33.0 h1:r+JOocAyeRVXD8lZpjdQjzMadVZp2M4WmQ+5WtEnklQ= +go.opentelemetry.io/otel/metric v1.33.0/go.mod h1:L9+Fyctbp6HFTddIxClbQkjtubW6O9QS3Ann/M82u6M= go.opentelemetry.io/otel/sdk v1.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/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qqW2d/s= +go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= @@ -216,46 +218,46 @@ go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= +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.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= +golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= 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.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= +golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= +golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= +golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= 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.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= 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.29.1-0.20250107080300-1c14dcadc3ab h1:BMkEEWYOjkvOX7+YKOGbp6jCyQ5pR2j0Ah47p1Vdsx4= +golang.org/x/sys v0.29.1-0.20250107080300-1c14dcadc3ab/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= 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.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= +golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE= -golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg= +golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= +golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= 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= @@ -270,8 +272,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -283,7 +285,6 @@ gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= @@ -303,19 +304,19 @@ k8s.io/component-base v0.31.1 h1:UpOepcrX3rQ3ab5NB6g5iP0tvsgJWzxTyAo20sgYSy8= k8s.io/component-base v0.31.1/go.mod h1:WGeaw7t/kTsqpVTaCoVEtillbqAhF2/JgvO0LDOMa0w= 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= +k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= +k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.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/controller-runtime v0.19.4 h1:SUmheabttt0nx8uJtoII4oIP27BVVvAKFvdvGFwV/Qo= +sigs.k8s.io/controller-runtime v0.19.4/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= +sigs.k8s.io/controller-tools v0.16.4 h1:VXmar78eDXbx1by/H09ikEq1hiq3bqInxuV3lMr3GmQ= +sigs.k8s.io/controller-tools v0.16.4/go.mod h1:kcsZyYMXiOFuBhofSPtkB90zTSxVRxVVyvtKQcx3q1A= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= +sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= +sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA= +sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= From 69f0c0646cfca59c869c0b32bd3acf3c4c4a2b42 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 30 Jan 2025 18:36:41 +0000 Subject: [PATCH 11/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 44d25abd..836f4085 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.2.2-rc.5 + github.com/loft-sh/agentapi/v4 v4.2.2-rc.6 github.com/loft-sh/apiserver v0.0.0-20241008120650-f17d504a4d0d k8s.io/api v0.31.1 k8s.io/apimachinery v0.31.1 diff --git a/go.sum b/go.sum index 49c72fcd..3564e157 100644 --- a/go.sum +++ b/go.sum @@ -109,8 +109,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.2-rc.5 h1:5LM2M3a6lCvRElAldMK9FOnzcWs9mAXcgkbf7aLpRhU= -github.com/loft-sh/agentapi/v4 v4.2.2-rc.5/go.mod h1:F655LajEWXxo7RqHJrTbw1GaJ1Lk+zGVzYGAjoUeLMk= +github.com/loft-sh/agentapi/v4 v4.2.2-rc.6 h1:88XxfDcfV8nSUycWw3O3MHx5lg4VcGvq3PMV4UfcKFA= +github.com/loft-sh/agentapi/v4 v4.2.2-rc.6/go.mod h1:F655LajEWXxo7RqHJrTbw1GaJ1Lk+zGVzYGAjoUeLMk= 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/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= From 55c58ede9bc63fcf4bcc2d5c84bc432f91658a57 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 13 Feb 2025 21:38:15 +0000 Subject: [PATCH 12/30] [skip ci] repo-sync --- go.mod | 25 +- go.sum | 82 +++-- .../install/zz_generated.api.register.go | 2 +- .../v1/zz_generated.api.register.go | 120 ++++--- .../management/v1/zz_generated.defaults.go | 10 +- .../management/zz_generated.api.register.go | 4 +- pkg/apis/storage/v1/cluster_types.go | 3 + pkg/apis/storage/v1/zz_generated.defaults.go | 6 +- .../install/zz_generated.api.register.go | 2 +- pkg/clientset/versioned/clientset.go | 4 +- .../typed/management/v1/agentauditevent.go | 25 +- .../typed/management/v1/announcement.go | 25 +- .../versioned/typed/management/v1/app.go | 33 +- .../versioned/typed/management/v1/backup.go | 25 +- .../versioned/typed/management/v1/cluster.go | 65 ++-- .../typed/management/v1/clusteraccess.go | 25 +- .../management/v1/clusterroletemplate.go | 25 +- .../versioned/typed/management/v1/config.go | 25 +- .../v1/convertvirtualclusterconfig.go | 27 +- .../v1/devpodenvironmenttemplate.go | 25 +- .../management/v1/devpodworkspaceinstance.go | 45 +-- .../management/v1/devpodworkspacepreset.go | 25 +- .../management/v1/devpodworkspacetemplate.go | 25 +- .../v1/directclusterendpointtoken.go | 27 +- .../versioned/typed/management/v1/event.go | 25 +- .../v1/fake/fake_agentauditevent.go | 130 ++------ .../management/v1/fake/fake_announcement.go | 130 ++------ .../typed/management/v1/fake/fake_app.go | 130 ++------ .../typed/management/v1/fake/fake_backup.go | 128 ++----- .../typed/management/v1/fake/fake_cluster.go | 146 ++------ .../management/v1/fake/fake_clusteraccess.go | 130 ++------ .../v1/fake/fake_clusterroletemplate.go | 132 ++------ .../typed/management/v1/fake/fake_config.go | 128 ++----- .../fake/fake_convertvirtualclusterconfig.go | 132 ++------ .../v1/fake/fake_devpodenvironmenttemplate.go | 120 ++----- .../v1/fake/fake_devpodworkspaceinstance.go | 138 ++------ .../v1/fake/fake_devpodworkspacepreset.go | 132 ++------ .../v1/fake/fake_devpodworkspacetemplate.go | 132 ++------ .../fake/fake_directclusterendpointtoken.go | 132 ++------ .../typed/management/v1/fake/fake_event.go | 128 ++----- .../typed/management/v1/fake/fake_feature.go | 128 ++----- .../v1/fake/fake_ingressauthtoken.go | 130 ++------ .../typed/management/v1/fake/fake_license.go | 130 ++------ .../management/v1/fake/fake_licensetoken.go | 130 ++------ .../management/v1/fake/fake_loftupgrade.go | 128 ++----- .../v1/fake/fake_management_client.go | 80 ++--- .../management/v1/fake/fake_oidcclient.go | 128 ++----- .../management/v1/fake/fake_ownedaccesskey.go | 130 ++------ .../typed/management/v1/fake/fake_project.go | 154 ++------- .../management/v1/fake/fake_projectsecret.go | 126 ++----- .../management/v1/fake/fake_redirecttoken.go | 130 ++------ .../v1/fake/fake_registervirtualcluster.go | 132 ++------ .../management/v1/fake/fake_resetaccesskey.go | 130 ++------ .../typed/management/v1/fake/fake_runner.go | 134 ++------ .../typed/management/v1/fake/fake_self.go | 128 ++----- .../v1/fake/fake_selfsubjectaccessreview.go | 132 ++------ .../management/v1/fake/fake_sharedsecret.go | 139 ++------ .../management/v1/fake/fake_spaceinstance.go | 126 ++----- .../management/v1/fake/fake_spacetemplate.go | 130 ++------ .../v1/fake/fake_subjectaccessreview.go | 132 ++------ .../typed/management/v1/fake/fake_task.go | 128 ++----- .../typed/management/v1/fake/fake_team.go | 134 ++------ .../fake_translatevclusterresourcename.go | 132 ++------ .../typed/management/v1/fake/fake_user.go | 138 ++------ .../v1/fake/fake_virtualclusterinstance.go | 138 ++------ .../v1/fake/fake_virtualclustertemplate.go | 132 ++------ .../versioned/typed/management/v1/feature.go | 25 +- .../typed/management/v1/ingressauthtoken.go | 25 +- .../versioned/typed/management/v1/license.go | 31 +- .../typed/management/v1/licensetoken.go | 25 +- .../typed/management/v1/loftupgrade.go | 25 +- .../typed/management/v1/management_client.go | 10 +- .../typed/management/v1/oidcclient.go | 25 +- .../typed/management/v1/ownedaccesskey.go | 25 +- .../versioned/typed/management/v1/project.go | 75 ++--- .../typed/management/v1/projectsecret.go | 23 +- .../typed/management/v1/redirecttoken.go | 25 +- .../management/v1/registervirtualcluster.go | 25 +- .../typed/management/v1/resetaccesskey.go | 25 +- .../versioned/typed/management/v1/runner.go | 41 +-- .../versioned/typed/management/v1/self.go | 25 +- .../management/v1/selfsubjectaccessreview.go | 25 +- .../typed/management/v1/sharedsecret.go | 25 +- .../typed/management/v1/spaceinstance.go | 23 +- .../typed/management/v1/spacetemplate.go | 25 +- .../management/v1/subjectaccessreview.go | 25 +- .../versioned/typed/management/v1/task.go | 25 +- .../versioned/typed/management/v1/team.go | 41 +-- .../v1/translatevclusterresourcename.go | 29 +- .../versioned/typed/management/v1/user.go | 49 +-- .../management/v1/virtualclusterinstance.go | 43 +-- .../management/v1/virtualclustertemplate.go | 25 +- .../versioned/typed/storage/v1/accesskey.go | 25 +- .../versioned/typed/storage/v1/app.go | 25 +- .../versioned/typed/storage/v1/cluster.go | 25 +- .../typed/storage/v1/clusteraccess.go | 25 +- .../typed/storage/v1/clusterroletemplate.go | 25 +- .../storage/v1/devpodenvironmenttemplate.go | 23 +- .../storage/v1/devpodworkspaceinstance.go | 23 +- .../typed/storage/v1/devpodworkspacepreset.go | 23 +- .../storage/v1/devpodworkspacetemplate.go | 25 +- .../typed/storage/v1/fake/fake_accesskey.go | 128 ++----- .../typed/storage/v1/fake/fake_app.go | 128 ++----- .../typed/storage/v1/fake/fake_cluster.go | 128 ++----- .../storage/v1/fake/fake_clusteraccess.go | 130 ++------ .../v1/fake/fake_clusterroletemplate.go | 132 ++------ .../v1/fake/fake_devpodenvironmenttemplate.go | 120 ++----- .../v1/fake/fake_devpodworkspaceinstance.go | 128 ++----- .../v1/fake/fake_devpodworkspacepreset.go | 120 ++----- .../v1/fake/fake_devpodworkspacetemplate.go | 132 ++------ .../typed/storage/v1/fake/fake_networkpeer.go | 128 ++----- .../typed/storage/v1/fake/fake_project.go | 128 ++----- .../typed/storage/v1/fake/fake_runner.go | 128 ++----- .../storage/v1/fake/fake_sharedsecret.go | 139 ++------ .../storage/v1/fake/fake_spaceinstance.go | 139 ++------ .../storage/v1/fake/fake_spacetemplate.go | 130 ++------ .../storage/v1/fake/fake_storage_client.go | 40 +-- .../typed/storage/v1/fake/fake_task.go | 128 ++----- .../typed/storage/v1/fake/fake_team.go | 128 ++----- .../typed/storage/v1/fake/fake_user.go | 128 ++----- .../v1/fake/fake_virtualclusterinstance.go | 128 ++----- .../v1/fake/fake_virtualclustertemplate.go | 132 ++------ .../versioned/typed/storage/v1/networkpeer.go | 25 +- .../versioned/typed/storage/v1/project.go | 25 +- .../versioned/typed/storage/v1/runner.go | 25 +- .../typed/storage/v1/sharedsecret.go | 25 +- .../typed/storage/v1/spaceinstance.go | 25 +- .../typed/storage/v1/spacetemplate.go | 25 +- .../typed/storage/v1/storage_client.go | 10 +- .../versioned/typed/storage/v1/task.go | 25 +- .../versioned/typed/storage/v1/team.go | 25 +- .../versioned/typed/storage/v1/user.go | 25 +- .../storage/v1/virtualclusterinstance.go | 23 +- .../storage/v1/virtualclustertemplate.go | 25 +- .../v1/fake/fake_helmrelease.go | 137 ++------ .../v1/fake/fake_virtualcluster_client.go | 2 +- .../typed/virtualcluster/v1/helmrelease.go | 25 +- .../v1/virtualcluster_client.go | 10 +- pkg/informers/externalversions/generic.go | 2 +- .../management/v1/agentauditevent.go | 16 +- .../management/v1/announcement.go | 16 +- .../externalversions/management/v1/app.go | 16 +- .../externalversions/management/v1/backup.go | 16 +- .../externalversions/management/v1/cluster.go | 16 +- .../management/v1/clusteraccess.go | 16 +- .../management/v1/clusterroletemplate.go | 16 +- .../externalversions/management/v1/config.go | 16 +- .../v1/convertvirtualclusterconfig.go | 16 +- .../v1/devpodenvironmenttemplate.go | 16 +- .../management/v1/devpodworkspaceinstance.go | 16 +- .../management/v1/devpodworkspacepreset.go | 16 +- .../management/v1/devpodworkspacetemplate.go | 16 +- .../v1/directclusterendpointtoken.go | 16 +- .../externalversions/management/v1/event.go | 16 +- .../externalversions/management/v1/feature.go | 16 +- .../management/v1/ingressauthtoken.go | 16 +- .../externalversions/management/v1/license.go | 16 +- .../management/v1/licensetoken.go | 16 +- .../management/v1/loftupgrade.go | 16 +- .../management/v1/oidcclient.go | 16 +- .../management/v1/ownedaccesskey.go | 16 +- .../externalversions/management/v1/project.go | 16 +- .../management/v1/projectsecret.go | 16 +- .../management/v1/redirecttoken.go | 16 +- .../management/v1/registervirtualcluster.go | 16 +- .../management/v1/resetaccesskey.go | 16 +- .../externalversions/management/v1/runner.go | 16 +- .../externalversions/management/v1/self.go | 16 +- .../management/v1/selfsubjectaccessreview.go | 16 +- .../management/v1/sharedsecret.go | 16 +- .../management/v1/spaceinstance.go | 16 +- .../management/v1/spacetemplate.go | 16 +- .../management/v1/subjectaccessreview.go | 16 +- .../externalversions/management/v1/task.go | 16 +- .../externalversions/management/v1/team.go | 16 +- .../v1/translatevclusterresourcename.go | 16 +- .../externalversions/management/v1/user.go | 16 +- .../management/v1/virtualclusterinstance.go | 16 +- .../management/v1/virtualclustertemplate.go | 16 +- .../externalversions/storage/v1/accesskey.go | 16 +- .../externalversions/storage/v1/app.go | 16 +- .../externalversions/storage/v1/cluster.go | 16 +- .../storage/v1/clusteraccess.go | 16 +- .../storage/v1/clusterroletemplate.go | 16 +- .../storage/v1/devpodenvironmenttemplate.go | 16 +- .../storage/v1/devpodworkspaceinstance.go | 16 +- .../storage/v1/devpodworkspacepreset.go | 16 +- .../storage/v1/devpodworkspacetemplate.go | 16 +- .../storage/v1/networkpeer.go | 16 +- .../externalversions/storage/v1/project.go | 16 +- .../externalversions/storage/v1/runner.go | 16 +- .../storage/v1/sharedsecret.go | 16 +- .../storage/v1/spaceinstance.go | 16 +- .../storage/v1/spacetemplate.go | 16 +- .../externalversions/storage/v1/task.go | 16 +- .../externalversions/storage/v1/team.go | 16 +- .../externalversions/storage/v1/user.go | 16 +- .../storage/v1/virtualclusterinstance.go | 16 +- .../storage/v1/virtualclustertemplate.go | 16 +- .../virtualcluster/v1/helmrelease.go | 16 +- pkg/listers/management/v1/agentauditevent.go | 16 +- pkg/listers/management/v1/announcement.go | 16 +- pkg/listers/management/v1/app.go | 16 +- pkg/listers/management/v1/backup.go | 16 +- pkg/listers/management/v1/cluster.go | 16 +- pkg/listers/management/v1/clusteraccess.go | 16 +- .../management/v1/clusterroletemplate.go | 16 +- pkg/listers/management/v1/config.go | 16 +- .../v1/convertvirtualclusterconfig.go | 16 +- .../v1/devpodenvironmenttemplate.go | 16 +- .../management/v1/devpodworkspaceinstance.go | 22 +- .../management/v1/devpodworkspacepreset.go | 16 +- .../management/v1/devpodworkspacetemplate.go | 16 +- .../v1/directclusterendpointtoken.go | 16 +- pkg/listers/management/v1/event.go | 16 +- pkg/listers/management/v1/feature.go | 16 +- pkg/listers/management/v1/ingressauthtoken.go | 16 +- pkg/listers/management/v1/license.go | 16 +- pkg/listers/management/v1/licensetoken.go | 16 +- pkg/listers/management/v1/loftupgrade.go | 16 +- pkg/listers/management/v1/oidcclient.go | 16 +- pkg/listers/management/v1/ownedaccesskey.go | 16 +- pkg/listers/management/v1/project.go | 16 +- pkg/listers/management/v1/projectsecret.go | 22 +- pkg/listers/management/v1/redirecttoken.go | 16 +- .../management/v1/registervirtualcluster.go | 16 +- pkg/listers/management/v1/resetaccesskey.go | 16 +- pkg/listers/management/v1/runner.go | 16 +- pkg/listers/management/v1/self.go | 16 +- .../management/v1/selfsubjectaccessreview.go | 16 +- pkg/listers/management/v1/sharedsecret.go | 22 +- pkg/listers/management/v1/spaceinstance.go | 22 +- pkg/listers/management/v1/spacetemplate.go | 16 +- .../management/v1/subjectaccessreview.go | 16 +- pkg/listers/management/v1/task.go | 16 +- pkg/listers/management/v1/team.go | 16 +- .../v1/translatevclusterresourcename.go | 16 +- pkg/listers/management/v1/user.go | 16 +- .../management/v1/virtualclusterinstance.go | 22 +- .../management/v1/virtualclustertemplate.go | 16 +- pkg/listers/storage/v1/accesskey.go | 16 +- pkg/listers/storage/v1/app.go | 16 +- pkg/listers/storage/v1/cluster.go | 16 +- pkg/listers/storage/v1/clusteraccess.go | 16 +- pkg/listers/storage/v1/clusterroletemplate.go | 16 +- .../storage/v1/devpodenvironmenttemplate.go | 16 +- .../storage/v1/devpodworkspaceinstance.go | 22 +- .../storage/v1/devpodworkspacepreset.go | 16 +- .../storage/v1/devpodworkspacetemplate.go | 16 +- pkg/listers/storage/v1/networkpeer.go | 16 +- pkg/listers/storage/v1/project.go | 16 +- pkg/listers/storage/v1/runner.go | 16 +- pkg/listers/storage/v1/sharedsecret.go | 22 +- pkg/listers/storage/v1/spaceinstance.go | 22 +- pkg/listers/storage/v1/spacetemplate.go | 16 +- pkg/listers/storage/v1/task.go | 16 +- pkg/listers/storage/v1/team.go | 16 +- pkg/listers/storage/v1/user.go | 16 +- .../storage/v1/virtualclusterinstance.go | 22 +- .../storage/v1/virtualclustertemplate.go | 16 +- pkg/listers/virtualcluster/v1/helmrelease.go | 22 +- pkg/openapi/zz_generated.openapi.go | 313 ++++++++++-------- 262 files changed, 3634 insertions(+), 8808 deletions(-) diff --git a/go.mod b/go.mod index 836f4085..dacae426 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,12 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.2.2-rc.6 - 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/agentapi/v4 v4.3.0-alpha.3 + github.com/loft-sh/apiserver v0.0.0-20250129120545-2a1d356b8c09 + k8s.io/api v0.32.1 + k8s.io/apimachinery v0.32.1 + k8s.io/apiserver v0.32.1 + k8s.io/client-go v0.32.1 k8s.io/klog/v2 v2.130.1 k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f sigs.k8s.io/controller-runtime v0.19.4 @@ -18,6 +18,7 @@ require ( ) require ( + cel.dev/expr v0.18.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 @@ -40,17 +41,15 @@ require ( github.com/go-openapi/swag v0.23.0 // 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/btree v1.1.2 // indirect + github.com/google/cel-go v0.22.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/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/inconshreveable/mousetrap v1.1.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect @@ -103,10 +102,10 @@ require ( 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/apiextensions-apiserver v0.32.1 // indirect + k8s.io/component-base v0.32.1 // indirect k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect - sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 // indirect sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/go.sum b/go.sum index 3564e157..04e3816d 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +cel.dev/expr v0.18.0 h1:CJ6drgk+Hf96lkLikr4rFf19WrU0BOWEihyZnI2TAzo= +cel.dev/expr v0.18.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= @@ -57,14 +59,12 @@ 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/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/cel-go v0.22.0 h1:b3FJZxpiv1vTMo2/5RDUqAHPxkT8mmMfJIrq1llbf7g= +github.com/google/cel-go v0.22.0/go.mod h1:BuznPXXfQDpXKWQ9sPW3TzlAJN5zzFe+i9tIs0yC4s8= 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= @@ -73,8 +73,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN 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-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= +github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= 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= @@ -87,8 +87,6 @@ github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4 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/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= @@ -109,10 +107,10 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.2.2-rc.6 h1:88XxfDcfV8nSUycWw3O3MHx5lg4VcGvq3PMV4UfcKFA= -github.com/loft-sh/agentapi/v4 v4.2.2-rc.6/go.mod h1:F655LajEWXxo7RqHJrTbw1GaJ1Lk+zGVzYGAjoUeLMk= -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/agentapi/v4 v4.3.0-alpha.3 h1:iLIlKqCp5yJRSj8lRzdFY13lFxpC3E074SVG57AwiUg= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.3/go.mod h1:imhggZChC4bswQEOpw4Z8lyiQl4q/Oz2z4f/QsIOOEs= +github.com/loft-sh/apiserver v0.0.0-20250129120545-2a1d356b8c09 h1:9/3hVZH4H/GVTJGSip5NNcxCzk6m0/Kk328NX+9KhqQ= +github.com/loft-sh/apiserver v0.0.0-20250129120545-2a1d356b8c09/go.mod h1:5luOftx5fijULX70pfeyBxELMtBv7YElhY+ZByoNqJs= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -126,10 +124,10 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.20.2 h1:7NVCeyIWROIAheY21RLS+3j2bb52W0W82tkberYytp4= -github.com/onsi/ginkgo/v2 v2.20.2/go.mod h1:K9gyxPIlb+aIvnZ8bd9Ak+YP18w3APlR+5coaZoE2ag= -github.com/onsi/gomega v1.34.2 h1:pNCwDkzrsv7MS9kpaQvVb1aVLahQXyJ/Tv5oAZMI3i8= -github.com/onsi/gomega v1.34.2/go.mod h1:v1xfxRgk0KIsG+QOdm7p8UosrOzPYRo60fd3B/1Dukc= +github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= +github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= +github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= +github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -169,26 +167,26 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7 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/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= +go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= go.etcd.io/etcd/api/v3 v3.5.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/v2 v2.305.16 h1:kQrn9o5czVNaukf2A2At43cE9ZtWauOtf9vRZuiKXow= +go.etcd.io/etcd/client/v2 v2.305.16/go.mod h1:h9YxWCzcdvZENbfzBTFCnoNumr2ax3F19sKMqHFmXHE= 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.etcd.io/etcd/pkg/v3 v3.5.16 h1:cnavs5WSPWeK4TYwPYfmcr3Joz9BH+TZ6qoUtz6/+mc= +go.etcd.io/etcd/pkg/v3 v3.5.16/go.mod h1:+lutCZHG5MBBFI/U4eYT5yL7sJfnexsoM20Y0t2uNuY= +go.etcd.io/etcd/raft/v3 v3.5.16 h1:zBXA3ZUpYs1AwiLGPafYAKKl/CORn/uaxYDwlNwndAk= +go.etcd.io/etcd/raft/v3 v3.5.16/go.mod h1:P4UP14AxofMJ/54boWilabqqWoW9eLodl6I5GdGzazI= +go.etcd.io/etcd/server/v3 v3.5.16 h1:d0/SAdJ3vVsZvF8IFVb1k8zqMZ+heGcNfft71ul9GWE= +go.etcd.io/etcd/server/v3 v3.5.16/go.mod h1:ynhyZZpdDp1Gq49jkUg5mfkDWZwXnn3eIqCqtJnrD/s= go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 h1:hCq2hNMwsegUvPzI7sPOvtO9cqyy5GbWt/Ybp2xrx8Q= @@ -290,26 +288,26 @@ 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.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc= +k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k= +k8s.io/apiextensions-apiserver v0.32.1 h1:hjkALhRUeCariC8DiVmb5jj0VjIc1N0DREP32+6UXZw= +k8s.io/apiextensions-apiserver v0.32.1/go.mod h1:sxWIGuGiYov7Io1fAS2X06NjMIk5CbRHc2StSmbaQto= +k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs= +k8s.io/apimachinery v0.32.1/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= +k8s.io/apiserver v0.32.1 h1:oo0OozRos66WFq87Zc5tclUX2r0mymoVHRq8JmR7Aak= +k8s.io/apiserver v0.32.1/go.mod h1:UcB9tWjBY7aryeI5zAgzVJB/6k7E97bkr1RgqDz0jPw= +k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU= +k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg= +k8s.io/component-base v0.32.1 h1:/5IfJ0dHIKBWysGV0yKTFfacZ5yNV1sulPh3ilJjRZk= +k8s.io/component-base v0.32.1/go.mod h1:j1iMMHi/sqAHeG5z+O9BFNCF698a1u0186zkjMZQ28w= 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-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 h1:2770sDpzrjjsAtVhSeUFseziht227YAWYHLGNM8QPwY= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= sigs.k8s.io/controller-runtime v0.19.4 h1:SUmheabttt0nx8uJtoII4oIP27BVVvAKFvdvGFwV/Qo= sigs.k8s.io/controller-runtime v0.19.4/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= sigs.k8s.io/controller-tools v0.16.4 h1:VXmar78eDXbx1by/H09ikEq1hiq3bqInxuV3lMr3GmQ= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index 0c6d75ed..73392728 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" diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 41670215..b3bd53ce 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -148,13 +148,15 @@ 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, @@ -165,42 +167,50 @@ var ( 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), + management.NewClusterResetREST, + ), builders.NewApiResourceWithStorage( management.InternalClusterVirtualClusterDefaultsREST, func() runtime.Object { return &ClusterVirtualClusterDefaults{} }, // Register versioned resource nil, - management.NewClusterVirtualClusterDefaultsREST), + management.NewClusterVirtualClusterDefaultsREST, + ), management.ManagementClusterAccessStorage, management.ManagementClusterRoleTemplateStorage, management.ManagementConfigStorage, @@ -211,37 +221,44 @@ var ( management.InternalDevPodDeleteOptionsREST, func() runtime.Object { return &DevPodDeleteOptions{} }, // Register versioned resource nil, - management.NewDevPodDeleteOptionsREST), + management.NewDevPodDeleteOptionsREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodStatusOptionsREST, func() runtime.Object { return &DevPodStatusOptions{} }, // Register versioned resource nil, - management.NewDevPodStatusOptionsREST), + management.NewDevPodStatusOptionsREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodSshOptionsREST, func() runtime.Object { return &DevPodSshOptions{} }, // Register versioned resource nil, - management.NewDevPodSshOptionsREST), + management.NewDevPodSshOptionsREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodWorkspaceInstanceStateREST, func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceStateREST), + management.NewDevPodWorkspaceInstanceStateREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodStopOptionsREST, func() runtime.Object { return &DevPodStopOptions{} }, // Register versioned resource nil, - management.NewDevPodStopOptionsREST), + management.NewDevPodStopOptionsREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodWorkspaceInstanceTroubleshootREST, func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceTroubleshootREST), + management.NewDevPodWorkspaceInstanceTroubleshootREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodUpOptionsREST, func() runtime.Object { return &DevPodUpOptions{} }, // Register versioned resource nil, - management.NewDevPodUpOptionsREST), + management.NewDevPodUpOptionsREST, + ), management.ManagementDevPodWorkspacePresetStorage, management.ManagementDevPodWorkspaceTemplateStorage, management.ManagementDirectClusterEndpointTokenStorage, @@ -259,7 +276,8 @@ var ( management.InternalLicenseRequestREST, func() runtime.Object { return &LicenseRequest{} }, // Register versioned resource nil, - management.NewLicenseRequestREST), + management.NewLicenseRequestREST, + ), management.ManagementLicenseTokenStorage, management.ManagementLoftUpgradeStorage, management.ManagementOIDCClientStorage, @@ -274,47 +292,56 @@ 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 nil, - management.NewProjectRunnersREST), + management.NewProjectRunnersREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectTemplatesREST, func() runtime.Object { return &ProjectTemplates{} }, // Register versioned resource nil, - management.NewProjectTemplatesREST), + management.NewProjectTemplatesREST, + ), management.ManagementProjectSecretStorage, management.ManagementRedirectTokenStorage, management.ManagementRegisterVirtualClusterStorage, @@ -329,12 +356,14 @@ var ( management.InternalRunnerAccessKeyREST, func() runtime.Object { return &RunnerAccessKey{} }, // Register versioned resource nil, - management.NewRunnerAccessKeyREST), + management.NewRunnerAccessKeyREST, + ), builders.NewApiResourceWithStorage( management.InternalRunnerConfigREST, func() runtime.Object { return &RunnerConfig{} }, // Register versioned resource nil, - management.NewRunnerConfigREST), + management.NewRunnerConfigREST, + ), management.ManagementSelfStorage, management.ManagementSelfSubjectAccessReviewStorage, management.ManagementSharedSecretStorage, @@ -346,61 +375,72 @@ 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, + ), management.ManagementTranslateVClusterResourceNameStorage, management.ManagementUserStorage, builders.NewApiResourceWithStorage( management.InternalUserAccessKeysREST, func() runtime.Object { return &UserAccessKeys{} }, // Register versioned resource nil, - management.NewUserAccessKeysREST), + management.NewUserAccessKeysREST, + ), builders.NewApiResourceWithStorage( management.InternalUserClustersREST, func() runtime.Object { return &UserClusters{} }, // Register versioned resource nil, - management.NewUserClustersREST), + management.NewUserClustersREST, + ), builders.NewApiResourceWithStorage( management.InternalUserPermissionsREST, func() runtime.Object { return &UserPermissions{} }, // Register versioned resource nil, - management.NewUserPermissionsREST), + management.NewUserPermissionsREST, + ), builders.NewApiResourceWithStorage( management.InternalUserProfileREST, func() runtime.Object { return &UserProfile{} }, // Register versioned resource nil, - management.NewUserProfileREST), + management.NewUserProfileREST, + ), management.ManagementVirtualClusterInstanceStorage, builders.NewApiResourceWithStorage( management.InternalVirtualClusterAccessKeyREST, func() runtime.Object { return &VirtualClusterAccessKey{} }, // Register versioned resource nil, - management.NewVirtualClusterAccessKeyREST), + management.NewVirtualClusterAccessKeyREST, + ), builders.NewApiResourceWithStorage( management.InternalVirtualClusterExternalDatabaseREST, func() runtime.Object { return &VirtualClusterExternalDatabase{} }, // Register versioned resource nil, - management.NewVirtualClusterExternalDatabaseREST), + management.NewVirtualClusterExternalDatabaseREST, + ), builders.NewApiResourceWithStorage( management.InternalVirtualClusterInstanceKubeConfigREST, func() runtime.Object { return &VirtualClusterInstanceKubeConfig{} }, // Register versioned resource nil, - management.NewVirtualClusterInstanceKubeConfigREST), + management.NewVirtualClusterInstanceKubeConfigREST, + ), builders.NewApiResourceWithStorage( management.InternalVirtualClusterInstanceLogREST, func() runtime.Object { return &VirtualClusterInstanceLog{} }, // Register versioned resource nil, - management.NewVirtualClusterInstanceLogREST), + management.NewVirtualClusterInstanceLogREST, + ), management.ManagementVirtualClusterTemplateStorage, ) diff --git a/pkg/apis/management/v1/zz_generated.defaults.go b/pkg/apis/management/v1/zz_generated.defaults.go index dcd0a968..f56b6b60 100644 --- a/pkg/apis/management/v1/zz_generated.defaults.go +++ b/pkg/apis/management/v1/zz_generated.defaults.go @@ -6,7 +6,7 @@ package v1 import ( - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -52,7 +52,7 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn } if b.VolumeSource.AzureDisk != nil { if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 } if b.VolumeSource.AzureDisk.FSType == nil { @@ -64,7 +64,7 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 } if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) b.VolumeSource.AzureDisk.Kind = &ptrVar1 } } @@ -237,7 +237,7 @@ func SetObjectDefaults_Runner(in *Runner) { } if a.VolumeSource.AzureDisk != nil { if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 } if a.VolumeSource.AzureDisk.FSType == nil { @@ -249,7 +249,7 @@ func SetObjectDefaults_Runner(in *Runner) { a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 } if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) a.VolumeSource.AzureDisk.Kind = &ptrVar1 } } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 04891512..25ae096e 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -2025,7 +2025,7 @@ type DevPodWorkspaceInstanceTroubleshoot struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type DevPodWorkspacePreset struct { @@ -2169,7 +2169,7 @@ type KioskStatus struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { diff --git a/pkg/apis/storage/v1/cluster_types.go b/pkg/apis/storage/v1/cluster_types.go index 520207ad..4cf1d2a2 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -8,6 +8,8 @@ import ( ) 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" @@ -16,6 +18,7 @@ const ( 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" diff --git a/pkg/apis/storage/v1/zz_generated.defaults.go b/pkg/apis/storage/v1/zz_generated.defaults.go index e7944230..659f5d1c 100644 --- a/pkg/apis/storage/v1/zz_generated.defaults.go +++ b/pkg/apis/storage/v1/zz_generated.defaults.go @@ -6,7 +6,7 @@ package v1 import ( - v1 "k8s.io/api/core/v1" + corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -42,7 +42,7 @@ func SetObjectDefaults_Runner(in *Runner) { } if a.VolumeSource.AzureDisk != nil { if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 } if a.VolumeSource.AzureDisk.FSType == nil { @@ -54,7 +54,7 @@ func SetObjectDefaults_Runner(in *Runner) { a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 } if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) a.VolumeSource.AzureDisk.Kind = &ptrVar1 } } 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/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/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..7494f204 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,47 @@ 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) + ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (*managementv1.ClusterVirtualClusterDefaults, 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 +72,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,9 +85,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{} +// ListVirtualClusterDefaults takes name of the cluster, and returns the corresponding managementv1.ClusterVirtualClusterDefaults object, and an error if there is any. +func (c *clusters) ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (result *managementv1.ClusterVirtualClusterDefaults, err error) { + result = &managementv1.ClusterVirtualClusterDefaults{} err = c.GetClient().Get(). Resource("clusters"). Name(clusterName). @@ -97,9 +98,9 @@ func (c *clusters) ListVirtualClusterDefaults(ctx context.Context, clusterName s 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 +111,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/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go index 881e4fb6..b9bef5e9 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,34 @@ type DevPodEnvironmentTemplatesGetter interface { // DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*v1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*v1.DevPodEnvironmentTemplate, error) + Create(ctx context.Context, devPodEnvironmentTemplate *managementv1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*managementv1.DevPodEnvironmentTemplate, error) + Update(ctx context.Context, devPodEnvironmentTemplate *managementv1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodEnvironmentTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodEnvironmentTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodEnvironmentTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodEnvironmentTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodEnvironmentTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodEnvironmentTemplate, err error) DevPodEnvironmentTemplateExpansion } // devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] + *gentype.ClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList] } // newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates func newDevPodEnvironmentTemplates(c *ManagementV1Client) *devPodEnvironmentTemplates { return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( + gentype.NewClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList]( "devpodenvironmenttemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }), + func() *managementv1.DevPodEnvironmentTemplate { return &managementv1.DevPodEnvironmentTemplate{} }, + func() *managementv1.DevPodEnvironmentTemplateList { + return &managementv1.DevPodEnvironmentTemplateList{} + }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go index 23f8a7ed..ec7becb8 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,42 +21,43 @@ type DevPodWorkspaceInstancesGetter interface { // DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceInstance, error) + Create(ctx context.Context, devPodWorkspaceInstance *managementv1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstance, error) + Update(ctx context.Context, devPodWorkspaceInstance *managementv1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceInstance, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceInstanceList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceInstance, err error) - GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*v1.DevPodWorkspaceInstanceState, error) - SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *v1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstanceState, error) - Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*v1.DevPodWorkspaceInstanceTroubleshoot, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceInstance, err error) + GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevPodWorkspaceInstanceState, error) + SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *managementv1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceState, error) + Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevPodWorkspaceInstanceTroubleshoot, error) DevPodWorkspaceInstanceExpansion } // devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] + *gentype.ClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList] } // newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances func newDevPodWorkspaceInstances(c *ManagementV1Client, namespace string) *devPodWorkspaceInstances { return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( + gentype.NewClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList]( "devpodworkspaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }), + func() *managementv1.DevPodWorkspaceInstance { return &managementv1.DevPodWorkspaceInstance{} }, + func() *managementv1.DevPodWorkspaceInstanceList { return &managementv1.DevPodWorkspaceInstanceList{} }, + ), } } -// GetState takes name of the devPodWorkspaceInstance, and returns the corresponding v1.DevPodWorkspaceInstanceState object, and an error if there is any. -func (c *devPodWorkspaceInstances) GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceState, err error) { - result = &v1.DevPodWorkspaceInstanceState{} +// GetState takes name of the devPodWorkspaceInstance, and returns the corresponding managementv1.DevPodWorkspaceInstanceState object, and an error if there is any. +func (c *devPodWorkspaceInstances) GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *managementv1.DevPodWorkspaceInstanceState, err error) { + result = &managementv1.DevPodWorkspaceInstanceState{} err = c.GetClient().Get(). Namespace(c.GetNamespace()). Resource("devpodworkspaceinstances"). @@ -69,8 +70,8 @@ func (c *devPodWorkspaceInstances) GetState(ctx context.Context, devPodWorkspace } // 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{} +func (c *devPodWorkspaceInstances) SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *managementv1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceState, err error) { + result = &managementv1.DevPodWorkspaceInstanceState{} err = c.GetClient().Post(). Namespace(c.GetNamespace()). Resource("devpodworkspaceinstances"). @@ -83,9 +84,9 @@ func (c *devPodWorkspaceInstances) SetState(ctx context.Context, devPodWorkspace return } -// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding v1.DevPodWorkspaceInstanceTroubleshoot object, and an error if there is any. -func (c *devPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { - result = &v1.DevPodWorkspaceInstanceTroubleshoot{} +// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding managementv1.DevPodWorkspaceInstanceTroubleshoot object, and an error if there is any. +func (c *devPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *managementv1.DevPodWorkspaceInstanceTroubleshoot, err error) { + result = &managementv1.DevPodWorkspaceInstanceTroubleshoot{} err = c.GetClient().Get(). Namespace(c.GetNamespace()). Resource("devpodworkspaceinstances"). diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go index 9877f627..2b979314 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.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 DevPodWorkspacePresetsGetter interface { // DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. type DevPodWorkspacePresetInterface interface { - Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*v1.DevPodWorkspacePreset, error) - Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*v1.DevPodWorkspacePreset, error) + Create(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*managementv1.DevPodWorkspacePreset, error) + Update(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspacePreset, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*v1.DevPodWorkspacePreset, error) + UpdateStatus(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspacePreset, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspacePreset, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspacePresetList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspacePreset, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspacePresetList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspacePreset, err error) DevPodWorkspacePresetExpansion } // devPodWorkspacePresets implements DevPodWorkspacePresetInterface type devPodWorkspacePresets struct { - *gentype.ClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] + *gentype.ClientWithList[*managementv1.DevPodWorkspacePreset, *managementv1.DevPodWorkspacePresetList] } // newDevPodWorkspacePresets returns a DevPodWorkspacePresets func newDevPodWorkspacePresets(c *ManagementV1Client) *devPodWorkspacePresets { return &devPodWorkspacePresets{ - gentype.NewClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( + gentype.NewClientWithList[*managementv1.DevPodWorkspacePreset, *managementv1.DevPodWorkspacePresetList]( "devpodworkspacepresets", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, - func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }), + func() *managementv1.DevPodWorkspacePreset { return &managementv1.DevPodWorkspacePreset{} }, + func() *managementv1.DevPodWorkspacePresetList { return &managementv1.DevPodWorkspacePresetList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go index 4f299022..cbb87123 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type DevPodWorkspaceTemplatesGetter interface { // DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*v1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + Create(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceTemplate, error) + Update(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceTemplate, err error) DevPodWorkspaceTemplateExpansion } // devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] + *gentype.ClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList] } // newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates func newDevPodWorkspaceTemplates(c *ManagementV1Client) *devPodWorkspaceTemplates { return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( + gentype.NewClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList]( "devpodworkspacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }), + func() *managementv1.DevPodWorkspaceTemplate { return &managementv1.DevPodWorkspaceTemplate{} }, + func() *managementv1.DevPodWorkspaceTemplateList { return &managementv1.DevPodWorkspaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go b/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go index fbe2de99..5f427db4 100644 --- a/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/directclusterendpointtoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,36 @@ type DirectClusterEndpointTokensGetter interface { // DirectClusterEndpointTokenInterface has methods to work with DirectClusterEndpointToken resources. type DirectClusterEndpointTokenInterface interface { - Create(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.CreateOptions) (*v1.DirectClusterEndpointToken, error) - Update(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*v1.DirectClusterEndpointToken, error) + Create(ctx context.Context, directClusterEndpointToken *managementv1.DirectClusterEndpointToken, opts metav1.CreateOptions) (*managementv1.DirectClusterEndpointToken, error) + Update(ctx context.Context, directClusterEndpointToken *managementv1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*managementv1.DirectClusterEndpointToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*v1.DirectClusterEndpointToken, error) + UpdateStatus(ctx context.Context, directClusterEndpointToken *managementv1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (*managementv1.DirectClusterEndpointToken, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DirectClusterEndpointToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DirectClusterEndpointTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DirectClusterEndpointToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DirectClusterEndpointTokenList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DirectClusterEndpointToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DirectClusterEndpointToken, err error) DirectClusterEndpointTokenExpansion } // directClusterEndpointTokens implements DirectClusterEndpointTokenInterface type directClusterEndpointTokens struct { - *gentype.ClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList] + *gentype.ClientWithList[*managementv1.DirectClusterEndpointToken, *managementv1.DirectClusterEndpointTokenList] } // newDirectClusterEndpointTokens returns a DirectClusterEndpointTokens func newDirectClusterEndpointTokens(c *ManagementV1Client) *directClusterEndpointTokens { return &directClusterEndpointTokens{ - gentype.NewClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList]( + gentype.NewClientWithList[*managementv1.DirectClusterEndpointToken, *managementv1.DirectClusterEndpointTokenList]( "directclusterendpointtokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DirectClusterEndpointToken { return &v1.DirectClusterEndpointToken{} }, - func() *v1.DirectClusterEndpointTokenList { return &v1.DirectClusterEndpointTokenList{} }), + func() *managementv1.DirectClusterEndpointToken { return &managementv1.DirectClusterEndpointToken{} }, + func() *managementv1.DirectClusterEndpointTokenList { + return &managementv1.DirectClusterEndpointTokenList{} + }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/event.go b/pkg/clientset/versioned/typed/management/v1/event.go index 0ae798af..e762df21 100644 --- a/pkg/clientset/versioned/typed/management/v1/event.go +++ b/pkg/clientset/versioned/typed/management/v1/event.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type EventsGetter interface { // EventInterface has methods to work with Event resources. type EventInterface interface { - Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (*v1.Event, error) - Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (*v1.Event, error) + Create(ctx context.Context, event *managementv1.Event, opts metav1.CreateOptions) (*managementv1.Event, error) + Update(ctx context.Context, event *managementv1.Event, opts metav1.UpdateOptions) (*managementv1.Event, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (*v1.Event, error) + UpdateStatus(ctx context.Context, event *managementv1.Event, opts metav1.UpdateOptions) (*managementv1.Event, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Event, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.EventList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Event, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.EventList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Event, err error) EventExpansion } // events implements EventInterface type events struct { - *gentype.ClientWithList[*v1.Event, *v1.EventList] + *gentype.ClientWithList[*managementv1.Event, *managementv1.EventList] } // newEvents returns a Events func newEvents(c *ManagementV1Client) *events { return &events{ - gentype.NewClientWithList[*v1.Event, *v1.EventList]( + gentype.NewClientWithList[*managementv1.Event, *managementv1.EventList]( "events", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Event { return &v1.Event{} }, - func() *v1.EventList { return &v1.EventList{} }), + func() *managementv1.Event { return &managementv1.Event{} }, + func() *managementv1.EventList { return &managementv1.EventList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go index 01c6961c..99e6030f 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_agentauditevent.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeAgentAuditEvents implements AgentAuditEventInterface -type FakeAgentAuditEvents struct { +// fakeAgentAuditEvents implements AgentAuditEventInterface +type fakeAgentAuditEvents struct { + *gentype.FakeClientWithList[*v1.AgentAuditEvent, *v1.AgentAuditEventList] Fake *FakeManagementV1 } -var agentauditeventsResource = v1.SchemeGroupVersion.WithResource("agentauditevents") - -var agentauditeventsKind = v1.SchemeGroupVersion.WithKind("AgentAuditEvent") - -// Get takes name of the agentAuditEvent, and returns the corresponding agentAuditEvent object, and an error if there is any. -func (c *FakeAgentAuditEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(agentauditeventsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// List takes label and field selectors, and returns the list of AgentAuditEvents that match those selectors. -func (c *FakeAgentAuditEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AgentAuditEventList, err error) { - emptyResult := &v1.AgentAuditEventList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(agentauditeventsResource, agentauditeventsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AgentAuditEventList{ListMeta: obj.(*v1.AgentAuditEventList).ListMeta} - for _, item := range obj.(*v1.AgentAuditEventList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested agentAuditEvents. -func (c *FakeAgentAuditEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(agentauditeventsResource, opts)) -} - -// Create takes the representation of a agentAuditEvent and creates it. Returns the server's representation of the agentAuditEvent, and an error, if there is any. -func (c *FakeAgentAuditEvents) Create(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.CreateOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(agentauditeventsResource, agentAuditEvent, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// Update takes the representation of a agentAuditEvent and updates it. Returns the server's representation of the agentAuditEvent, and an error, if there is any. -func (c *FakeAgentAuditEvents) Update(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.UpdateOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(agentauditeventsResource, agentAuditEvent, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeAgentAuditEvents) UpdateStatus(ctx context.Context, agentAuditEvent *v1.AgentAuditEvent, opts metav1.UpdateOptions) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(agentauditeventsResource, "status", agentAuditEvent, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AgentAuditEvent), err -} - -// Delete takes name of the agentAuditEvent and deletes it. Returns an error if one occurs. -func (c *FakeAgentAuditEvents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(agentauditeventsResource, name, opts), &v1.AgentAuditEvent{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeAgentAuditEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(agentauditeventsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AgentAuditEventList{}) - return err -} - -// Patch applies the patch and returns the patched agentAuditEvent. -func (c *FakeAgentAuditEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AgentAuditEvent, err error) { - emptyResult := &v1.AgentAuditEvent{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(agentauditeventsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeAgentAuditEvents(fake *FakeManagementV1) managementv1.AgentAuditEventInterface { + return &fakeAgentAuditEvents{ + gentype.NewFakeClientWithList[*v1.AgentAuditEvent, *v1.AgentAuditEventList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("agentauditevents"), + v1.SchemeGroupVersion.WithKind("AgentAuditEvent"), + func() *v1.AgentAuditEvent { return &v1.AgentAuditEvent{} }, + func() *v1.AgentAuditEventList { return &v1.AgentAuditEventList{} }, + func(dst, src *v1.AgentAuditEventList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AgentAuditEventList) []*v1.AgentAuditEvent { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AgentAuditEventList, items []*v1.AgentAuditEvent) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.AgentAuditEvent), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go index d11150fb..917dcbdb 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_announcement.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeAnnouncements implements AnnouncementInterface -type FakeAnnouncements struct { +// fakeAnnouncements implements AnnouncementInterface +type fakeAnnouncements struct { + *gentype.FakeClientWithList[*v1.Announcement, *v1.AnnouncementList] Fake *FakeManagementV1 } -var announcementsResource = v1.SchemeGroupVersion.WithResource("announcements") - -var announcementsKind = v1.SchemeGroupVersion.WithKind("Announcement") - -// Get takes name of the announcement, and returns the corresponding announcement object, and an error if there is any. -func (c *FakeAnnouncements) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(announcementsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// List takes label and field selectors, and returns the list of Announcements that match those selectors. -func (c *FakeAnnouncements) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AnnouncementList, err error) { - emptyResult := &v1.AnnouncementList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(announcementsResource, announcementsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AnnouncementList{ListMeta: obj.(*v1.AnnouncementList).ListMeta} - for _, item := range obj.(*v1.AnnouncementList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested announcements. -func (c *FakeAnnouncements) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(announcementsResource, opts)) -} - -// Create takes the representation of a announcement and creates it. Returns the server's representation of the announcement, and an error, if there is any. -func (c *FakeAnnouncements) Create(ctx context.Context, announcement *v1.Announcement, opts metav1.CreateOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(announcementsResource, announcement, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// Update takes the representation of a announcement and updates it. Returns the server's representation of the announcement, and an error, if there is any. -func (c *FakeAnnouncements) Update(ctx context.Context, announcement *v1.Announcement, opts metav1.UpdateOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(announcementsResource, announcement, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeAnnouncements) UpdateStatus(ctx context.Context, announcement *v1.Announcement, opts metav1.UpdateOptions) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(announcementsResource, "status", announcement, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Announcement), err -} - -// Delete takes name of the announcement and deletes it. Returns an error if one occurs. -func (c *FakeAnnouncements) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(announcementsResource, name, opts), &v1.Announcement{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeAnnouncements) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(announcementsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AnnouncementList{}) - return err -} - -// Patch applies the patch and returns the patched announcement. -func (c *FakeAnnouncements) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Announcement, err error) { - emptyResult := &v1.Announcement{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(announcementsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeAnnouncements(fake *FakeManagementV1) managementv1.AnnouncementInterface { + return &fakeAnnouncements{ + gentype.NewFakeClientWithList[*v1.Announcement, *v1.AnnouncementList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("announcements"), + v1.SchemeGroupVersion.WithKind("Announcement"), + func() *v1.Announcement { return &v1.Announcement{} }, + func() *v1.AnnouncementList { return &v1.AnnouncementList{} }, + func(dst, src *v1.AnnouncementList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AnnouncementList) []*v1.Announcement { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AnnouncementList, items []*v1.Announcement) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.Announcement), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go index 0a71d4a8..d92ed208 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_app.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeApps implements AppInterface -type FakeApps struct { +// fakeApps implements AppInterface +type fakeApps struct { + *gentype.FakeClientWithList[*v1.App, *v1.AppList] Fake *FakeManagementV1 } -var appsResource = v1.SchemeGroupVersion.WithResource("apps") - -var appsKind = v1.SchemeGroupVersion.WithKind("App") - -// Get takes name of the app, and returns the corresponding app object, and an error if there is any. -func (c *FakeApps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(appsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// List takes label and field selectors, and returns the list of Apps that match those selectors. -func (c *FakeApps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AppList, err error) { - emptyResult := &v1.AppList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(appsResource, appsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AppList{ListMeta: obj.(*v1.AppList).ListMeta} - for _, item := range obj.(*v1.AppList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested apps. -func (c *FakeApps) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(appsResource, opts)) -} - -// Create takes the representation of a app and creates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Update takes the representation of a app and updates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeApps) UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(appsResource, "status", app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Delete takes name of the app and deletes it. Returns an error if one occurs. -func (c *FakeApps) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(appsResource, name, opts), &v1.App{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeApps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(appsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AppList{}) - return err -} - -// Patch applies the patch and returns the patched app. -func (c *FakeApps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(appsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeApps(fake *FakeManagementV1) managementv1.AppInterface { + return &fakeApps{ + gentype.NewFakeClientWithList[*v1.App, *v1.AppList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("apps"), + v1.SchemeGroupVersion.WithKind("App"), + func() *v1.App { return &v1.App{} }, + func() *v1.AppList { return &v1.AppList{} }, + func(dst, src *v1.AppList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AppList) []*v1.App { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AppList, items []*v1.App) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.App), err } // GetCredentials takes name of the app, and returns the corresponding appCredentials object, and an error if there is any. -func (c *FakeApps) GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (result *v1.AppCredentials, err error) { +func (c *fakeApps) GetCredentials(ctx context.Context, appName string, options metav1.GetOptions) (result *v1.AppCredentials, err error) { emptyResult := &v1.AppCredentials{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(appsResource, "credentials", appName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "credentials", appName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go index ae69f605..f42845ca 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_backup.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeBackups implements BackupInterface -type FakeBackups struct { +// fakeBackups implements BackupInterface +type fakeBackups struct { + *gentype.FakeClientWithList[*v1.Backup, *v1.BackupList] Fake *FakeManagementV1 } -var backupsResource = v1.SchemeGroupVersion.WithResource("backups") - -var backupsKind = v1.SchemeGroupVersion.WithKind("Backup") - -// Get takes name of the backup, and returns the corresponding backup object, and an error if there is any. -func (c *FakeBackups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(backupsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// List takes label and field selectors, and returns the list of Backups that match those selectors. -func (c *FakeBackups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.BackupList, err error) { - emptyResult := &v1.BackupList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(backupsResource, backupsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.BackupList{ListMeta: obj.(*v1.BackupList).ListMeta} - for _, item := range obj.(*v1.BackupList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested backups. -func (c *FakeBackups) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(backupsResource, opts)) -} - -// Create takes the representation of a backup and creates it. Returns the server's representation of the backup, and an error, if there is any. -func (c *FakeBackups) Create(ctx context.Context, backup *v1.Backup, opts metav1.CreateOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(backupsResource, backup, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// Update takes the representation of a backup and updates it. Returns the server's representation of the backup, and an error, if there is any. -func (c *FakeBackups) Update(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(backupsResource, backup, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeBackups) UpdateStatus(ctx context.Context, backup *v1.Backup, opts metav1.UpdateOptions) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(backupsResource, "status", backup, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Backup), err -} - -// Delete takes name of the backup and deletes it. Returns an error if one occurs. -func (c *FakeBackups) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(backupsResource, name, opts), &v1.Backup{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeBackups) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(backupsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.BackupList{}) - return err -} - -// Patch applies the patch and returns the patched backup. -func (c *FakeBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Backup, err error) { - emptyResult := &v1.Backup{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(backupsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeBackups(fake *FakeManagementV1) managementv1.BackupInterface { + return &fakeBackups{ + gentype.NewFakeClientWithList[*v1.Backup, *v1.BackupList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("backups"), + v1.SchemeGroupVersion.WithKind("Backup"), + func() *v1.Backup { return &v1.Backup{} }, + func() *v1.BackupList { return &v1.BackupList{} }, + func(dst, src *v1.BackupList) { dst.ListMeta = src.ListMeta }, + func(list *v1.BackupList) []*v1.Backup { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.BackupList, items []*v1.Backup) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Backup), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go index a4784059..3a9df03e 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() - } - 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 *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, } - 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,10 +47,10 @@ 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 } @@ -144,10 +58,10 @@ func (c *FakeClusters) ListMembers(ctx context.Context, clusterName string, opti } // 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) { +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) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "virtualclusterdefaults", clusterName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -155,10 +69,10 @@ func (c *FakeClusters) ListVirtualClusterDefaults(ctx context.Context, clusterNa } // 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 +80,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_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go index 6514ba85..e8f9020b 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go @@ -3,108 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type FakeDevPodEnvironmentTemplates struct { +// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface +type fakeDevPodEnvironmentTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] Fake *FakeManagementV1 } -var devpodenvironmenttemplatesResource = v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates") - -var devpodenvironmenttemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate") - -// Get takes name of the devPodEnvironmentTemplate, and returns the corresponding devPodEnvironmentTemplate object, and an error if there is any. -func (c *FakeDevPodEnvironmentTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodenvironmenttemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodEnvironmentTemplates that match those selectors. -func (c *FakeDevPodEnvironmentTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodEnvironmentTemplateList, err error) { - emptyResult := &v1.DevPodEnvironmentTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodenvironmenttemplatesResource, devpodenvironmenttemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodEnvironmentTemplateList{ListMeta: obj.(*v1.DevPodEnvironmentTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodEnvironmentTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodEnvironmentTemplates. -func (c *FakeDevPodEnvironmentTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodenvironmenttemplatesResource, opts)) -} - -// Create takes the representation of a devPodEnvironmentTemplate and creates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Update takes the representation of a devPodEnvironmentTemplate and updates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Delete takes name of the devPodEnvironmentTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodEnvironmentTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodenvironmenttemplatesResource, name, opts), &v1.DevPodEnvironmentTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodEnvironmentTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodenvironmenttemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodEnvironmentTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodEnvironmentTemplate. -func (c *FakeDevPodEnvironmentTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodenvironmenttemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDevPodEnvironmentTemplates(fake *FakeManagementV1) managementv1.DevPodEnvironmentTemplateInterface { + return &fakeDevPodEnvironmentTemplates{ + gentype.NewFakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"), + v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate"), + func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, + func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }, + func(dst, src *v1.DevPodEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodEnvironmentTemplateList) []*v1.DevPodEnvironmentTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodEnvironmentTemplateList, items []*v1.DevPodEnvironmentTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodEnvironmentTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go index 78b9596f..841877e8 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go @@ -3,125 +3,47 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type FakeDevPodWorkspaceInstances struct { +// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface +type fakeDevPodWorkspaceInstances struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] Fake *FakeManagementV1 - ns string } -var devpodworkspaceinstancesResource = v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances") - -var devpodworkspaceinstancesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance") - -// Get takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstance object, and an error if there is any. -func (c *FakeDevPodWorkspaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceInstances that match those selectors. -func (c *FakeDevPodWorkspaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceInstanceList, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(devpodworkspaceinstancesResource, devpodworkspaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceInstanceList{ListMeta: obj.(*v1.DevPodWorkspaceInstanceList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceInstances. -func (c *FakeDevPodWorkspaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a devPodWorkspaceInstance and creates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Update takes the representation of a devPodWorkspaceInstance and updates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Delete takes name of the devPodWorkspaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, opts), &v1.DevPodWorkspaceInstance{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceInstance. -func (c *FakeDevPodWorkspaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeDevPodWorkspaceInstances(fake *FakeManagementV1, namespace string) managementv1.DevPodWorkspaceInstanceInterface { + return &fakeDevPodWorkspaceInstances{ + gentype.NewFakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"), + v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance"), + func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, + func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }, + func(dst, src *v1.DevPodWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodWorkspaceInstanceList) []*v1.DevPodWorkspaceInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodWorkspaceInstanceList, items []*v1.DevPodWorkspaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return 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) { +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) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "state", devPodWorkspaceInstanceName, options), emptyResult) if obj == nil { return emptyResult, err @@ -130,10 +52,10 @@ func (c *FakeDevPodWorkspaceInstances) GetState(ctx context.Context, devPodWorks } // 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) { +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) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "state", c.Namespace(), devPodWorkspaceInstanceState, opts), emptyResult) if obj == nil { return emptyResult, err @@ -142,10 +64,10 @@ func (c *FakeDevPodWorkspaceInstances) SetState(ctx context.Context, devPodWorks } // Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstanceTroubleshoot object, and an error if there is any. -func (c *FakeDevPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { +func (c *fakeDevPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { emptyResult := &v1.DevPodWorkspaceInstanceTroubleshoot{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, "troubleshoot", devPodWorkspaceInstanceName, options), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "troubleshoot", devPodWorkspaceInstanceName, options), emptyResult) if obj == nil { return emptyResult, err diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go index 6929b126..88cfe9b3 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.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" ) -// FakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface -type FakeDevPodWorkspacePresets struct { +// fakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface +type fakeDevPodWorkspacePresets struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] Fake *FakeManagementV1 } -var devpodworkspacepresetsResource = v1.SchemeGroupVersion.WithResource("devpodworkspacepresets") - -var devpodworkspacepresetsKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset") - -// Get takes name of the devPodWorkspacePreset, and returns the corresponding devPodWorkspacePreset object, and an error if there is any. -func (c *FakeDevPodWorkspacePresets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodworkspacepresetsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspacePresets that match those selectors. -func (c *FakeDevPodWorkspacePresets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspacePresetList, err error) { - emptyResult := &v1.DevPodWorkspacePresetList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodworkspacepresetsResource, devpodworkspacepresetsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspacePresetList{ListMeta: obj.(*v1.DevPodWorkspacePresetList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspacePresetList).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 devPodWorkspacePresets. -func (c *FakeDevPodWorkspacePresets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacepresetsResource, opts)) -} - -// Create takes the representation of a devPodWorkspacePreset and creates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. -func (c *FakeDevPodWorkspacePresets) Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), err -} - -// Update takes the representation of a devPodWorkspacePreset and updates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. -func (c *FakeDevPodWorkspacePresets) Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), 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 *FakeDevPodWorkspacePresets) UpdateStatus(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(devpodworkspacepresetsResource, "status", devPodWorkspacePreset, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), err -} - -// Delete takes name of the devPodWorkspacePreset and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspacePresets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacepresetsResource, name, opts), &v1.DevPodWorkspacePreset{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspacePresets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacepresetsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspacePresetList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspacePreset. -func (c *FakeDevPodWorkspacePresets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacepresetsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDevPodWorkspacePresets(fake *FakeManagementV1) managementv1.DevPodWorkspacePresetInterface { + return &fakeDevPodWorkspacePresets{ + gentype.NewFakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"), + v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset"), + func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, + func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }, + func(dst, src *v1.DevPodWorkspacePresetList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodWorkspacePresetList) []*v1.DevPodWorkspacePreset { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodWorkspacePresetList, items []*v1.DevPodWorkspacePreset) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodWorkspacePreset), 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 index cb98add1..50ab12ce 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type FakeDevPodWorkspaceTemplates struct { +// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface +type fakeDevPodWorkspaceTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] Fake *FakeManagementV1 } -var devpodworkspacetemplatesResource = v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates") - -var devpodworkspacetemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate") - -// Get takes name of the devPodWorkspaceTemplate, and returns the corresponding devPodWorkspaceTemplate object, and an error if there is any. -func (c *FakeDevPodWorkspaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodworkspacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceTemplates that match those selectors. -func (c *FakeDevPodWorkspaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceTemplateList, err error) { - emptyResult := &v1.DevPodWorkspaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodworkspacetemplatesResource, devpodworkspacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceTemplateList{ListMeta: obj.(*v1.DevPodWorkspaceTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceTemplates. -func (c *FakeDevPodWorkspaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacetemplatesResource, opts)) -} - -// Create takes the representation of a devPodWorkspaceTemplate and creates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Update takes the representation of a devPodWorkspaceTemplate and updates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDevPodWorkspaceTemplates) UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(devpodworkspacetemplatesResource, "status", devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Delete takes name of the devPodWorkspaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacetemplatesResource, name, opts), &v1.DevPodWorkspaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceTemplate. -func (c *FakeDevPodWorkspaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDevPodWorkspaceTemplates(fake *FakeManagementV1) managementv1.DevPodWorkspaceTemplateInterface { + return &fakeDevPodWorkspaceTemplates{ + gentype.NewFakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"), + v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate"), + func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, + func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }, + func(dst, src *v1.DevPodWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodWorkspaceTemplateList) []*v1.DevPodWorkspaceTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodWorkspaceTemplateList, items []*v1.DevPodWorkspaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodWorkspaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go index 1d24adc7..a074778b 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_directclusterendpointtoken.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDirectClusterEndpointTokens implements DirectClusterEndpointTokenInterface -type FakeDirectClusterEndpointTokens struct { +// fakeDirectClusterEndpointTokens implements DirectClusterEndpointTokenInterface +type fakeDirectClusterEndpointTokens struct { + *gentype.FakeClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList] Fake *FakeManagementV1 } -var directclusterendpointtokensResource = v1.SchemeGroupVersion.WithResource("directclusterendpointtokens") - -var directclusterendpointtokensKind = v1.SchemeGroupVersion.WithKind("DirectClusterEndpointToken") - -// Get takes name of the directClusterEndpointToken, and returns the corresponding directClusterEndpointToken object, and an error if there is any. -func (c *FakeDirectClusterEndpointTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(directclusterendpointtokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// List takes label and field selectors, and returns the list of DirectClusterEndpointTokens that match those selectors. -func (c *FakeDirectClusterEndpointTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DirectClusterEndpointTokenList, err error) { - emptyResult := &v1.DirectClusterEndpointTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(directclusterendpointtokensResource, directclusterendpointtokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DirectClusterEndpointTokenList{ListMeta: obj.(*v1.DirectClusterEndpointTokenList).ListMeta} - for _, item := range obj.(*v1.DirectClusterEndpointTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested directClusterEndpointTokens. -func (c *FakeDirectClusterEndpointTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(directclusterendpointtokensResource, opts)) -} - -// Create takes the representation of a directClusterEndpointToken and creates it. Returns the server's representation of the directClusterEndpointToken, and an error, if there is any. -func (c *FakeDirectClusterEndpointTokens) Create(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.CreateOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(directclusterendpointtokensResource, directClusterEndpointToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// Update takes the representation of a directClusterEndpointToken and updates it. Returns the server's representation of the directClusterEndpointToken, and an error, if there is any. -func (c *FakeDirectClusterEndpointTokens) Update(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(directclusterendpointtokensResource, directClusterEndpointToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDirectClusterEndpointTokens) UpdateStatus(ctx context.Context, directClusterEndpointToken *v1.DirectClusterEndpointToken, opts metav1.UpdateOptions) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(directclusterendpointtokensResource, "status", directClusterEndpointToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DirectClusterEndpointToken), err -} - -// Delete takes name of the directClusterEndpointToken and deletes it. Returns an error if one occurs. -func (c *FakeDirectClusterEndpointTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(directclusterendpointtokensResource, name, opts), &v1.DirectClusterEndpointToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDirectClusterEndpointTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(directclusterendpointtokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DirectClusterEndpointTokenList{}) - return err -} - -// Patch applies the patch and returns the patched directClusterEndpointToken. -func (c *FakeDirectClusterEndpointTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DirectClusterEndpointToken, err error) { - emptyResult := &v1.DirectClusterEndpointToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(directclusterendpointtokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDirectClusterEndpointTokens(fake *FakeManagementV1) managementv1.DirectClusterEndpointTokenInterface { + return &fakeDirectClusterEndpointTokens{ + gentype.NewFakeClientWithList[*v1.DirectClusterEndpointToken, *v1.DirectClusterEndpointTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("directclusterendpointtokens"), + v1.SchemeGroupVersion.WithKind("DirectClusterEndpointToken"), + func() *v1.DirectClusterEndpointToken { return &v1.DirectClusterEndpointToken{} }, + func() *v1.DirectClusterEndpointTokenList { return &v1.DirectClusterEndpointTokenList{} }, + func(dst, src *v1.DirectClusterEndpointTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DirectClusterEndpointTokenList) []*v1.DirectClusterEndpointToken { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DirectClusterEndpointTokenList, items []*v1.DirectClusterEndpointToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DirectClusterEndpointToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go index 7527620f..fe7d182a 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_event.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeEvents implements EventInterface -type FakeEvents struct { +// fakeEvents implements EventInterface +type fakeEvents struct { + *gentype.FakeClientWithList[*v1.Event, *v1.EventList] Fake *FakeManagementV1 } -var eventsResource = v1.SchemeGroupVersion.WithResource("events") - -var eventsKind = v1.SchemeGroupVersion.WithKind("Event") - -// Get takes name of the event, and returns the corresponding event object, and an error if there is any. -func (c *FakeEvents) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(eventsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// List takes label and field selectors, and returns the list of Events that match those selectors. -func (c *FakeEvents) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { - emptyResult := &v1.EventList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(eventsResource, eventsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.EventList{ListMeta: obj.(*v1.EventList).ListMeta} - for _, item := range obj.(*v1.EventList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested events. -func (c *FakeEvents) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(eventsResource, opts)) -} - -// Create takes the representation of a event and creates it. Returns the server's representation of the event, and an error, if there is any. -func (c *FakeEvents) Create(ctx context.Context, event *v1.Event, opts metav1.CreateOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(eventsResource, event, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any. -func (c *FakeEvents) Update(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(eventsResource, event, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeEvents) UpdateStatus(ctx context.Context, event *v1.Event, opts metav1.UpdateOptions) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(eventsResource, "status", event, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Event), err -} - -// Delete takes name of the event and deletes it. Returns an error if one occurs. -func (c *FakeEvents) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(eventsResource, name, opts), &v1.Event{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeEvents) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(eventsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.EventList{}) - return err -} - -// Patch applies the patch and returns the patched event. -func (c *FakeEvents) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Event, err error) { - emptyResult := &v1.Event{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(eventsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeEvents(fake *FakeManagementV1) managementv1.EventInterface { + return &fakeEvents{ + gentype.NewFakeClientWithList[*v1.Event, *v1.EventList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("events"), + v1.SchemeGroupVersion.WithKind("Event"), + func() *v1.Event { return &v1.Event{} }, + func() *v1.EventList { return &v1.EventList{} }, + func(dst, src *v1.EventList) { dst.ListMeta = src.ListMeta }, + func(list *v1.EventList) []*v1.Event { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.EventList, items []*v1.Event) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Event), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go index 4073d36e..875b0c35 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_feature.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeFeatures implements FeatureInterface -type FakeFeatures struct { +// fakeFeatures implements FeatureInterface +type fakeFeatures struct { + *gentype.FakeClientWithList[*v1.Feature, *v1.FeatureList] Fake *FakeManagementV1 } -var featuresResource = v1.SchemeGroupVersion.WithResource("features") - -var featuresKind = v1.SchemeGroupVersion.WithKind("Feature") - -// Get takes name of the feature, and returns the corresponding feature object, and an error if there is any. -func (c *FakeFeatures) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(featuresResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// List takes label and field selectors, and returns the list of Features that match those selectors. -func (c *FakeFeatures) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FeatureList, err error) { - emptyResult := &v1.FeatureList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(featuresResource, featuresKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.FeatureList{ListMeta: obj.(*v1.FeatureList).ListMeta} - for _, item := range obj.(*v1.FeatureList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested features. -func (c *FakeFeatures) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(featuresResource, opts)) -} - -// Create takes the representation of a feature and creates it. Returns the server's representation of the feature, and an error, if there is any. -func (c *FakeFeatures) Create(ctx context.Context, feature *v1.Feature, opts metav1.CreateOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(featuresResource, feature, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// Update takes the representation of a feature and updates it. Returns the server's representation of the feature, and an error, if there is any. -func (c *FakeFeatures) Update(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(featuresResource, feature, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeFeatures) UpdateStatus(ctx context.Context, feature *v1.Feature, opts metav1.UpdateOptions) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(featuresResource, "status", feature, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Feature), err -} - -// Delete takes name of the feature and deletes it. Returns an error if one occurs. -func (c *FakeFeatures) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(featuresResource, name, opts), &v1.Feature{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeFeatures) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(featuresResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.FeatureList{}) - return err -} - -// Patch applies the patch and returns the patched feature. -func (c *FakeFeatures) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Feature, err error) { - emptyResult := &v1.Feature{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(featuresResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeFeatures(fake *FakeManagementV1) managementv1.FeatureInterface { + return &fakeFeatures{ + gentype.NewFakeClientWithList[*v1.Feature, *v1.FeatureList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("features"), + v1.SchemeGroupVersion.WithKind("Feature"), + func() *v1.Feature { return &v1.Feature{} }, + func() *v1.FeatureList { return &v1.FeatureList{} }, + func(dst, src *v1.FeatureList) { dst.ListMeta = src.ListMeta }, + func(list *v1.FeatureList) []*v1.Feature { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.FeatureList, items []*v1.Feature) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Feature), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go index 2b3f70e3..27b54fb5 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_ingressauthtoken.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeIngressAuthTokens implements IngressAuthTokenInterface -type FakeIngressAuthTokens struct { +// fakeIngressAuthTokens implements IngressAuthTokenInterface +type fakeIngressAuthTokens struct { + *gentype.FakeClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList] Fake *FakeManagementV1 } -var ingressauthtokensResource = v1.SchemeGroupVersion.WithResource("ingressauthtokens") - -var ingressauthtokensKind = v1.SchemeGroupVersion.WithKind("IngressAuthToken") - -// Get takes name of the ingressAuthToken, and returns the corresponding ingressAuthToken object, and an error if there is any. -func (c *FakeIngressAuthTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(ingressauthtokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// List takes label and field selectors, and returns the list of IngressAuthTokens that match those selectors. -func (c *FakeIngressAuthTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressAuthTokenList, err error) { - emptyResult := &v1.IngressAuthTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(ingressauthtokensResource, ingressauthtokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.IngressAuthTokenList{ListMeta: obj.(*v1.IngressAuthTokenList).ListMeta} - for _, item := range obj.(*v1.IngressAuthTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested ingressAuthTokens. -func (c *FakeIngressAuthTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(ingressauthtokensResource, opts)) -} - -// Create takes the representation of a ingressAuthToken and creates it. Returns the server's representation of the ingressAuthToken, and an error, if there is any. -func (c *FakeIngressAuthTokens) Create(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.CreateOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(ingressauthtokensResource, ingressAuthToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// Update takes the representation of a ingressAuthToken and updates it. Returns the server's representation of the ingressAuthToken, and an error, if there is any. -func (c *FakeIngressAuthTokens) Update(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(ingressauthtokensResource, ingressAuthToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeIngressAuthTokens) UpdateStatus(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(ingressauthtokensResource, "status", ingressAuthToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.IngressAuthToken), err -} - -// Delete takes name of the ingressAuthToken and deletes it. Returns an error if one occurs. -func (c *FakeIngressAuthTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(ingressauthtokensResource, name, opts), &v1.IngressAuthToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeIngressAuthTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(ingressauthtokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.IngressAuthTokenList{}) - return err -} - -// Patch applies the patch and returns the patched ingressAuthToken. -func (c *FakeIngressAuthTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressAuthToken, err error) { - emptyResult := &v1.IngressAuthToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(ingressauthtokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeIngressAuthTokens(fake *FakeManagementV1) managementv1.IngressAuthTokenInterface { + return &fakeIngressAuthTokens{ + gentype.NewFakeClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("ingressauthtokens"), + v1.SchemeGroupVersion.WithKind("IngressAuthToken"), + func() *v1.IngressAuthToken { return &v1.IngressAuthToken{} }, + func() *v1.IngressAuthTokenList { return &v1.IngressAuthTokenList{} }, + func(dst, src *v1.IngressAuthTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.IngressAuthTokenList) []*v1.IngressAuthToken { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.IngressAuthTokenList, items []*v1.IngressAuthToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.IngressAuthToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go index 8444f1cd..43f7767d 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_license.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeLicenses implements LicenseInterface -type FakeLicenses struct { +// fakeLicenses implements LicenseInterface +type fakeLicenses struct { + *gentype.FakeClientWithList[*v1.License, *v1.LicenseList] Fake *FakeManagementV1 } -var licensesResource = v1.SchemeGroupVersion.WithResource("licenses") - -var licensesKind = v1.SchemeGroupVersion.WithKind("License") - -// Get takes name of the license, and returns the corresponding license object, and an error if there is any. -func (c *FakeLicenses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(licensesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// List takes label and field selectors, and returns the list of Licenses that match those selectors. -func (c *FakeLicenses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LicenseList, err error) { - emptyResult := &v1.LicenseList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(licensesResource, licensesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.LicenseList{ListMeta: obj.(*v1.LicenseList).ListMeta} - for _, item := range obj.(*v1.LicenseList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested licenses. -func (c *FakeLicenses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(licensesResource, opts)) -} - -// Create takes the representation of a license and creates it. Returns the server's representation of the license, and an error, if there is any. -func (c *FakeLicenses) Create(ctx context.Context, license *v1.License, opts metav1.CreateOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(licensesResource, license, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// Update takes the representation of a license and updates it. Returns the server's representation of the license, and an error, if there is any. -func (c *FakeLicenses) Update(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(licensesResource, license, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeLicenses) UpdateStatus(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(licensesResource, "status", license, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.License), err -} - -// Delete takes name of the license and deletes it. Returns an error if one occurs. -func (c *FakeLicenses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(licensesResource, name, opts), &v1.License{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeLicenses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(licensesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.LicenseList{}) - return err -} - -// Patch applies the patch and returns the patched license. -func (c *FakeLicenses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.License, err error) { - emptyResult := &v1.License{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(licensesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeLicenses(fake *FakeManagementV1) managementv1.LicenseInterface { + return &fakeLicenses{ + gentype.NewFakeClientWithList[*v1.License, *v1.LicenseList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("licenses"), + v1.SchemeGroupVersion.WithKind("License"), + func() *v1.License { return &v1.License{} }, + func() *v1.LicenseList { return &v1.LicenseList{} }, + func(dst, src *v1.LicenseList) { dst.ListMeta = src.ListMeta }, + func(list *v1.LicenseList) []*v1.License { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.LicenseList, items []*v1.License) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.License), err } // LicenseRequest takes the representation of a licenseRequest and creates it. Returns the server's representation of the licenseRequest, and an error, if there is any. -func (c *FakeLicenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (result *v1.LicenseRequest, err error) { +func (c *fakeLicenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (result *v1.LicenseRequest, err error) { emptyResult := &v1.LicenseRequest{} obj, err := c.Fake. - Invokes(testing.NewRootCreateSubresourceActionWithOptions(licensesResource, licenseName, "request", licenseRequest, opts), emptyResult) + Invokes(testing.NewRootCreateSubresourceActionWithOptions(c.Resource(), licenseName, "request", licenseRequest, opts), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go index cfb13843..a1b6b772 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeLicenseTokens implements LicenseTokenInterface -type FakeLicenseTokens struct { +// fakeLicenseTokens implements LicenseTokenInterface +type fakeLicenseTokens struct { + *gentype.FakeClientWithList[*v1.LicenseToken, *v1.LicenseTokenList] Fake *FakeManagementV1 } -var licensetokensResource = v1.SchemeGroupVersion.WithResource("licensetokens") - -var licensetokensKind = v1.SchemeGroupVersion.WithKind("LicenseToken") - -// Get takes name of the licenseToken, and returns the corresponding licenseToken object, and an error if there is any. -func (c *FakeLicenseTokens) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(licensetokensResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// List takes label and field selectors, and returns the list of LicenseTokens that match those selectors. -func (c *FakeLicenseTokens) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LicenseTokenList, err error) { - emptyResult := &v1.LicenseTokenList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(licensetokensResource, licensetokensKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.LicenseTokenList{ListMeta: obj.(*v1.LicenseTokenList).ListMeta} - for _, item := range obj.(*v1.LicenseTokenList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested licenseTokens. -func (c *FakeLicenseTokens) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(licensetokensResource, opts)) -} - -// Create takes the representation of a licenseToken and creates it. Returns the server's representation of the licenseToken, and an error, if there is any. -func (c *FakeLicenseTokens) Create(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.CreateOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(licensetokensResource, licenseToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// Update takes the representation of a licenseToken and updates it. Returns the server's representation of the licenseToken, and an error, if there is any. -func (c *FakeLicenseTokens) Update(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(licensetokensResource, licenseToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeLicenseTokens) UpdateStatus(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(licensetokensResource, "status", licenseToken, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LicenseToken), err -} - -// Delete takes name of the licenseToken and deletes it. Returns an error if one occurs. -func (c *FakeLicenseTokens) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(licensetokensResource, name, opts), &v1.LicenseToken{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeLicenseTokens) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(licensetokensResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.LicenseTokenList{}) - return err -} - -// Patch applies the patch and returns the patched licenseToken. -func (c *FakeLicenseTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LicenseToken, err error) { - emptyResult := &v1.LicenseToken{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(licensetokensResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeLicenseTokens(fake *FakeManagementV1) managementv1.LicenseTokenInterface { + return &fakeLicenseTokens{ + gentype.NewFakeClientWithList[*v1.LicenseToken, *v1.LicenseTokenList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("licensetokens"), + v1.SchemeGroupVersion.WithKind("LicenseToken"), + func() *v1.LicenseToken { return &v1.LicenseToken{} }, + func() *v1.LicenseTokenList { return &v1.LicenseTokenList{} }, + func(dst, src *v1.LicenseTokenList) { dst.ListMeta = src.ListMeta }, + func(list *v1.LicenseTokenList) []*v1.LicenseToken { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.LicenseTokenList, items []*v1.LicenseToken) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.LicenseToken), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go index d24e2c15..1c70a1ca 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_loftupgrade.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeLoftUpgrades implements LoftUpgradeInterface -type FakeLoftUpgrades struct { +// fakeLoftUpgrades implements LoftUpgradeInterface +type fakeLoftUpgrades struct { + *gentype.FakeClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList] Fake *FakeManagementV1 } -var loftupgradesResource = v1.SchemeGroupVersion.WithResource("loftupgrades") - -var loftupgradesKind = v1.SchemeGroupVersion.WithKind("LoftUpgrade") - -// Get takes name of the loftUpgrade, and returns the corresponding loftUpgrade object, and an error if there is any. -func (c *FakeLoftUpgrades) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(loftupgradesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// List takes label and field selectors, and returns the list of LoftUpgrades that match those selectors. -func (c *FakeLoftUpgrades) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LoftUpgradeList, err error) { - emptyResult := &v1.LoftUpgradeList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(loftupgradesResource, loftupgradesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.LoftUpgradeList{ListMeta: obj.(*v1.LoftUpgradeList).ListMeta} - for _, item := range obj.(*v1.LoftUpgradeList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested loftUpgrades. -func (c *FakeLoftUpgrades) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(loftupgradesResource, opts)) -} - -// Create takes the representation of a loftUpgrade and creates it. Returns the server's representation of the loftUpgrade, and an error, if there is any. -func (c *FakeLoftUpgrades) Create(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.CreateOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(loftupgradesResource, loftUpgrade, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// Update takes the representation of a loftUpgrade and updates it. Returns the server's representation of the loftUpgrade, and an error, if there is any. -func (c *FakeLoftUpgrades) Update(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(loftupgradesResource, loftUpgrade, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeLoftUpgrades) UpdateStatus(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(loftupgradesResource, "status", loftUpgrade, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.LoftUpgrade), err -} - -// Delete takes name of the loftUpgrade and deletes it. Returns an error if one occurs. -func (c *FakeLoftUpgrades) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(loftupgradesResource, name, opts), &v1.LoftUpgrade{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeLoftUpgrades) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(loftupgradesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.LoftUpgradeList{}) - return err -} - -// Patch applies the patch and returns the patched loftUpgrade. -func (c *FakeLoftUpgrades) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LoftUpgrade, err error) { - emptyResult := &v1.LoftUpgrade{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(loftupgradesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeLoftUpgrades(fake *FakeManagementV1) managementv1.LoftUpgradeInterface { + return &fakeLoftUpgrades{ + gentype.NewFakeClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("loftupgrades"), + v1.SchemeGroupVersion.WithKind("LoftUpgrade"), + func() *v1.LoftUpgrade { return &v1.LoftUpgrade{} }, + func() *v1.LoftUpgradeList { return &v1.LoftUpgradeList{} }, + func(dst, src *v1.LoftUpgradeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.LoftUpgradeList) []*v1.LoftUpgrade { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.LoftUpgradeList, items []*v1.LoftUpgrade) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.LoftUpgrade), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go index 942f0d6a..a184a248 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,163 +13,163 @@ 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} + return newFakeDevPodEnvironmentTemplates(c) } func (c *FakeManagementV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return &FakeDevPodWorkspaceInstances{c, namespace} + return newFakeDevPodWorkspaceInstances(c, namespace) } func (c *FakeManagementV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { - return &FakeDevPodWorkspacePresets{c} + return newFakeDevPodWorkspacePresets(c) } func (c *FakeManagementV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return &FakeDevPodWorkspaceTemplates{c} + return newFakeDevPodWorkspaceTemplates(c) } func (c *FakeManagementV1) DirectClusterEndpointTokens() v1.DirectClusterEndpointTokenInterface { - return &FakeDirectClusterEndpointTokens{c} + return newFakeDirectClusterEndpointTokens(c) } func (c *FakeManagementV1) Events() v1.EventInterface { - return &FakeEvents{c} + return newFakeEvents(c) } func (c *FakeManagementV1) Features() v1.FeatureInterface { - return &FakeFeatures{c} + return newFakeFeatures(c) } func (c *FakeManagementV1) IngressAuthTokens() v1.IngressAuthTokenInterface { - return &FakeIngressAuthTokens{c} + return newFakeIngressAuthTokens(c) } func (c *FakeManagementV1) Licenses() v1.LicenseInterface { - return &FakeLicenses{c} + return newFakeLicenses(c) } func (c *FakeManagementV1) LicenseTokens() v1.LicenseTokenInterface { - return &FakeLicenseTokens{c} + return newFakeLicenseTokens(c) } func (c *FakeManagementV1) LoftUpgrades() v1.LoftUpgradeInterface { - return &FakeLoftUpgrades{c} + return newFakeLoftUpgrades(c) } func (c *FakeManagementV1) OIDCClients() v1.OIDCClientInterface { - return &FakeOIDCClients{c} + return newFakeOIDCClients(c) } func (c *FakeManagementV1) OwnedAccessKeys() v1.OwnedAccessKeyInterface { - return &FakeOwnedAccessKeys{c} + return newFakeOwnedAccessKeys(c) } func (c *FakeManagementV1) Projects() v1.ProjectInterface { - return &FakeProjects{c} + return newFakeProjects(c) } func (c *FakeManagementV1) ProjectSecrets(namespace string) v1.ProjectSecretInterface { - return &FakeProjectSecrets{c, namespace} + return newFakeProjectSecrets(c, namespace) } func (c *FakeManagementV1) RedirectTokens() v1.RedirectTokenInterface { - return &FakeRedirectTokens{c} + return newFakeRedirectTokens(c) } func (c *FakeManagementV1) RegisterVirtualClusters() v1.RegisterVirtualClusterInterface { - return &FakeRegisterVirtualClusters{c} + return newFakeRegisterVirtualClusters(c) } func (c *FakeManagementV1) ResetAccessKeys() v1.ResetAccessKeyInterface { - return &FakeResetAccessKeys{c} + return newFakeResetAccessKeys(c) } func (c *FakeManagementV1) Runners() v1.RunnerInterface { - return &FakeRunners{c} + return newFakeRunners(c) } func (c *FakeManagementV1) Selves() v1.SelfInterface { - return &FakeSelves{c} + return newFakeSelves(c) } func (c *FakeManagementV1) SelfSubjectAccessReviews() v1.SelfSubjectAccessReviewInterface { - return &FakeSelfSubjectAccessReviews{c} + return newFakeSelfSubjectAccessReviews(c) } func (c *FakeManagementV1) SharedSecrets(namespace string) v1.SharedSecretInterface { - return &FakeSharedSecrets{c, namespace} + return newFakeSharedSecrets(c, namespace) } func (c *FakeManagementV1) SpaceInstances(namespace string) v1.SpaceInstanceInterface { - return &FakeSpaceInstances{c, namespace} + return newFakeSpaceInstances(c, namespace) } func (c *FakeManagementV1) SpaceTemplates() v1.SpaceTemplateInterface { - return &FakeSpaceTemplates{c} + return newFakeSpaceTemplates(c) } func (c *FakeManagementV1) SubjectAccessReviews() v1.SubjectAccessReviewInterface { - return &FakeSubjectAccessReviews{c} + return newFakeSubjectAccessReviews(c) } func (c *FakeManagementV1) Tasks() v1.TaskInterface { - return &FakeTasks{c} + return newFakeTasks(c) } func (c *FakeManagementV1) Teams() v1.TeamInterface { - return &FakeTeams{c} + return newFakeTeams(c) } func (c *FakeManagementV1) TranslateVClusterResourceNames() v1.TranslateVClusterResourceNameInterface { - return &FakeTranslateVClusterResourceNames{c} + return newFakeTranslateVClusterResourceNames(c) } func (c *FakeManagementV1) Users() v1.UserInterface { - return &FakeUsers{c} + return newFakeUsers(c) } func (c *FakeManagementV1) VirtualClusterInstances(namespace string) v1.VirtualClusterInstanceInterface { - return &FakeVirtualClusterInstances{c, namespace} + return newFakeVirtualClusterInstances(c, namespace) } func (c *FakeManagementV1) 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_oidcclient.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go index c06f12b5..0fc9e926 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_oidcclient.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeOIDCClients implements OIDCClientInterface -type FakeOIDCClients struct { +// fakeOIDCClients implements OIDCClientInterface +type fakeOIDCClients struct { + *gentype.FakeClientWithList[*v1.OIDCClient, *v1.OIDCClientList] Fake *FakeManagementV1 } -var oidcclientsResource = v1.SchemeGroupVersion.WithResource("oidcclients") - -var oidcclientsKind = v1.SchemeGroupVersion.WithKind("OIDCClient") - -// Get takes name of the oIDCClient, and returns the corresponding oIDCClient object, and an error if there is any. -func (c *FakeOIDCClients) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(oidcclientsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// List takes label and field selectors, and returns the list of OIDCClients that match those selectors. -func (c *FakeOIDCClients) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OIDCClientList, err error) { - emptyResult := &v1.OIDCClientList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(oidcclientsResource, oidcclientsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.OIDCClientList{ListMeta: obj.(*v1.OIDCClientList).ListMeta} - for _, item := range obj.(*v1.OIDCClientList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested oIDCClients. -func (c *FakeOIDCClients) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(oidcclientsResource, opts)) -} - -// Create takes the representation of a oIDCClient and creates it. Returns the server's representation of the oIDCClient, and an error, if there is any. -func (c *FakeOIDCClients) Create(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.CreateOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(oidcclientsResource, oIDCClient, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// Update takes the representation of a oIDCClient and updates it. Returns the server's representation of the oIDCClient, and an error, if there is any. -func (c *FakeOIDCClients) Update(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(oidcclientsResource, oIDCClient, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeOIDCClients) UpdateStatus(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(oidcclientsResource, "status", oIDCClient, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OIDCClient), err -} - -// Delete takes name of the oIDCClient and deletes it. Returns an error if one occurs. -func (c *FakeOIDCClients) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(oidcclientsResource, name, opts), &v1.OIDCClient{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeOIDCClients) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(oidcclientsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.OIDCClientList{}) - return err -} - -// Patch applies the patch and returns the patched oIDCClient. -func (c *FakeOIDCClients) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OIDCClient, err error) { - emptyResult := &v1.OIDCClient{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(oidcclientsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeOIDCClients(fake *FakeManagementV1) managementv1.OIDCClientInterface { + return &fakeOIDCClients{ + gentype.NewFakeClientWithList[*v1.OIDCClient, *v1.OIDCClientList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("oidcclients"), + v1.SchemeGroupVersion.WithKind("OIDCClient"), + func() *v1.OIDCClient { return &v1.OIDCClient{} }, + func() *v1.OIDCClientList { return &v1.OIDCClientList{} }, + func(dst, src *v1.OIDCClientList) { dst.ListMeta = src.ListMeta }, + func(list *v1.OIDCClientList) []*v1.OIDCClient { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.OIDCClientList, items []*v1.OIDCClient) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.OIDCClient), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go index 629e3dde..8dcd3c7e 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_ownedaccesskey.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeOwnedAccessKeys implements OwnedAccessKeyInterface -type FakeOwnedAccessKeys struct { +// fakeOwnedAccessKeys implements OwnedAccessKeyInterface +type fakeOwnedAccessKeys struct { + *gentype.FakeClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList] Fake *FakeManagementV1 } -var ownedaccesskeysResource = v1.SchemeGroupVersion.WithResource("ownedaccesskeys") - -var ownedaccesskeysKind = v1.SchemeGroupVersion.WithKind("OwnedAccessKey") - -// Get takes name of the ownedAccessKey, and returns the corresponding ownedAccessKey object, and an error if there is any. -func (c *FakeOwnedAccessKeys) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(ownedaccesskeysResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// List takes label and field selectors, and returns the list of OwnedAccessKeys that match those selectors. -func (c *FakeOwnedAccessKeys) List(ctx context.Context, opts metav1.ListOptions) (result *v1.OwnedAccessKeyList, err error) { - emptyResult := &v1.OwnedAccessKeyList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(ownedaccesskeysResource, ownedaccesskeysKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.OwnedAccessKeyList{ListMeta: obj.(*v1.OwnedAccessKeyList).ListMeta} - for _, item := range obj.(*v1.OwnedAccessKeyList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested ownedAccessKeys. -func (c *FakeOwnedAccessKeys) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(ownedaccesskeysResource, opts)) -} - -// Create takes the representation of a ownedAccessKey and creates it. Returns the server's representation of the ownedAccessKey, and an error, if there is any. -func (c *FakeOwnedAccessKeys) Create(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.CreateOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(ownedaccesskeysResource, ownedAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// Update takes the representation of a ownedAccessKey and updates it. Returns the server's representation of the ownedAccessKey, and an error, if there is any. -func (c *FakeOwnedAccessKeys) Update(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(ownedaccesskeysResource, ownedAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeOwnedAccessKeys) UpdateStatus(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(ownedaccesskeysResource, "status", ownedAccessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.OwnedAccessKey), err -} - -// Delete takes name of the ownedAccessKey and deletes it. Returns an error if one occurs. -func (c *FakeOwnedAccessKeys) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(ownedaccesskeysResource, name, opts), &v1.OwnedAccessKey{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeOwnedAccessKeys) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(ownedaccesskeysResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.OwnedAccessKeyList{}) - return err -} - -// Patch applies the patch and returns the patched ownedAccessKey. -func (c *FakeOwnedAccessKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OwnedAccessKey, err error) { - emptyResult := &v1.OwnedAccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(ownedaccesskeysResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeOwnedAccessKeys(fake *FakeManagementV1) managementv1.OwnedAccessKeyInterface { + return &fakeOwnedAccessKeys{ + gentype.NewFakeClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("ownedaccesskeys"), + v1.SchemeGroupVersion.WithKind("OwnedAccessKey"), + func() *v1.OwnedAccessKey { return &v1.OwnedAccessKey{} }, + func() *v1.OwnedAccessKeyList { return &v1.OwnedAccessKeyList{} }, + func(dst, src *v1.OwnedAccessKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.OwnedAccessKeyList) []*v1.OwnedAccessKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.OwnedAccessKeyList, items []*v1.OwnedAccessKey) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.OwnedAccessKey), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go index cc068bbd..8dae8d4b 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() - } - 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 *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, } - 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,10 +47,10 @@ 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 } @@ -144,10 +58,10 @@ func (c *FakeProjects) ListTemplates(ctx context.Context, projectName string, op } // 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) { +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) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "runners", projectName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -155,10 +69,10 @@ func (c *FakeProjects) ListRunners(ctx context.Context, projectName string, opti } // 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 +80,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 +91,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 +102,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 index 04d0a6b4..455da765 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_runner.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_runner.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" ) -// FakeRunners implements RunnerInterface -type FakeRunners struct { +// fakeRunners implements RunnerInterface +type fakeRunners struct { + *gentype.FakeClientWithList[*v1.Runner, *v1.RunnerList] 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 +func newFakeRunners(fake *FakeManagementV1) managementv1.RunnerInterface { + return &fakeRunners{ + gentype.NewFakeClientWithList[*v1.Runner, *v1.RunnerList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("runners"), + v1.SchemeGroupVersion.WithKind("Runner"), + func() *v1.Runner { return &v1.Runner{} }, + func() *v1.RunnerList { return &v1.RunnerList{} }, + func(dst, src *v1.RunnerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.RunnerList) []*v1.Runner { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.RunnerList, items []*v1.Runner) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - 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) { +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) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "config", runnerName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -133,10 +47,10 @@ func (c *FakeRunners) GetConfig(ctx context.Context, runnerName string, options } // 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) { +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) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "accesskey", runnerName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go index 4e3f66bf..3bf47cc0 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_self.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSelves implements SelfInterface -type FakeSelves struct { +// fakeSelves implements SelfInterface +type fakeSelves struct { + *gentype.FakeClientWithList[*v1.Self, *v1.SelfList] Fake *FakeManagementV1 } -var selvesResource = v1.SchemeGroupVersion.WithResource("selves") - -var selvesKind = v1.SchemeGroupVersion.WithKind("Self") - -// Get takes name of the self, and returns the corresponding self object, and an error if there is any. -func (c *FakeSelves) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(selvesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// List takes label and field selectors, and returns the list of Selves that match those selectors. -func (c *FakeSelves) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SelfList, err error) { - emptyResult := &v1.SelfList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(selvesResource, selvesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SelfList{ListMeta: obj.(*v1.SelfList).ListMeta} - for _, item := range obj.(*v1.SelfList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested selves. -func (c *FakeSelves) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(selvesResource, opts)) -} - -// Create takes the representation of a self and creates it. Returns the server's representation of the self, and an error, if there is any. -func (c *FakeSelves) Create(ctx context.Context, self *v1.Self, opts metav1.CreateOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(selvesResource, self, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// Update takes the representation of a self and updates it. Returns the server's representation of the self, and an error, if there is any. -func (c *FakeSelves) Update(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(selvesResource, self, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSelves) UpdateStatus(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(selvesResource, "status", self, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Self), err -} - -// Delete takes name of the self and deletes it. Returns an error if one occurs. -func (c *FakeSelves) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(selvesResource, name, opts), &v1.Self{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSelves) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(selvesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SelfList{}) - return err -} - -// Patch applies the patch and returns the patched self. -func (c *FakeSelves) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Self, err error) { - emptyResult := &v1.Self{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(selvesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSelves(fake *FakeManagementV1) managementv1.SelfInterface { + return &fakeSelves{ + gentype.NewFakeClientWithList[*v1.Self, *v1.SelfList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("selves"), + v1.SchemeGroupVersion.WithKind("Self"), + func() *v1.Self { return &v1.Self{} }, + func() *v1.SelfList { return &v1.SelfList{} }, + func(dst, src *v1.SelfList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SelfList) []*v1.Self { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SelfList, items []*v1.Self) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Self), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go index 3f8b7d96..9e8691d3 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_selfsubjectaccessreview.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSelfSubjectAccessReviews implements SelfSubjectAccessReviewInterface -type FakeSelfSubjectAccessReviews struct { +// fakeSelfSubjectAccessReviews implements SelfSubjectAccessReviewInterface +type fakeSelfSubjectAccessReviews struct { + *gentype.FakeClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList] Fake *FakeManagementV1 } -var selfsubjectaccessreviewsResource = v1.SchemeGroupVersion.WithResource("selfsubjectaccessreviews") - -var selfsubjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SelfSubjectAccessReview") - -// Get takes name of the selfSubjectAccessReview, and returns the corresponding selfSubjectAccessReview object, and an error if there is any. -func (c *FakeSelfSubjectAccessReviews) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(selfsubjectaccessreviewsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// List takes label and field selectors, and returns the list of SelfSubjectAccessReviews that match those selectors. -func (c *FakeSelfSubjectAccessReviews) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SelfSubjectAccessReviewList, err error) { - emptyResult := &v1.SelfSubjectAccessReviewList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(selfsubjectaccessreviewsResource, selfsubjectaccessreviewsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SelfSubjectAccessReviewList{ListMeta: obj.(*v1.SelfSubjectAccessReviewList).ListMeta} - for _, item := range obj.(*v1.SelfSubjectAccessReviewList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested selfSubjectAccessReviews. -func (c *FakeSelfSubjectAccessReviews) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(selfsubjectaccessreviewsResource, opts)) -} - -// Create takes the representation of a selfSubjectAccessReview and creates it. Returns the server's representation of the selfSubjectAccessReview, and an error, if there is any. -func (c *FakeSelfSubjectAccessReviews) Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(selfsubjectaccessreviewsResource, selfSubjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// Update takes the representation of a selfSubjectAccessReview and updates it. Returns the server's representation of the selfSubjectAccessReview, and an error, if there is any. -func (c *FakeSelfSubjectAccessReviews) Update(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(selfsubjectaccessreviewsResource, selfSubjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSelfSubjectAccessReviews) UpdateStatus(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(selfsubjectaccessreviewsResource, "status", selfSubjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SelfSubjectAccessReview), err -} - -// Delete takes name of the selfSubjectAccessReview and deletes it. Returns an error if one occurs. -func (c *FakeSelfSubjectAccessReviews) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(selfsubjectaccessreviewsResource, name, opts), &v1.SelfSubjectAccessReview{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSelfSubjectAccessReviews) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(selfsubjectaccessreviewsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SelfSubjectAccessReviewList{}) - return err -} - -// Patch applies the patch and returns the patched selfSubjectAccessReview. -func (c *FakeSelfSubjectAccessReviews) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelfSubjectAccessReview, err error) { - emptyResult := &v1.SelfSubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(selfsubjectaccessreviewsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSelfSubjectAccessReviews(fake *FakeManagementV1) managementv1.SelfSubjectAccessReviewInterface { + return &fakeSelfSubjectAccessReviews{ + gentype.NewFakeClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("selfsubjectaccessreviews"), + v1.SchemeGroupVersion.WithKind("SelfSubjectAccessReview"), + func() *v1.SelfSubjectAccessReview { return &v1.SelfSubjectAccessReview{} }, + func() *v1.SelfSubjectAccessReviewList { return &v1.SelfSubjectAccessReviewList{} }, + func(dst, src *v1.SelfSubjectAccessReviewList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SelfSubjectAccessReviewList) []*v1.SelfSubjectAccessReview { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.SelfSubjectAccessReviewList, items []*v1.SelfSubjectAccessReview) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SelfSubjectAccessReview), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go index 7f93614d..86f67d2a 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_sharedsecret.go @@ -3,129 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSharedSecrets implements SharedSecretInterface -type FakeSharedSecrets struct { +// fakeSharedSecrets implements SharedSecretInterface +type fakeSharedSecrets struct { + *gentype.FakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList] Fake *FakeManagementV1 - ns string -} - -var sharedsecretsResource = v1.SchemeGroupVersion.WithResource("sharedsecrets") - -var sharedsecretsKind = v1.SchemeGroupVersion.WithKind("SharedSecret") - -// Get takes name of the sharedSecret, and returns the corresponding sharedSecret object, and an error if there is any. -func (c *FakeSharedSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(sharedsecretsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// List takes label and field selectors, and returns the list of SharedSecrets that match those selectors. -func (c *FakeSharedSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SharedSecretList, err error) { - emptyResult := &v1.SharedSecretList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(sharedsecretsResource, sharedsecretsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SharedSecretList{ListMeta: obj.(*v1.SharedSecretList).ListMeta} - for _, item := range obj.(*v1.SharedSecretList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sharedSecrets. -func (c *FakeSharedSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(sharedsecretsResource, c.ns, opts)) - -} - -// Create takes the representation of a sharedSecret and creates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Update takes the representation of a sharedSecret and updates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSharedSecrets) UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(sharedsecretsResource, "status", c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Delete takes name of the sharedSecret and deletes it. Returns an error if one occurs. -func (c *FakeSharedSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(sharedsecretsResource, c.ns, name, opts), &v1.SharedSecret{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSharedSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(sharedsecretsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SharedSecretList{}) - return err -} - -// Patch applies the patch and returns the patched sharedSecret. -func (c *FakeSharedSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(sharedsecretsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSharedSecrets(fake *FakeManagementV1, namespace string) managementv1.SharedSecretInterface { + return &fakeSharedSecrets{ + gentype.NewFakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("sharedsecrets"), + v1.SchemeGroupVersion.WithKind("SharedSecret"), + func() *v1.SharedSecret { return &v1.SharedSecret{} }, + func() *v1.SharedSecretList { return &v1.SharedSecretList{} }, + func(dst, src *v1.SharedSecretList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SharedSecretList) []*v1.SharedSecret { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SharedSecretList, items []*v1.SharedSecret) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SharedSecret), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go index a225f7b2..41ab60de 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_spaceinstance.go @@ -3,116 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceInstances implements SpaceInstanceInterface -type FakeSpaceInstances struct { +// fakeSpaceInstances implements SpaceInstanceInterface +type fakeSpaceInstances struct { + *gentype.FakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] Fake *FakeManagementV1 - ns string -} - -var spaceinstancesResource = v1.SchemeGroupVersion.WithResource("spaceinstances") - -var spaceinstancesKind = v1.SchemeGroupVersion.WithKind("SpaceInstance") - -// Get takes name of the spaceInstance, and returns the corresponding spaceInstance object, and an error if there is any. -func (c *FakeSpaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(spaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// List takes label and field selectors, and returns the list of SpaceInstances that match those selectors. -func (c *FakeSpaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceInstanceList, err error) { - emptyResult := &v1.SpaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(spaceinstancesResource, spaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceInstanceList{ListMeta: obj.(*v1.SpaceInstanceList).ListMeta} - for _, item := range obj.(*v1.SpaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceInstances. -func (c *FakeSpaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(spaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a spaceInstance and creates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Update takes the representation of a spaceInstance and updates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Delete takes name of the spaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeSpaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(spaceinstancesResource, c.ns, name, opts), &v1.SpaceInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(spaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched spaceInstance. -func (c *FakeSpaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(spaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSpaceInstances(fake *FakeManagementV1, namespace string) managementv1.SpaceInstanceInterface { + return &fakeSpaceInstances{ + gentype.NewFakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("spaceinstances"), + v1.SchemeGroupVersion.WithKind("SpaceInstance"), + func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, + func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }, + func(dst, src *v1.SpaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceInstanceList) []*v1.SpaceInstance { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceInstanceList, items []*v1.SpaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceInstance), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go index f47f5864..258d63aa 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_spacetemplate.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceTemplates implements SpaceTemplateInterface -type FakeSpaceTemplates struct { +// fakeSpaceTemplates implements SpaceTemplateInterface +type fakeSpaceTemplates struct { + *gentype.FakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] Fake *FakeManagementV1 } -var spacetemplatesResource = v1.SchemeGroupVersion.WithResource("spacetemplates") - -var spacetemplatesKind = v1.SchemeGroupVersion.WithKind("SpaceTemplate") - -// Get takes name of the spaceTemplate, and returns the corresponding spaceTemplate object, and an error if there is any. -func (c *FakeSpaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(spacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// List takes label and field selectors, and returns the list of SpaceTemplates that match those selectors. -func (c *FakeSpaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceTemplateList, err error) { - emptyResult := &v1.SpaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(spacetemplatesResource, spacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceTemplateList{ListMeta: obj.(*v1.SpaceTemplateList).ListMeta} - for _, item := range obj.(*v1.SpaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceTemplates. -func (c *FakeSpaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(spacetemplatesResource, opts)) -} - -// Create takes the representation of a spaceTemplate and creates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Update takes the representation of a spaceTemplate and updates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSpaceTemplates) UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(spacetemplatesResource, "status", spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Delete takes name of the spaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeSpaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(spacetemplatesResource, name, opts), &v1.SpaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(spacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched spaceTemplate. -func (c *FakeSpaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(spacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSpaceTemplates(fake *FakeManagementV1) managementv1.SpaceTemplateInterface { + return &fakeSpaceTemplates{ + gentype.NewFakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("spacetemplates"), + v1.SchemeGroupVersion.WithKind("SpaceTemplate"), + func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, + func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }, + func(dst, src *v1.SpaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceTemplateList) []*v1.SpaceTemplate { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceTemplateList, items []*v1.SpaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go index d60682bd..691e71c9 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_subjectaccessreview.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSubjectAccessReviews implements SubjectAccessReviewInterface -type FakeSubjectAccessReviews struct { +// fakeSubjectAccessReviews implements SubjectAccessReviewInterface +type fakeSubjectAccessReviews struct { + *gentype.FakeClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList] Fake *FakeManagementV1 } -var subjectaccessreviewsResource = v1.SchemeGroupVersion.WithResource("subjectaccessreviews") - -var subjectaccessreviewsKind = v1.SchemeGroupVersion.WithKind("SubjectAccessReview") - -// Get takes name of the subjectAccessReview, and returns the corresponding subjectAccessReview object, and an error if there is any. -func (c *FakeSubjectAccessReviews) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(subjectaccessreviewsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// List takes label and field selectors, and returns the list of SubjectAccessReviews that match those selectors. -func (c *FakeSubjectAccessReviews) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SubjectAccessReviewList, err error) { - emptyResult := &v1.SubjectAccessReviewList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(subjectaccessreviewsResource, subjectaccessreviewsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SubjectAccessReviewList{ListMeta: obj.(*v1.SubjectAccessReviewList).ListMeta} - for _, item := range obj.(*v1.SubjectAccessReviewList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested subjectAccessReviews. -func (c *FakeSubjectAccessReviews) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(subjectaccessreviewsResource, opts)) -} - -// Create takes the representation of a subjectAccessReview and creates it. Returns the server's representation of the subjectAccessReview, and an error, if there is any. -func (c *FakeSubjectAccessReviews) Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// Update takes the representation of a subjectAccessReview and updates it. Returns the server's representation of the subjectAccessReview, and an error, if there is any. -func (c *FakeSubjectAccessReviews) Update(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(subjectaccessreviewsResource, subjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSubjectAccessReviews) UpdateStatus(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(subjectaccessreviewsResource, "status", subjectAccessReview, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SubjectAccessReview), err -} - -// Delete takes name of the subjectAccessReview and deletes it. Returns an error if one occurs. -func (c *FakeSubjectAccessReviews) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(subjectaccessreviewsResource, name, opts), &v1.SubjectAccessReview{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSubjectAccessReviews) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(subjectaccessreviewsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SubjectAccessReviewList{}) - return err -} - -// Patch applies the patch and returns the patched subjectAccessReview. -func (c *FakeSubjectAccessReviews) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SubjectAccessReview, err error) { - emptyResult := &v1.SubjectAccessReview{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(subjectaccessreviewsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSubjectAccessReviews(fake *FakeManagementV1) managementv1.SubjectAccessReviewInterface { + return &fakeSubjectAccessReviews{ + gentype.NewFakeClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("subjectaccessreviews"), + v1.SchemeGroupVersion.WithKind("SubjectAccessReview"), + func() *v1.SubjectAccessReview { return &v1.SubjectAccessReview{} }, + func() *v1.SubjectAccessReviewList { return &v1.SubjectAccessReviewList{} }, + func(dst, src *v1.SubjectAccessReviewList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SubjectAccessReviewList) []*v1.SubjectAccessReview { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.SubjectAccessReviewList, items []*v1.SubjectAccessReview) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SubjectAccessReview), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go index 2be15b28..954117b5 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_task.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTasks implements TaskInterface -type FakeTasks struct { +// fakeTasks implements TaskInterface +type fakeTasks struct { + *gentype.FakeClientWithList[*v1.Task, *v1.TaskList] Fake *FakeManagementV1 } -var tasksResource = v1.SchemeGroupVersion.WithResource("tasks") - -var tasksKind = v1.SchemeGroupVersion.WithKind("Task") - -// Get takes name of the task, and returns the corresponding task object, and an error if there is any. -func (c *FakeTasks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(tasksResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// List takes label and field selectors, and returns the list of Tasks that match those selectors. -func (c *FakeTasks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TaskList, err error) { - emptyResult := &v1.TaskList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(tasksResource, tasksKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TaskList{ListMeta: obj.(*v1.TaskList).ListMeta} - for _, item := range obj.(*v1.TaskList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested tasks. -func (c *FakeTasks) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(tasksResource, opts)) -} - -// Create takes the representation of a task and creates it. Returns the server's representation of the task, and an error, if there is any. -func (c *FakeTasks) Create(ctx context.Context, task *v1.Task, opts metav1.CreateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(tasksResource, task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// Update takes the representation of a task and updates it. Returns the server's representation of the task, and an error, if there is any. -func (c *FakeTasks) Update(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(tasksResource, task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTasks) UpdateStatus(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(tasksResource, "status", task, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Task), err -} - -// Delete takes name of the task and deletes it. Returns an error if one occurs. -func (c *FakeTasks) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(tasksResource, name, opts), &v1.Task{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTasks) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(tasksResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TaskList{}) - return err -} - -// Patch applies the patch and returns the patched task. -func (c *FakeTasks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Task, err error) { - emptyResult := &v1.Task{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(tasksResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTasks(fake *FakeManagementV1) managementv1.TaskInterface { + return &fakeTasks{ + gentype.NewFakeClientWithList[*v1.Task, *v1.TaskList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("tasks"), + v1.SchemeGroupVersion.WithKind("Task"), + func() *v1.Task { return &v1.Task{} }, + func() *v1.TaskList { return &v1.TaskList{} }, + func(dst, src *v1.TaskList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TaskList) []*v1.Task { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TaskList, items []*v1.Task) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Task), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go index bd14d854..2731d946 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_team.go @@ -3,129 +3,43 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeTeams implements TeamInterface -type FakeTeams struct { +// fakeTeams implements TeamInterface +type fakeTeams struct { + *gentype.FakeClientWithList[*v1.Team, *v1.TeamList] Fake *FakeManagementV1 } -var teamsResource = v1.SchemeGroupVersion.WithResource("teams") - -var teamsKind = v1.SchemeGroupVersion.WithKind("Team") - -// Get takes name of the team, and returns the corresponding team object, and an error if there is any. -func (c *FakeTeams) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(teamsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// List takes label and field selectors, and returns the list of Teams that match those selectors. -func (c *FakeTeams) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TeamList, err error) { - emptyResult := &v1.TeamList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(teamsResource, teamsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TeamList{ListMeta: obj.(*v1.TeamList).ListMeta} - for _, item := range obj.(*v1.TeamList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested teams. -func (c *FakeTeams) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(teamsResource, opts)) -} - -// Create takes the representation of a team and creates it. Returns the server's representation of the team, and an error, if there is any. -func (c *FakeTeams) Create(ctx context.Context, team *v1.Team, opts metav1.CreateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(teamsResource, team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// Update takes the representation of a team and updates it. Returns the server's representation of the team, and an error, if there is any. -func (c *FakeTeams) Update(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(teamsResource, team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTeams) UpdateStatus(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(teamsResource, "status", team, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Team), err -} - -// Delete takes name of the team and deletes it. Returns an error if one occurs. -func (c *FakeTeams) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(teamsResource, name, opts), &v1.Team{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTeams) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(teamsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TeamList{}) - return err -} - -// Patch applies the patch and returns the patched team. -func (c *FakeTeams) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Team, err error) { - emptyResult := &v1.Team{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(teamsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTeams(fake *FakeManagementV1) managementv1.TeamInterface { + return &fakeTeams{ + gentype.NewFakeClientWithList[*v1.Team, *v1.TeamList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("teams"), + v1.SchemeGroupVersion.WithKind("Team"), + func() *v1.Team { return &v1.Team{} }, + func() *v1.TeamList { return &v1.TeamList{} }, + func(dst, src *v1.TeamList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TeamList) []*v1.Team { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.TeamList, items []*v1.Team) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Team), err } // ListClusters takes name of the team, and returns the corresponding teamClusters object, and an error if there is any. -func (c *FakeTeams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamClusters, err error) { +func (c *fakeTeams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamClusters, err error) { emptyResult := &v1.TeamClusters{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(teamsResource, "clusters", teamName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "clusters", teamName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -133,10 +47,10 @@ func (c *FakeTeams) ListClusters(ctx context.Context, teamName string, options m } // ListAccessKeys takes name of the team, and returns the corresponding teamAccessKeys object, and an error if there is any. -func (c *FakeTeams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamAccessKeys, err error) { +func (c *fakeTeams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamAccessKeys, err error) { emptyResult := &v1.TeamAccessKeys{} obj, err := c.Fake. - Invokes(testing.NewRootGetSubresourceActionWithOptions(teamsResource, "accesskeys", teamName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "accesskeys", teamName, options), emptyResult) if obj == nil { return emptyResult, err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go index 57f1c965..e32c4183 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_translatevclusterresourcename.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeTranslateVClusterResourceNames implements TranslateVClusterResourceNameInterface -type FakeTranslateVClusterResourceNames struct { +// fakeTranslateVClusterResourceNames implements TranslateVClusterResourceNameInterface +type fakeTranslateVClusterResourceNames struct { + *gentype.FakeClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList] Fake *FakeManagementV1 } -var translatevclusterresourcenamesResource = v1.SchemeGroupVersion.WithResource("translatevclusterresourcenames") - -var translatevclusterresourcenamesKind = v1.SchemeGroupVersion.WithKind("TranslateVClusterResourceName") - -// Get takes name of the translateVClusterResourceName, and returns the corresponding translateVClusterResourceName object, and an error if there is any. -func (c *FakeTranslateVClusterResourceNames) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(translatevclusterresourcenamesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// List takes label and field selectors, and returns the list of TranslateVClusterResourceNames that match those selectors. -func (c *FakeTranslateVClusterResourceNames) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TranslateVClusterResourceNameList, err error) { - emptyResult := &v1.TranslateVClusterResourceNameList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(translatevclusterresourcenamesResource, translatevclusterresourcenamesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.TranslateVClusterResourceNameList{ListMeta: obj.(*v1.TranslateVClusterResourceNameList).ListMeta} - for _, item := range obj.(*v1.TranslateVClusterResourceNameList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested translateVClusterResourceNames. -func (c *FakeTranslateVClusterResourceNames) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(translatevclusterresourcenamesResource, opts)) -} - -// Create takes the representation of a translateVClusterResourceName and creates it. Returns the server's representation of the translateVClusterResourceName, and an error, if there is any. -func (c *FakeTranslateVClusterResourceNames) Create(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.CreateOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(translatevclusterresourcenamesResource, translateVClusterResourceName, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// Update takes the representation of a translateVClusterResourceName and updates it. Returns the server's representation of the translateVClusterResourceName, and an error, if there is any. -func (c *FakeTranslateVClusterResourceNames) Update(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(translatevclusterresourcenamesResource, translateVClusterResourceName, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeTranslateVClusterResourceNames) UpdateStatus(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(translatevclusterresourcenamesResource, "status", translateVClusterResourceName, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.TranslateVClusterResourceName), err -} - -// Delete takes name of the translateVClusterResourceName and deletes it. Returns an error if one occurs. -func (c *FakeTranslateVClusterResourceNames) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(translatevclusterresourcenamesResource, name, opts), &v1.TranslateVClusterResourceName{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeTranslateVClusterResourceNames) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(translatevclusterresourcenamesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.TranslateVClusterResourceNameList{}) - return err -} - -// Patch applies the patch and returns the patched translateVClusterResourceName. -func (c *FakeTranslateVClusterResourceNames) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TranslateVClusterResourceName, err error) { - emptyResult := &v1.TranslateVClusterResourceName{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(translatevclusterresourcenamesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeTranslateVClusterResourceNames(fake *FakeManagementV1) managementv1.TranslateVClusterResourceNameInterface { + return &fakeTranslateVClusterResourceNames{ + gentype.NewFakeClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("translatevclusterresourcenames"), + v1.SchemeGroupVersion.WithKind("TranslateVClusterResourceName"), + func() *v1.TranslateVClusterResourceName { return &v1.TranslateVClusterResourceName{} }, + func() *v1.TranslateVClusterResourceNameList { return &v1.TranslateVClusterResourceNameList{} }, + func(dst, src *v1.TranslateVClusterResourceNameList) { dst.ListMeta = src.ListMeta }, + func(list *v1.TranslateVClusterResourceNameList) []*v1.TranslateVClusterResourceName { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.TranslateVClusterResourceNameList, items []*v1.TranslateVClusterResourceName) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.TranslateVClusterResourceName), err } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go index 97003eee..122e00d7 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,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" ) -// 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 - } - 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 *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 } // 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) { +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.NewRootGetSubresourceActionWithOptions(usersResource, "profile", userName, options), emptyResult) + Invokes(testing.NewRootGetSubresourceActionWithOptions(c.Resource(), "profile", userName, options), emptyResult) if obj == nil { return emptyResult, err } @@ -133,10 +47,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 +58,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 f2b5c3e2..430fd2f5 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go @@ -3,125 +3,47 @@ package fake import ( - "context" + context "context" v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" testing "k8s.io/client-go/testing" ) -// FakeVirtualClusterInstances implements VirtualClusterInstanceInterface -type FakeVirtualClusterInstances struct { +// fakeVirtualClusterInstances implements VirtualClusterInstanceInterface +type fakeVirtualClusterInstances struct { + *gentype.FakeClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList] Fake *FakeManagementV1 - ns string } -var virtualclusterinstancesResource = v1.SchemeGroupVersion.WithResource("virtualclusterinstances") - -var virtualclusterinstancesKind = v1.SchemeGroupVersion.WithKind("VirtualClusterInstance") - -// Get takes name of the virtualClusterInstance, and returns the corresponding virtualClusterInstance object, and an error if there is any. -func (c *FakeVirtualClusterInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(virtualclusterinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.VirtualClusterInstance), err -} - -// List takes label and field selectors, and returns the list of VirtualClusterInstances that match those selectors. -func (c *FakeVirtualClusterInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.VirtualClusterInstanceList, err error) { - emptyResult := &v1.VirtualClusterInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(virtualclusterinstancesResource, virtualclusterinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.VirtualClusterInstanceList{ListMeta: obj.(*v1.VirtualClusterInstanceList).ListMeta} - for _, item := range obj.(*v1.VirtualClusterInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested virtualClusterInstances. -func (c *FakeVirtualClusterInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(virtualclusterinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a virtualClusterInstance and creates it. Returns the server's representation of the virtualClusterInstance, and an error, if there is any. -func (c *FakeVirtualClusterInstances) Create(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.CreateOptions) (result *v1.VirtualClusterInstance, err error) { - emptyResult := &v1.VirtualClusterInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(virtualclusterinstancesResource, c.ns, virtualClusterInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - 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 *FakeManagementV1, namespace string) managementv1.VirtualClusterInstanceInterface { + return &fakeVirtualClusterInstances{ + gentype.NewFakeClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("virtualclusterinstances"), + v1.SchemeGroupVersion.WithKind("VirtualClusterInstance"), + func() *v1.VirtualClusterInstance { return &v1.VirtualClusterInstance{} }, + func() *v1.VirtualClusterInstanceList { return &v1.VirtualClusterInstanceList{} }, + func(dst, src *v1.VirtualClusterInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.VirtualClusterInstanceList) []*v1.VirtualClusterInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.VirtualClusterInstanceList, items []*v1.VirtualClusterInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.VirtualClusterInstance), err } // 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) { +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.NewCreateSubresourceActionWithOptions(virtualclusterinstancesResource, virtualClusterInstanceName, "kubeconfig", c.ns, virtualClusterInstanceKubeConfig, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "kubeconfig", c.Namespace(), virtualClusterInstanceKubeConfig, opts), emptyResult) if obj == nil { return emptyResult, err @@ -130,10 +52,10 @@ func (c *FakeVirtualClusterInstances) GetKubeConfig(ctx context.Context, virtual } // 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) { +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.NewGetSubresourceActionWithOptions(virtualclusterinstancesResource, c.ns, "accesskey", virtualClusterInstanceName, options), emptyResult) + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "accesskey", virtualClusterInstanceName, options), emptyResult) if obj == nil { return emptyResult, err @@ -142,10 +64,10 @@ func (c *FakeVirtualClusterInstances) GetAccessKey(ctx context.Context, virtualC } // 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) { +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.NewCreateSubresourceActionWithOptions(virtualclusterinstancesResource, virtualClusterInstanceName, "externaldatabase", c.ns, virtualClusterExternalDatabase, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "externaldatabase", c.Namespace(), virtualClusterExternalDatabase, opts), emptyResult) if obj == nil { return emptyResult, err 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/ingressauthtoken.go b/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go index 44ed84ab..903fe8d3 100644 --- a/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go +++ b/pkg/clientset/versioned/typed/management/v1/ingressauthtoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type IngressAuthTokensGetter interface { // IngressAuthTokenInterface has methods to work with IngressAuthToken resources. type IngressAuthTokenInterface interface { - Create(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.CreateOptions) (*v1.IngressAuthToken, error) - Update(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (*v1.IngressAuthToken, error) + Create(ctx context.Context, ingressAuthToken *managementv1.IngressAuthToken, opts metav1.CreateOptions) (*managementv1.IngressAuthToken, error) + Update(ctx context.Context, ingressAuthToken *managementv1.IngressAuthToken, opts metav1.UpdateOptions) (*managementv1.IngressAuthToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, ingressAuthToken *v1.IngressAuthToken, opts metav1.UpdateOptions) (*v1.IngressAuthToken, error) + UpdateStatus(ctx context.Context, ingressAuthToken *managementv1.IngressAuthToken, opts metav1.UpdateOptions) (*managementv1.IngressAuthToken, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.IngressAuthToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.IngressAuthTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.IngressAuthToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.IngressAuthTokenList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.IngressAuthToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.IngressAuthToken, err error) IngressAuthTokenExpansion } // ingressAuthTokens implements IngressAuthTokenInterface type ingressAuthTokens struct { - *gentype.ClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList] + *gentype.ClientWithList[*managementv1.IngressAuthToken, *managementv1.IngressAuthTokenList] } // newIngressAuthTokens returns a IngressAuthTokens func newIngressAuthTokens(c *ManagementV1Client) *ingressAuthTokens { return &ingressAuthTokens{ - gentype.NewClientWithList[*v1.IngressAuthToken, *v1.IngressAuthTokenList]( + gentype.NewClientWithList[*managementv1.IngressAuthToken, *managementv1.IngressAuthTokenList]( "ingressauthtokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.IngressAuthToken { return &v1.IngressAuthToken{} }, - func() *v1.IngressAuthTokenList { return &v1.IngressAuthTokenList{} }), + func() *managementv1.IngressAuthToken { return &managementv1.IngressAuthToken{} }, + func() *managementv1.IngressAuthTokenList { return &managementv1.IngressAuthTokenList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/license.go b/pkg/clientset/versioned/typed/management/v1/license.go index b4268ed4..075ed8b7 100644 --- a/pkg/clientset/versioned/typed/management/v1/license.go +++ b/pkg/clientset/versioned/typed/management/v1/license.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,42 +21,43 @@ type LicensesGetter interface { // LicenseInterface has methods to work with License resources. type LicenseInterface interface { - Create(ctx context.Context, license *v1.License, opts metav1.CreateOptions) (*v1.License, error) - Update(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (*v1.License, error) + Create(ctx context.Context, license *managementv1.License, opts metav1.CreateOptions) (*managementv1.License, error) + Update(ctx context.Context, license *managementv1.License, opts metav1.UpdateOptions) (*managementv1.License, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, license *v1.License, opts metav1.UpdateOptions) (*v1.License, error) + UpdateStatus(ctx context.Context, license *managementv1.License, opts metav1.UpdateOptions) (*managementv1.License, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.License, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.LicenseList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.License, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LicenseList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.License, err error) - LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (*v1.LicenseRequest, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.License, err error) + LicenseRequest(ctx context.Context, licenseName string, licenseRequest *managementv1.LicenseRequest, opts metav1.CreateOptions) (*managementv1.LicenseRequest, error) LicenseExpansion } // licenses implements LicenseInterface type licenses struct { - *gentype.ClientWithList[*v1.License, *v1.LicenseList] + *gentype.ClientWithList[*managementv1.License, *managementv1.LicenseList] } // newLicenses returns a Licenses func newLicenses(c *ManagementV1Client) *licenses { return &licenses{ - gentype.NewClientWithList[*v1.License, *v1.LicenseList]( + gentype.NewClientWithList[*managementv1.License, *managementv1.LicenseList]( "licenses", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.License { return &v1.License{} }, - func() *v1.LicenseList { return &v1.LicenseList{} }), + func() *managementv1.License { return &managementv1.License{} }, + func() *managementv1.LicenseList { return &managementv1.LicenseList{} }, + ), } } // LicenseRequest takes the representation of a licenseRequest and creates it. Returns the server's representation of the licenseRequest, and an error, if there is any. -func (c *licenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *v1.LicenseRequest, opts metav1.CreateOptions) (result *v1.LicenseRequest, err error) { - result = &v1.LicenseRequest{} +func (c *licenses) LicenseRequest(ctx context.Context, licenseName string, licenseRequest *managementv1.LicenseRequest, opts metav1.CreateOptions) (result *managementv1.LicenseRequest, err error) { + result = &managementv1.LicenseRequest{} err = c.GetClient().Post(). Resource("licenses"). Name(licenseName). diff --git a/pkg/clientset/versioned/typed/management/v1/licensetoken.go b/pkg/clientset/versioned/typed/management/v1/licensetoken.go index 1c5a5723..8fe31fcd 100644 --- a/pkg/clientset/versioned/typed/management/v1/licensetoken.go +++ b/pkg/clientset/versioned/typed/management/v1/licensetoken.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type LicenseTokensGetter interface { // LicenseTokenInterface has methods to work with LicenseToken resources. type LicenseTokenInterface interface { - Create(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.CreateOptions) (*v1.LicenseToken, error) - Update(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (*v1.LicenseToken, error) + Create(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.CreateOptions) (*managementv1.LicenseToken, error) + Update(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.UpdateOptions) (*managementv1.LicenseToken, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, licenseToken *v1.LicenseToken, opts metav1.UpdateOptions) (*v1.LicenseToken, error) + UpdateStatus(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.UpdateOptions) (*managementv1.LicenseToken, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.LicenseToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.LicenseTokenList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.LicenseToken, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LicenseTokenList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LicenseToken, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.LicenseToken, err error) LicenseTokenExpansion } // licenseTokens implements LicenseTokenInterface type licenseTokens struct { - *gentype.ClientWithList[*v1.LicenseToken, *v1.LicenseTokenList] + *gentype.ClientWithList[*managementv1.LicenseToken, *managementv1.LicenseTokenList] } // newLicenseTokens returns a LicenseTokens func newLicenseTokens(c *ManagementV1Client) *licenseTokens { return &licenseTokens{ - gentype.NewClientWithList[*v1.LicenseToken, *v1.LicenseTokenList]( + gentype.NewClientWithList[*managementv1.LicenseToken, *managementv1.LicenseTokenList]( "licensetokens", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.LicenseToken { return &v1.LicenseToken{} }, - func() *v1.LicenseTokenList { return &v1.LicenseTokenList{} }), + func() *managementv1.LicenseToken { return &managementv1.LicenseToken{} }, + func() *managementv1.LicenseTokenList { return &managementv1.LicenseTokenList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/loftupgrade.go b/pkg/clientset/versioned/typed/management/v1/loftupgrade.go index 3f54314a..267117b2 100644 --- a/pkg/clientset/versioned/typed/management/v1/loftupgrade.go +++ b/pkg/clientset/versioned/typed/management/v1/loftupgrade.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type LoftUpgradesGetter interface { // LoftUpgradeInterface has methods to work with LoftUpgrade resources. type LoftUpgradeInterface interface { - Create(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.CreateOptions) (*v1.LoftUpgrade, error) - Update(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (*v1.LoftUpgrade, error) + Create(ctx context.Context, loftUpgrade *managementv1.LoftUpgrade, opts metav1.CreateOptions) (*managementv1.LoftUpgrade, error) + Update(ctx context.Context, loftUpgrade *managementv1.LoftUpgrade, opts metav1.UpdateOptions) (*managementv1.LoftUpgrade, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, loftUpgrade *v1.LoftUpgrade, opts metav1.UpdateOptions) (*v1.LoftUpgrade, error) + UpdateStatus(ctx context.Context, loftUpgrade *managementv1.LoftUpgrade, opts metav1.UpdateOptions) (*managementv1.LoftUpgrade, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.LoftUpgrade, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.LoftUpgradeList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.LoftUpgrade, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LoftUpgradeList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.LoftUpgrade, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.LoftUpgrade, err error) LoftUpgradeExpansion } // loftUpgrades implements LoftUpgradeInterface type loftUpgrades struct { - *gentype.ClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList] + *gentype.ClientWithList[*managementv1.LoftUpgrade, *managementv1.LoftUpgradeList] } // newLoftUpgrades returns a LoftUpgrades func newLoftUpgrades(c *ManagementV1Client) *loftUpgrades { return &loftUpgrades{ - gentype.NewClientWithList[*v1.LoftUpgrade, *v1.LoftUpgradeList]( + gentype.NewClientWithList[*managementv1.LoftUpgrade, *managementv1.LoftUpgradeList]( "loftupgrades", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.LoftUpgrade { return &v1.LoftUpgrade{} }, - func() *v1.LoftUpgradeList { return &v1.LoftUpgradeList{} }), + func() *managementv1.LoftUpgrade { return &managementv1.LoftUpgrade{} }, + func() *managementv1.LoftUpgradeList { return &managementv1.LoftUpgradeList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 538a754b..2194a4e7 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" ) @@ -264,10 +264,10 @@ func New(c rest.Interface) *ManagementV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + 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() diff --git a/pkg/clientset/versioned/typed/management/v1/oidcclient.go b/pkg/clientset/versioned/typed/management/v1/oidcclient.go index 5cf91511..3da8240c 100644 --- a/pkg/clientset/versioned/typed/management/v1/oidcclient.go +++ b/pkg/clientset/versioned/typed/management/v1/oidcclient.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type OIDCClientsGetter interface { // OIDCClientInterface has methods to work with OIDCClient resources. type OIDCClientInterface interface { - Create(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.CreateOptions) (*v1.OIDCClient, error) - Update(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (*v1.OIDCClient, error) + Create(ctx context.Context, oIDCClient *managementv1.OIDCClient, opts metav1.CreateOptions) (*managementv1.OIDCClient, error) + Update(ctx context.Context, oIDCClient *managementv1.OIDCClient, opts metav1.UpdateOptions) (*managementv1.OIDCClient, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, oIDCClient *v1.OIDCClient, opts metav1.UpdateOptions) (*v1.OIDCClient, error) + UpdateStatus(ctx context.Context, oIDCClient *managementv1.OIDCClient, opts metav1.UpdateOptions) (*managementv1.OIDCClient, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OIDCClient, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.OIDCClientList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.OIDCClient, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.OIDCClientList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OIDCClient, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.OIDCClient, err error) OIDCClientExpansion } // oIDCClients implements OIDCClientInterface type oIDCClients struct { - *gentype.ClientWithList[*v1.OIDCClient, *v1.OIDCClientList] + *gentype.ClientWithList[*managementv1.OIDCClient, *managementv1.OIDCClientList] } // newOIDCClients returns a OIDCClients func newOIDCClients(c *ManagementV1Client) *oIDCClients { return &oIDCClients{ - gentype.NewClientWithList[*v1.OIDCClient, *v1.OIDCClientList]( + gentype.NewClientWithList[*managementv1.OIDCClient, *managementv1.OIDCClientList]( "oidcclients", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.OIDCClient { return &v1.OIDCClient{} }, - func() *v1.OIDCClientList { return &v1.OIDCClientList{} }), + func() *managementv1.OIDCClient { return &managementv1.OIDCClient{} }, + func() *managementv1.OIDCClientList { return &managementv1.OIDCClientList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go b/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go index 9544c3c5..bec285dd 100644 --- a/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go +++ b/pkg/clientset/versioned/typed/management/v1/ownedaccesskey.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type OwnedAccessKeysGetter interface { // OwnedAccessKeyInterface has methods to work with OwnedAccessKey resources. type OwnedAccessKeyInterface interface { - Create(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.CreateOptions) (*v1.OwnedAccessKey, error) - Update(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (*v1.OwnedAccessKey, error) + Create(ctx context.Context, ownedAccessKey *managementv1.OwnedAccessKey, opts metav1.CreateOptions) (*managementv1.OwnedAccessKey, error) + Update(ctx context.Context, ownedAccessKey *managementv1.OwnedAccessKey, opts metav1.UpdateOptions) (*managementv1.OwnedAccessKey, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, ownedAccessKey *v1.OwnedAccessKey, opts metav1.UpdateOptions) (*v1.OwnedAccessKey, error) + UpdateStatus(ctx context.Context, ownedAccessKey *managementv1.OwnedAccessKey, opts metav1.UpdateOptions) (*managementv1.OwnedAccessKey, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.OwnedAccessKey, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.OwnedAccessKeyList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.OwnedAccessKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.OwnedAccessKeyList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.OwnedAccessKey, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.OwnedAccessKey, err error) OwnedAccessKeyExpansion } // ownedAccessKeys implements OwnedAccessKeyInterface type ownedAccessKeys struct { - *gentype.ClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList] + *gentype.ClientWithList[*managementv1.OwnedAccessKey, *managementv1.OwnedAccessKeyList] } // newOwnedAccessKeys returns a OwnedAccessKeys func newOwnedAccessKeys(c *ManagementV1Client) *ownedAccessKeys { return &ownedAccessKeys{ - gentype.NewClientWithList[*v1.OwnedAccessKey, *v1.OwnedAccessKeyList]( + gentype.NewClientWithList[*managementv1.OwnedAccessKey, *managementv1.OwnedAccessKeyList]( "ownedaccesskeys", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.OwnedAccessKey { return &v1.OwnedAccessKey{} }, - func() *v1.OwnedAccessKeyList { return &v1.OwnedAccessKeyList{} }), + func() *managementv1.OwnedAccessKey { return &managementv1.OwnedAccessKey{} }, + func() *managementv1.OwnedAccessKeyList { return &managementv1.OwnedAccessKeyList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/project.go b/pkg/clientset/versioned/typed/management/v1/project.go index 1c0e65ea..d32f7335 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,49 @@ 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) + ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (*managementv1.ProjectRunners, 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 +74,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,9 +87,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{} +// ListRunners takes name of the project, and returns the corresponding managementv1.ProjectRunners object, and an error if there is any. +func (c *projects) ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (result *managementv1.ProjectRunners, err error) { + result = &managementv1.ProjectRunners{} err = c.GetClient().Get(). Resource("projects"). Name(projectName). @@ -99,9 +100,9 @@ func (c *projects) ListRunners(ctx context.Context, projectName string, options 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 +114,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 +128,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 +142,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 index 92ccf936..fcf8e970 100644 --- a/pkg/clientset/versioned/typed/management/v1/runner.go +++ b/pkg/clientset/versioned/typed/management/v1/runner.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 RunnersGetter interface { // 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) + Create(ctx context.Context, runner *managementv1.Runner, opts metav1.CreateOptions) (*managementv1.Runner, error) + Update(ctx context.Context, runner *managementv1.Runner, opts metav1.UpdateOptions) (*managementv1.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) + UpdateStatus(ctx context.Context, runner *managementv1.Runner, opts metav1.UpdateOptions) (*managementv1.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) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Runner, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.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) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Runner, err error) + GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (*managementv1.RunnerConfig, error) + GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (*managementv1.RunnerAccessKey, error) RunnerExpansion } // runners implements RunnerInterface type runners struct { - *gentype.ClientWithList[*v1.Runner, *v1.RunnerList] + *gentype.ClientWithList[*managementv1.Runner, *managementv1.RunnerList] } // newRunners returns a Runners func newRunners(c *ManagementV1Client) *runners { return &runners{ - gentype.NewClientWithList[*v1.Runner, *v1.RunnerList]( + gentype.NewClientWithList[*managementv1.Runner, *managementv1.RunnerList]( "runners", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Runner { return &v1.Runner{} }, - func() *v1.RunnerList { return &v1.RunnerList{} }), + func() *managementv1.Runner { return &managementv1.Runner{} }, + func() *managementv1.RunnerList { return &managementv1.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{} +// GetConfig takes name of the runner, and returns the corresponding managementv1.RunnerConfig object, and an error if there is any. +func (c *runners) GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (result *managementv1.RunnerConfig, err error) { + result = &managementv1.RunnerConfig{} err = c.GetClient().Get(). Resource("runners"). Name(runnerName). @@ -68,9 +69,9 @@ func (c *runners) GetConfig(ctx context.Context, runnerName string, options meta 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{} +// GetAccessKey takes name of the runner, and returns the corresponding managementv1.RunnerAccessKey object, and an error if there is any. +func (c *runners) GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (result *managementv1.RunnerAccessKey, err error) { + result = &managementv1.RunnerAccessKey{} err = c.GetClient().Get(). Resource("runners"). Name(runnerName). diff --git a/pkg/clientset/versioned/typed/management/v1/self.go b/pkg/clientset/versioned/typed/management/v1/self.go index 7c865013..e12385f3 100644 --- a/pkg/clientset/versioned/typed/management/v1/self.go +++ b/pkg/clientset/versioned/typed/management/v1/self.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SelvesGetter interface { // SelfInterface has methods to work with Self resources. type SelfInterface interface { - Create(ctx context.Context, self *v1.Self, opts metav1.CreateOptions) (*v1.Self, error) - Update(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (*v1.Self, error) + Create(ctx context.Context, self *managementv1.Self, opts metav1.CreateOptions) (*managementv1.Self, error) + Update(ctx context.Context, self *managementv1.Self, opts metav1.UpdateOptions) (*managementv1.Self, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, self *v1.Self, opts metav1.UpdateOptions) (*v1.Self, error) + UpdateStatus(ctx context.Context, self *managementv1.Self, opts metav1.UpdateOptions) (*managementv1.Self, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Self, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SelfList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Self, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SelfList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Self, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Self, err error) SelfExpansion } // selves implements SelfInterface type selves struct { - *gentype.ClientWithList[*v1.Self, *v1.SelfList] + *gentype.ClientWithList[*managementv1.Self, *managementv1.SelfList] } // newSelves returns a Selves func newSelves(c *ManagementV1Client) *selves { return &selves{ - gentype.NewClientWithList[*v1.Self, *v1.SelfList]( + gentype.NewClientWithList[*managementv1.Self, *managementv1.SelfList]( "selves", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Self { return &v1.Self{} }, - func() *v1.SelfList { return &v1.SelfList{} }), + func() *managementv1.Self { return &managementv1.Self{} }, + func() *managementv1.SelfList { return &managementv1.SelfList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go index 73da8603..f64d2bf8 100644 --- a/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/selfsubjectaccessreview.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SelfSubjectAccessReviewsGetter interface { // SelfSubjectAccessReviewInterface has methods to work with SelfSubjectAccessReview resources. type SelfSubjectAccessReviewInterface interface { - Create(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*v1.SelfSubjectAccessReview, error) - Update(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*v1.SelfSubjectAccessReview, error) + Create(ctx context.Context, selfSubjectAccessReview *managementv1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*managementv1.SelfSubjectAccessReview, error) + Update(ctx context.Context, selfSubjectAccessReview *managementv1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SelfSubjectAccessReview, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, selfSubjectAccessReview *v1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*v1.SelfSubjectAccessReview, error) + UpdateStatus(ctx context.Context, selfSubjectAccessReview *managementv1.SelfSubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SelfSubjectAccessReview, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SelfSubjectAccessReview, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SelfSubjectAccessReviewList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SelfSubjectAccessReview, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SelfSubjectAccessReviewList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelfSubjectAccessReview, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SelfSubjectAccessReview, err error) SelfSubjectAccessReviewExpansion } // selfSubjectAccessReviews implements SelfSubjectAccessReviewInterface type selfSubjectAccessReviews struct { - *gentype.ClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList] + *gentype.ClientWithList[*managementv1.SelfSubjectAccessReview, *managementv1.SelfSubjectAccessReviewList] } // newSelfSubjectAccessReviews returns a SelfSubjectAccessReviews func newSelfSubjectAccessReviews(c *ManagementV1Client) *selfSubjectAccessReviews { return &selfSubjectAccessReviews{ - gentype.NewClientWithList[*v1.SelfSubjectAccessReview, *v1.SelfSubjectAccessReviewList]( + gentype.NewClientWithList[*managementv1.SelfSubjectAccessReview, *managementv1.SelfSubjectAccessReviewList]( "selfsubjectaccessreviews", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SelfSubjectAccessReview { return &v1.SelfSubjectAccessReview{} }, - func() *v1.SelfSubjectAccessReviewList { return &v1.SelfSubjectAccessReviewList{} }), + func() *managementv1.SelfSubjectAccessReview { return &managementv1.SelfSubjectAccessReview{} }, + func() *managementv1.SelfSubjectAccessReviewList { return &managementv1.SelfSubjectAccessReviewList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/sharedsecret.go b/pkg/clientset/versioned/typed/management/v1/sharedsecret.go index e8e45747..4ff9e41e 100644 --- a/pkg/clientset/versioned/typed/management/v1/sharedsecret.go +++ b/pkg/clientset/versioned/typed/management/v1/sharedsecret.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SharedSecretsGetter interface { // SharedSecretInterface has methods to work with SharedSecret resources. type SharedSecretInterface interface { - Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (*v1.SharedSecret, error) - Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + Create(ctx context.Context, sharedSecret *managementv1.SharedSecret, opts metav1.CreateOptions) (*managementv1.SharedSecret, error) + Update(ctx context.Context, sharedSecret *managementv1.SharedSecret, opts metav1.UpdateOptions) (*managementv1.SharedSecret, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + UpdateStatus(ctx context.Context, sharedSecret *managementv1.SharedSecret, opts metav1.UpdateOptions) (*managementv1.SharedSecret, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SharedSecret, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SharedSecretList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SharedSecret, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SharedSecretList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SharedSecret, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SharedSecret, err error) SharedSecretExpansion } // sharedSecrets implements SharedSecretInterface type sharedSecrets struct { - *gentype.ClientWithList[*v1.SharedSecret, *v1.SharedSecretList] + *gentype.ClientWithList[*managementv1.SharedSecret, *managementv1.SharedSecretList] } // newSharedSecrets returns a SharedSecrets func newSharedSecrets(c *ManagementV1Client, namespace string) *sharedSecrets { return &sharedSecrets{ - gentype.NewClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + gentype.NewClientWithList[*managementv1.SharedSecret, *managementv1.SharedSecretList]( "sharedsecrets", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SharedSecret { return &v1.SharedSecret{} }, - func() *v1.SharedSecretList { return &v1.SharedSecretList{} }), + func() *managementv1.SharedSecret { return &managementv1.SharedSecret{} }, + func() *managementv1.SharedSecretList { return &managementv1.SharedSecretList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/spaceinstance.go b/pkg/clientset/versioned/typed/management/v1/spaceinstance.go index 35a92f33..d50ede9a 100644 --- a/pkg/clientset/versioned/typed/management/v1/spaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/spaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type SpaceInstancesGetter interface { // SpaceInstanceInterface has methods to work with SpaceInstance resources. type SpaceInstanceInterface interface { - Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (*v1.SpaceInstance, error) - Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (*v1.SpaceInstance, error) + Create(ctx context.Context, spaceInstance *managementv1.SpaceInstance, opts metav1.CreateOptions) (*managementv1.SpaceInstance, error) + Update(ctx context.Context, spaceInstance *managementv1.SpaceInstance, opts metav1.UpdateOptions) (*managementv1.SpaceInstance, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SpaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SpaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SpaceInstanceList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceInstance, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SpaceInstance, err error) SpaceInstanceExpansion } // spaceInstances implements SpaceInstanceInterface type spaceInstances struct { - *gentype.ClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] + *gentype.ClientWithList[*managementv1.SpaceInstance, *managementv1.SpaceInstanceList] } // newSpaceInstances returns a SpaceInstances func newSpaceInstances(c *ManagementV1Client, namespace string) *spaceInstances { return &spaceInstances{ - gentype.NewClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + gentype.NewClientWithList[*managementv1.SpaceInstance, *managementv1.SpaceInstanceList]( "spaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, - func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }), + func() *managementv1.SpaceInstance { return &managementv1.SpaceInstance{} }, + func() *managementv1.SpaceInstanceList { return &managementv1.SpaceInstanceList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/spacetemplate.go b/pkg/clientset/versioned/typed/management/v1/spacetemplate.go index caa05f60..53de9639 100644 --- a/pkg/clientset/versioned/typed/management/v1/spacetemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/spacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SpaceTemplatesGetter interface { // SpaceTemplateInterface has methods to work with SpaceTemplate resources. type SpaceTemplateInterface interface { - Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (*v1.SpaceTemplate, error) - Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + Create(ctx context.Context, spaceTemplate *managementv1.SpaceTemplate, opts metav1.CreateOptions) (*managementv1.SpaceTemplate, error) + Update(ctx context.Context, spaceTemplate *managementv1.SpaceTemplate, opts metav1.UpdateOptions) (*managementv1.SpaceTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + UpdateStatus(ctx context.Context, spaceTemplate *managementv1.SpaceTemplate, opts metav1.UpdateOptions) (*managementv1.SpaceTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SpaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SpaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SpaceTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SpaceTemplate, err error) SpaceTemplateExpansion } // spaceTemplates implements SpaceTemplateInterface type spaceTemplates struct { - *gentype.ClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] + *gentype.ClientWithList[*managementv1.SpaceTemplate, *managementv1.SpaceTemplateList] } // newSpaceTemplates returns a SpaceTemplates func newSpaceTemplates(c *ManagementV1Client) *spaceTemplates { return &spaceTemplates{ - gentype.NewClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + gentype.NewClientWithList[*managementv1.SpaceTemplate, *managementv1.SpaceTemplateList]( "spacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, - func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }), + func() *managementv1.SpaceTemplate { return &managementv1.SpaceTemplate{} }, + func() *managementv1.SpaceTemplateList { return &managementv1.SpaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go b/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go index f2581c6c..0e9c41a4 100644 --- a/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go +++ b/pkg/clientset/versioned/typed/management/v1/subjectaccessreview.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SubjectAccessReviewsGetter interface { // SubjectAccessReviewInterface has methods to work with SubjectAccessReview resources. type SubjectAccessReviewInterface interface { - Create(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.CreateOptions) (*v1.SubjectAccessReview, error) - Update(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (*v1.SubjectAccessReview, error) + Create(ctx context.Context, subjectAccessReview *managementv1.SubjectAccessReview, opts metav1.CreateOptions) (*managementv1.SubjectAccessReview, error) + Update(ctx context.Context, subjectAccessReview *managementv1.SubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SubjectAccessReview, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, subjectAccessReview *v1.SubjectAccessReview, opts metav1.UpdateOptions) (*v1.SubjectAccessReview, error) + UpdateStatus(ctx context.Context, subjectAccessReview *managementv1.SubjectAccessReview, opts metav1.UpdateOptions) (*managementv1.SubjectAccessReview, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SubjectAccessReview, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SubjectAccessReviewList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.SubjectAccessReview, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.SubjectAccessReviewList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SubjectAccessReview, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.SubjectAccessReview, err error) SubjectAccessReviewExpansion } // subjectAccessReviews implements SubjectAccessReviewInterface type subjectAccessReviews struct { - *gentype.ClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList] + *gentype.ClientWithList[*managementv1.SubjectAccessReview, *managementv1.SubjectAccessReviewList] } // newSubjectAccessReviews returns a SubjectAccessReviews func newSubjectAccessReviews(c *ManagementV1Client) *subjectAccessReviews { return &subjectAccessReviews{ - gentype.NewClientWithList[*v1.SubjectAccessReview, *v1.SubjectAccessReviewList]( + gentype.NewClientWithList[*managementv1.SubjectAccessReview, *managementv1.SubjectAccessReviewList]( "subjectaccessreviews", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SubjectAccessReview { return &v1.SubjectAccessReview{} }, - func() *v1.SubjectAccessReviewList { return &v1.SubjectAccessReviewList{} }), + func() *managementv1.SubjectAccessReview { return &managementv1.SubjectAccessReview{} }, + func() *managementv1.SubjectAccessReviewList { return &managementv1.SubjectAccessReviewList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/task.go b/pkg/clientset/versioned/typed/management/v1/task.go index 183fa6d5..7aaa9d08 100644 --- a/pkg/clientset/versioned/typed/management/v1/task.go +++ b/pkg/clientset/versioned/typed/management/v1/task.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type TasksGetter interface { // TaskInterface has methods to work with Task resources. type TaskInterface interface { - Create(ctx context.Context, task *v1.Task, opts metav1.CreateOptions) (*v1.Task, error) - Update(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (*v1.Task, error) + Create(ctx context.Context, task *managementv1.Task, opts metav1.CreateOptions) (*managementv1.Task, error) + Update(ctx context.Context, task *managementv1.Task, opts metav1.UpdateOptions) (*managementv1.Task, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, task *v1.Task, opts metav1.UpdateOptions) (*v1.Task, error) + UpdateStatus(ctx context.Context, task *managementv1.Task, opts metav1.UpdateOptions) (*managementv1.Task, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Task, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TaskList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Task, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.TaskList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Task, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Task, err error) TaskExpansion } // tasks implements TaskInterface type tasks struct { - *gentype.ClientWithList[*v1.Task, *v1.TaskList] + *gentype.ClientWithList[*managementv1.Task, *managementv1.TaskList] } // newTasks returns a Tasks func newTasks(c *ManagementV1Client) *tasks { return &tasks{ - gentype.NewClientWithList[*v1.Task, *v1.TaskList]( + gentype.NewClientWithList[*managementv1.Task, *managementv1.TaskList]( "tasks", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Task { return &v1.Task{} }, - func() *v1.TaskList { return &v1.TaskList{} }), + func() *managementv1.Task { return &managementv1.Task{} }, + func() *managementv1.TaskList { return &managementv1.TaskList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/team.go b/pkg/clientset/versioned/typed/management/v1/team.go index f3a2c6e9..2947fffe 100644 --- a/pkg/clientset/versioned/typed/management/v1/team.go +++ b/pkg/clientset/versioned/typed/management/v1/team.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,43 +21,44 @@ type TeamsGetter interface { // TeamInterface has methods to work with Team resources. type TeamInterface interface { - Create(ctx context.Context, team *v1.Team, opts metav1.CreateOptions) (*v1.Team, error) - Update(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (*v1.Team, error) + Create(ctx context.Context, team *managementv1.Team, opts metav1.CreateOptions) (*managementv1.Team, error) + Update(ctx context.Context, team *managementv1.Team, opts metav1.UpdateOptions) (*managementv1.Team, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, team *v1.Team, opts metav1.UpdateOptions) (*v1.Team, error) + UpdateStatus(ctx context.Context, team *managementv1.Team, opts metav1.UpdateOptions) (*managementv1.Team, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Team, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TeamList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.Team, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.TeamList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Team, err error) - ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (*v1.TeamClusters, error) - ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (*v1.TeamAccessKeys, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.Team, err error) + ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (*managementv1.TeamClusters, error) + ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (*managementv1.TeamAccessKeys, error) TeamExpansion } // teams implements TeamInterface type teams struct { - *gentype.ClientWithList[*v1.Team, *v1.TeamList] + *gentype.ClientWithList[*managementv1.Team, *managementv1.TeamList] } // newTeams returns a Teams func newTeams(c *ManagementV1Client) *teams { return &teams{ - gentype.NewClientWithList[*v1.Team, *v1.TeamList]( + gentype.NewClientWithList[*managementv1.Team, *managementv1.TeamList]( "teams", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Team { return &v1.Team{} }, - func() *v1.TeamList { return &v1.TeamList{} }), + func() *managementv1.Team { return &managementv1.Team{} }, + func() *managementv1.TeamList { return &managementv1.TeamList{} }, + ), } } -// ListClusters takes name of the team, and returns the corresponding v1.TeamClusters object, and an error if there is any. -func (c *teams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamClusters, err error) { - result = &v1.TeamClusters{} +// ListClusters takes name of the team, and returns the corresponding managementv1.TeamClusters object, and an error if there is any. +func (c *teams) ListClusters(ctx context.Context, teamName string, options metav1.GetOptions) (result *managementv1.TeamClusters, err error) { + result = &managementv1.TeamClusters{} err = c.GetClient().Get(). Resource("teams"). Name(teamName). @@ -68,9 +69,9 @@ func (c *teams) ListClusters(ctx context.Context, teamName string, options metav return } -// ListAccessKeys takes name of the team, and returns the corresponding v1.TeamAccessKeys object, and an error if there is any. -func (c *teams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *v1.TeamAccessKeys, err error) { - result = &v1.TeamAccessKeys{} +// ListAccessKeys takes name of the team, and returns the corresponding managementv1.TeamAccessKeys object, and an error if there is any. +func (c *teams) ListAccessKeys(ctx context.Context, teamName string, options metav1.GetOptions) (result *managementv1.TeamAccessKeys, err error) { + result = &managementv1.TeamAccessKeys{} err = c.GetClient().Get(). Resource("teams"). Name(teamName). diff --git a/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go b/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go index 1c2d89be..32f1d1c6 100644 --- a/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go +++ b/pkg/clientset/versioned/typed/management/v1/translatevclusterresourcename.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,38 @@ type TranslateVClusterResourceNamesGetter interface { // TranslateVClusterResourceNameInterface has methods to work with TranslateVClusterResourceName resources. type TranslateVClusterResourceNameInterface interface { - Create(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.CreateOptions) (*v1.TranslateVClusterResourceName, error) - Update(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*v1.TranslateVClusterResourceName, error) + Create(ctx context.Context, translateVClusterResourceName *managementv1.TranslateVClusterResourceName, opts metav1.CreateOptions) (*managementv1.TranslateVClusterResourceName, error) + Update(ctx context.Context, translateVClusterResourceName *managementv1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*managementv1.TranslateVClusterResourceName, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, translateVClusterResourceName *v1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*v1.TranslateVClusterResourceName, error) + UpdateStatus(ctx context.Context, translateVClusterResourceName *managementv1.TranslateVClusterResourceName, opts metav1.UpdateOptions) (*managementv1.TranslateVClusterResourceName, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TranslateVClusterResourceName, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.TranslateVClusterResourceNameList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.TranslateVClusterResourceName, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.TranslateVClusterResourceNameList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TranslateVClusterResourceName, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.TranslateVClusterResourceName, err error) TranslateVClusterResourceNameExpansion } // translateVClusterResourceNames implements TranslateVClusterResourceNameInterface type translateVClusterResourceNames struct { - *gentype.ClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList] + *gentype.ClientWithList[*managementv1.TranslateVClusterResourceName, *managementv1.TranslateVClusterResourceNameList] } // newTranslateVClusterResourceNames returns a TranslateVClusterResourceNames func newTranslateVClusterResourceNames(c *ManagementV1Client) *translateVClusterResourceNames { return &translateVClusterResourceNames{ - gentype.NewClientWithList[*v1.TranslateVClusterResourceName, *v1.TranslateVClusterResourceNameList]( + gentype.NewClientWithList[*managementv1.TranslateVClusterResourceName, *managementv1.TranslateVClusterResourceNameList]( "translatevclusterresourcenames", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.TranslateVClusterResourceName { return &v1.TranslateVClusterResourceName{} }, - func() *v1.TranslateVClusterResourceNameList { return &v1.TranslateVClusterResourceNameList{} }), + func() *managementv1.TranslateVClusterResourceName { + return &managementv1.TranslateVClusterResourceName{} + }, + func() *managementv1.TranslateVClusterResourceNameList { + return &managementv1.TranslateVClusterResourceNameList{} + }, + ), } } diff --git a/pkg/clientset/versioned/typed/management/v1/user.go b/pkg/clientset/versioned/typed/management/v1/user.go index b381fa90..da24f6b0 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,45 @@ 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) + 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 +70,9 @@ 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{} +// 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 +83,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 cc7cf23f..d35dce3c 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,42 +21,43 @@ type VirtualClusterInstancesGetter interface { // VirtualClusterInstanceInterface has methods to work with VirtualClusterInstance resources. type VirtualClusterInstanceInterface interface { - Create(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.CreateOptions) (*v1.VirtualClusterInstance, error) - Update(ctx context.Context, virtualClusterInstance *v1.VirtualClusterInstance, opts metav1.UpdateOptions) (*v1.VirtualClusterInstance, error) + Create(ctx context.Context, virtualClusterInstance *managementv1.VirtualClusterInstance, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstance, error) + Update(ctx context.Context, virtualClusterInstance *managementv1.VirtualClusterInstance, opts metav1.UpdateOptions) (*managementv1.VirtualClusterInstance, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VirtualClusterInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VirtualClusterInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.VirtualClusterInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.VirtualClusterInstanceList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualClusterInstance, err error) - GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *v1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (*v1.VirtualClusterInstanceKubeConfig, error) - GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (*v1.VirtualClusterAccessKey, error) - GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *v1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (*v1.VirtualClusterExternalDatabase, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.VirtualClusterInstance, err error) + GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *managementv1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstanceKubeConfig, error) + GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (*managementv1.VirtualClusterAccessKey, error) + GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *managementv1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (*managementv1.VirtualClusterExternalDatabase, error) VirtualClusterInstanceExpansion } // virtualClusterInstances implements VirtualClusterInstanceInterface type virtualClusterInstances struct { - *gentype.ClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList] + *gentype.ClientWithList[*managementv1.VirtualClusterInstance, *managementv1.VirtualClusterInstanceList] } // newVirtualClusterInstances returns a VirtualClusterInstances func newVirtualClusterInstances(c *ManagementV1Client, namespace string) *virtualClusterInstances { return &virtualClusterInstances{ - gentype.NewClientWithList[*v1.VirtualClusterInstance, *v1.VirtualClusterInstanceList]( + gentype.NewClientWithList[*managementv1.VirtualClusterInstance, *managementv1.VirtualClusterInstanceList]( "virtualclusterinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.VirtualClusterInstance { return &v1.VirtualClusterInstance{} }, - func() *v1.VirtualClusterInstanceList { return &v1.VirtualClusterInstanceList{} }), + func() *managementv1.VirtualClusterInstance { return &managementv1.VirtualClusterInstance{} }, + func() *managementv1.VirtualClusterInstanceList { return &managementv1.VirtualClusterInstanceList{} }, + ), } } // GetKubeConfig takes the representation of a virtualClusterInstanceKubeConfig and creates it. Returns the server's representation of the virtualClusterInstanceKubeConfig, and an error, if there is any. -func (c *virtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *v1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (result *v1.VirtualClusterInstanceKubeConfig, err error) { - result = &v1.VirtualClusterInstanceKubeConfig{} +func (c *virtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceKubeConfig *managementv1.VirtualClusterInstanceKubeConfig, opts metav1.CreateOptions) (result *managementv1.VirtualClusterInstanceKubeConfig, err error) { + result = &managementv1.VirtualClusterInstanceKubeConfig{} err = c.GetClient().Post(). Namespace(c.GetNamespace()). Resource("virtualclusterinstances"). @@ -69,9 +70,9 @@ func (c *virtualClusterInstances) GetKubeConfig(ctx context.Context, virtualClus return } -// GetAccessKey takes name of the virtualClusterInstance, and returns the corresponding v1.VirtualClusterAccessKey object, and an error if there is any. -func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (result *v1.VirtualClusterAccessKey, err error) { - result = &v1.VirtualClusterAccessKey{} +// GetAccessKey takes name of the virtualClusterInstance, and returns the corresponding managementv1.VirtualClusterAccessKey object, and an error if there is any. +func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClusterInstanceName string, options metav1.GetOptions) (result *managementv1.VirtualClusterAccessKey, err error) { + result = &managementv1.VirtualClusterAccessKey{} err = c.GetClient().Get(). Namespace(c.GetNamespace()). Resource("virtualclusterinstances"). @@ -84,8 +85,8 @@ func (c *virtualClusterInstances) GetAccessKey(ctx context.Context, virtualClust } // 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 *v1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (result *v1.VirtualClusterExternalDatabase, err error) { - result = &v1.VirtualClusterExternalDatabase{} +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"). diff --git a/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go b/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go index 6f861cc7..a86b5883 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclustertemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type VirtualClusterTemplatesGetter interface { // VirtualClusterTemplateInterface has methods to work with VirtualClusterTemplate resources. type VirtualClusterTemplateInterface interface { - Create(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.CreateOptions) (*v1.VirtualClusterTemplate, error) - Update(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*v1.VirtualClusterTemplate, error) + Create(ctx context.Context, virtualClusterTemplate *managementv1.VirtualClusterTemplate, opts metav1.CreateOptions) (*managementv1.VirtualClusterTemplate, error) + Update(ctx context.Context, virtualClusterTemplate *managementv1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*managementv1.VirtualClusterTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, virtualClusterTemplate *v1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*v1.VirtualClusterTemplate, error) + UpdateStatus(ctx context.Context, virtualClusterTemplate *managementv1.VirtualClusterTemplate, opts metav1.UpdateOptions) (*managementv1.VirtualClusterTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.VirtualClusterTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.VirtualClusterTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.VirtualClusterTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.VirtualClusterTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.VirtualClusterTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.VirtualClusterTemplate, err error) VirtualClusterTemplateExpansion } // virtualClusterTemplates implements VirtualClusterTemplateInterface type virtualClusterTemplates struct { - *gentype.ClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList] + *gentype.ClientWithList[*managementv1.VirtualClusterTemplate, *managementv1.VirtualClusterTemplateList] } // newVirtualClusterTemplates returns a VirtualClusterTemplates func newVirtualClusterTemplates(c *ManagementV1Client) *virtualClusterTemplates { return &virtualClusterTemplates{ - gentype.NewClientWithList[*v1.VirtualClusterTemplate, *v1.VirtualClusterTemplateList]( + gentype.NewClientWithList[*managementv1.VirtualClusterTemplate, *managementv1.VirtualClusterTemplateList]( "virtualclustertemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.VirtualClusterTemplate { return &v1.VirtualClusterTemplate{} }, - func() *v1.VirtualClusterTemplateList { return &v1.VirtualClusterTemplateList{} }), + func() *managementv1.VirtualClusterTemplate { return &managementv1.VirtualClusterTemplate{} }, + func() *managementv1.VirtualClusterTemplateList { return &managementv1.VirtualClusterTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/accesskey.go b/pkg/clientset/versioned/typed/storage/v1/accesskey.go index 1a5fb0a9..7a130c71 100644 --- a/pkg/clientset/versioned/typed/storage/v1/accesskey.go +++ b/pkg/clientset/versioned/typed/storage/v1/accesskey.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type AccessKeysGetter interface { // AccessKeyInterface has methods to work with AccessKey resources. type AccessKeyInterface interface { - Create(ctx context.Context, accessKey *v1.AccessKey, opts metav1.CreateOptions) (*v1.AccessKey, error) - Update(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (*v1.AccessKey, error) + Create(ctx context.Context, accessKey *storagev1.AccessKey, opts metav1.CreateOptions) (*storagev1.AccessKey, error) + Update(ctx context.Context, accessKey *storagev1.AccessKey, opts metav1.UpdateOptions) (*storagev1.AccessKey, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (*v1.AccessKey, error) + UpdateStatus(ctx context.Context, accessKey *storagev1.AccessKey, opts metav1.UpdateOptions) (*storagev1.AccessKey, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.AccessKey, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AccessKeyList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.AccessKey, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.AccessKeyList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AccessKey, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.AccessKey, err error) AccessKeyExpansion } // accessKeys implements AccessKeyInterface type accessKeys struct { - *gentype.ClientWithList[*v1.AccessKey, *v1.AccessKeyList] + *gentype.ClientWithList[*storagev1.AccessKey, *storagev1.AccessKeyList] } // newAccessKeys returns a AccessKeys func newAccessKeys(c *StorageV1Client) *accessKeys { return &accessKeys{ - gentype.NewClientWithList[*v1.AccessKey, *v1.AccessKeyList]( + gentype.NewClientWithList[*storagev1.AccessKey, *storagev1.AccessKeyList]( "accesskeys", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.AccessKey { return &v1.AccessKey{} }, - func() *v1.AccessKeyList { return &v1.AccessKeyList{} }), + func() *storagev1.AccessKey { return &storagev1.AccessKey{} }, + func() *storagev1.AccessKeyList { return &storagev1.AccessKeyList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/app.go b/pkg/clientset/versioned/typed/storage/v1/app.go index 0552673a..983430f0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/app.go +++ b/pkg/clientset/versioned/typed/storage/v1/app.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type AppsGetter interface { // AppInterface has methods to work with App resources. type AppInterface interface { - Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (*v1.App, error) - Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (*v1.App, error) + Create(ctx context.Context, app *storagev1.App, opts metav1.CreateOptions) (*storagev1.App, error) + Update(ctx context.Context, app *storagev1.App, opts metav1.UpdateOptions) (*storagev1.App, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (*v1.App, error) + UpdateStatus(ctx context.Context, app *storagev1.App, opts metav1.UpdateOptions) (*storagev1.App, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.App, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.AppList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.App, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.AppList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.App, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.App, err error) AppExpansion } // apps implements AppInterface type apps struct { - *gentype.ClientWithList[*v1.App, *v1.AppList] + *gentype.ClientWithList[*storagev1.App, *storagev1.AppList] } // newApps returns a Apps func newApps(c *StorageV1Client) *apps { return &apps{ - gentype.NewClientWithList[*v1.App, *v1.AppList]( + gentype.NewClientWithList[*storagev1.App, *storagev1.AppList]( "apps", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.App { return &v1.App{} }, - func() *v1.AppList { return &v1.AppList{} }), + func() *storagev1.App { return &storagev1.App{} }, + func() *storagev1.AppList { return &storagev1.AppList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/cluster.go b/pkg/clientset/versioned/typed/storage/v1/cluster.go index 337d1059..b0bfd4ba 100644 --- a/pkg/clientset/versioned/typed/storage/v1/cluster.go +++ b/pkg/clientset/versioned/typed/storage/v1/cluster.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClustersGetter interface { // ClusterInterface has methods to work with Cluster resources. type ClusterInterface interface { - Create(ctx context.Context, cluster *v1.Cluster, opts metav1.CreateOptions) (*v1.Cluster, error) - Update(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (*v1.Cluster, error) + Create(ctx context.Context, cluster *storagev1.Cluster, opts metav1.CreateOptions) (*storagev1.Cluster, error) + Update(ctx context.Context, cluster *storagev1.Cluster, opts metav1.UpdateOptions) (*storagev1.Cluster, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (*v1.Cluster, error) + UpdateStatus(ctx context.Context, cluster *storagev1.Cluster, opts metav1.UpdateOptions) (*storagev1.Cluster, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Cluster, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.Cluster, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ClusterList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Cluster, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.Cluster, err error) ClusterExpansion } // clusters implements ClusterInterface type clusters struct { - *gentype.ClientWithList[*v1.Cluster, *v1.ClusterList] + *gentype.ClientWithList[*storagev1.Cluster, *storagev1.ClusterList] } // newClusters returns a Clusters func newClusters(c *StorageV1Client) *clusters { return &clusters{ - gentype.NewClientWithList[*v1.Cluster, *v1.ClusterList]( + gentype.NewClientWithList[*storagev1.Cluster, *storagev1.ClusterList]( "clusters", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Cluster { return &v1.Cluster{} }, - func() *v1.ClusterList { return &v1.ClusterList{} }), + func() *storagev1.Cluster { return &storagev1.Cluster{} }, + func() *storagev1.ClusterList { return &storagev1.ClusterList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go b/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go index f12601cd..ca6553c3 100644 --- a/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go +++ b/pkg/clientset/versioned/typed/storage/v1/clusteraccess.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClusterAccessesGetter interface { // ClusterAccessInterface has methods to work with ClusterAccess resources. type ClusterAccessInterface interface { - Create(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.CreateOptions) (*v1.ClusterAccess, error) - Update(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (*v1.ClusterAccess, error) + Create(ctx context.Context, clusterAccess *storagev1.ClusterAccess, opts metav1.CreateOptions) (*storagev1.ClusterAccess, error) + Update(ctx context.Context, clusterAccess *storagev1.ClusterAccess, opts metav1.UpdateOptions) (*storagev1.ClusterAccess, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (*v1.ClusterAccess, error) + UpdateStatus(ctx context.Context, clusterAccess *storagev1.ClusterAccess, opts metav1.UpdateOptions) (*storagev1.ClusterAccess, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterAccess, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterAccessList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.ClusterAccess, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ClusterAccessList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterAccess, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.ClusterAccess, err error) ClusterAccessExpansion } // clusterAccesses implements ClusterAccessInterface type clusterAccesses struct { - *gentype.ClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList] + *gentype.ClientWithList[*storagev1.ClusterAccess, *storagev1.ClusterAccessList] } // newClusterAccesses returns a ClusterAccesses func newClusterAccesses(c *StorageV1Client) *clusterAccesses { return &clusterAccesses{ - gentype.NewClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList]( + gentype.NewClientWithList[*storagev1.ClusterAccess, *storagev1.ClusterAccessList]( "clusteraccesses", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterAccess { return &v1.ClusterAccess{} }, - func() *v1.ClusterAccessList { return &v1.ClusterAccessList{} }), + func() *storagev1.ClusterAccess { return &storagev1.ClusterAccess{} }, + func() *storagev1.ClusterAccessList { return &storagev1.ClusterAccessList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go b/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go index 584ed113..57b27ecd 100644 --- a/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/clusterroletemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type ClusterRoleTemplatesGetter interface { // ClusterRoleTemplateInterface has methods to work with ClusterRoleTemplate resources. type ClusterRoleTemplateInterface interface { - Create(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.CreateOptions) (*v1.ClusterRoleTemplate, error) - Update(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*v1.ClusterRoleTemplate, error) + Create(ctx context.Context, clusterRoleTemplate *storagev1.ClusterRoleTemplate, opts metav1.CreateOptions) (*storagev1.ClusterRoleTemplate, error) + Update(ctx context.Context, clusterRoleTemplate *storagev1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*storagev1.ClusterRoleTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*v1.ClusterRoleTemplate, error) + UpdateStatus(ctx context.Context, clusterRoleTemplate *storagev1.ClusterRoleTemplate, opts metav1.UpdateOptions) (*storagev1.ClusterRoleTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterRoleTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterRoleTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.ClusterRoleTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.ClusterRoleTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.ClusterRoleTemplate, err error) ClusterRoleTemplateExpansion } // clusterRoleTemplates implements ClusterRoleTemplateInterface type clusterRoleTemplates struct { - *gentype.ClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList] + *gentype.ClientWithList[*storagev1.ClusterRoleTemplate, *storagev1.ClusterRoleTemplateList] } // newClusterRoleTemplates returns a ClusterRoleTemplates func newClusterRoleTemplates(c *StorageV1Client) *clusterRoleTemplates { return &clusterRoleTemplates{ - gentype.NewClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList]( + gentype.NewClientWithList[*storagev1.ClusterRoleTemplate, *storagev1.ClusterRoleTemplateList]( "clusterroletemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.ClusterRoleTemplate { return &v1.ClusterRoleTemplate{} }, - func() *v1.ClusterRoleTemplateList { return &v1.ClusterRoleTemplateList{} }), + func() *storagev1.ClusterRoleTemplate { return &storagev1.ClusterRoleTemplate{} }, + func() *storagev1.ClusterRoleTemplateList { return &storagev1.ClusterRoleTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go index 4b73b5d0..82e3344a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type DevPodEnvironmentTemplatesGetter interface { // DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*v1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*v1.DevPodEnvironmentTemplate, error) + Create(ctx context.Context, devPodEnvironmentTemplate *storagev1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*storagev1.DevPodEnvironmentTemplate, error) + Update(ctx context.Context, devPodEnvironmentTemplate *storagev1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodEnvironmentTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodEnvironmentTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodEnvironmentTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodEnvironmentTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodEnvironmentTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodEnvironmentTemplate, err error) DevPodEnvironmentTemplateExpansion } // devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] + *gentype.ClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList] } // newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates func newDevPodEnvironmentTemplates(c *StorageV1Client) *devPodEnvironmentTemplates { return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( + gentype.NewClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList]( "devpodenvironmenttemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }), + func() *storagev1.DevPodEnvironmentTemplate { return &storagev1.DevPodEnvironmentTemplate{} }, + func() *storagev1.DevPodEnvironmentTemplateList { return &storagev1.DevPodEnvironmentTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go index 61aef3a4..84451677 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,31 +21,32 @@ type DevPodWorkspaceInstancesGetter interface { // DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*v1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceInstance, error) + Create(ctx context.Context, devPodWorkspaceInstance *storagev1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*storagev1.DevPodWorkspaceInstance, error) + Update(ctx context.Context, devPodWorkspaceInstance *storagev1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceInstance, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspaceInstanceList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceInstance, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspaceInstance, err error) DevPodWorkspaceInstanceExpansion } // devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] + *gentype.ClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList] } // newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances func newDevPodWorkspaceInstances(c *StorageV1Client, namespace string) *devPodWorkspaceInstances { return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( + gentype.NewClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList]( "devpodworkspaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }), + func() *storagev1.DevPodWorkspaceInstance { return &storagev1.DevPodWorkspaceInstance{} }, + func() *storagev1.DevPodWorkspaceInstanceList { return &storagev1.DevPodWorkspaceInstanceList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go index 6be3081f..377faf0f 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.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 DevPodWorkspacePresetsGetter interface { // DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. type DevPodWorkspacePresetInterface interface { - Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*v1.DevPodWorkspacePreset, error) - Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*v1.DevPodWorkspacePreset, error) + Create(ctx context.Context, devPodWorkspacePreset *storagev1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*storagev1.DevPodWorkspacePreset, error) + Update(ctx context.Context, devPodWorkspacePreset *storagev1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspacePreset, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspacePreset, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspacePresetList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspacePreset, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspacePresetList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspacePreset, err error) DevPodWorkspacePresetExpansion } // devPodWorkspacePresets implements DevPodWorkspacePresetInterface type devPodWorkspacePresets struct { - *gentype.ClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] + *gentype.ClientWithList[*storagev1.DevPodWorkspacePreset, *storagev1.DevPodWorkspacePresetList] } // newDevPodWorkspacePresets returns a DevPodWorkspacePresets func newDevPodWorkspacePresets(c *StorageV1Client) *devPodWorkspacePresets { return &devPodWorkspacePresets{ - gentype.NewClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( + gentype.NewClientWithList[*storagev1.DevPodWorkspacePreset, *storagev1.DevPodWorkspacePresetList]( "devpodworkspacepresets", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, - func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }), + func() *storagev1.DevPodWorkspacePreset { return &storagev1.DevPodWorkspacePreset{} }, + func() *storagev1.DevPodWorkspacePresetList { return &storagev1.DevPodWorkspacePresetList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go index 2cc63af1..a8e0836a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type DevPodWorkspaceTemplatesGetter interface { // DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*v1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + Create(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*storagev1.DevPodWorkspaceTemplate, error) + Update(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*v1.DevPodWorkspaceTemplate, error) + UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.DevPodWorkspaceTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspaceTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspaceTemplate, err error) DevPodWorkspaceTemplateExpansion } // devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] + *gentype.ClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList] } // newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates func newDevPodWorkspaceTemplates(c *StorageV1Client) *devPodWorkspaceTemplates { return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( + gentype.NewClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList]( "devpodworkspacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }), + func() *storagev1.DevPodWorkspaceTemplate { return &storagev1.DevPodWorkspaceTemplate{} }, + func() *storagev1.DevPodWorkspaceTemplateList { return &storagev1.DevPodWorkspaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go index cb5a5d5e..dc044e74 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_accesskey.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeAccessKeys implements AccessKeyInterface -type FakeAccessKeys struct { +// fakeAccessKeys implements AccessKeyInterface +type fakeAccessKeys struct { + *gentype.FakeClientWithList[*v1.AccessKey, *v1.AccessKeyList] Fake *FakeStorageV1 } -var accesskeysResource = v1.SchemeGroupVersion.WithResource("accesskeys") - -var accesskeysKind = v1.SchemeGroupVersion.WithKind("AccessKey") - -// Get takes name of the accessKey, and returns the corresponding accessKey object, and an error if there is any. -func (c *FakeAccessKeys) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(accesskeysResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// List takes label and field selectors, and returns the list of AccessKeys that match those selectors. -func (c *FakeAccessKeys) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AccessKeyList, err error) { - emptyResult := &v1.AccessKeyList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(accesskeysResource, accesskeysKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AccessKeyList{ListMeta: obj.(*v1.AccessKeyList).ListMeta} - for _, item := range obj.(*v1.AccessKeyList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested accessKeys. -func (c *FakeAccessKeys) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(accesskeysResource, opts)) -} - -// Create takes the representation of a accessKey and creates it. Returns the server's representation of the accessKey, and an error, if there is any. -func (c *FakeAccessKeys) Create(ctx context.Context, accessKey *v1.AccessKey, opts metav1.CreateOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(accesskeysResource, accessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// Update takes the representation of a accessKey and updates it. Returns the server's representation of the accessKey, and an error, if there is any. -func (c *FakeAccessKeys) Update(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(accesskeysResource, accessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeAccessKeys) UpdateStatus(ctx context.Context, accessKey *v1.AccessKey, opts metav1.UpdateOptions) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(accesskeysResource, "status", accessKey, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.AccessKey), err -} - -// Delete takes name of the accessKey and deletes it. Returns an error if one occurs. -func (c *FakeAccessKeys) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(accesskeysResource, name, opts), &v1.AccessKey{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeAccessKeys) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(accesskeysResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AccessKeyList{}) - return err -} - -// Patch applies the patch and returns the patched accessKey. -func (c *FakeAccessKeys) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.AccessKey, err error) { - emptyResult := &v1.AccessKey{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(accesskeysResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeAccessKeys(fake *FakeStorageV1) storagev1.AccessKeyInterface { + return &fakeAccessKeys{ + gentype.NewFakeClientWithList[*v1.AccessKey, *v1.AccessKeyList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("accesskeys"), + v1.SchemeGroupVersion.WithKind("AccessKey"), + func() *v1.AccessKey { return &v1.AccessKey{} }, + func() *v1.AccessKeyList { return &v1.AccessKeyList{} }, + func(dst, src *v1.AccessKeyList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AccessKeyList) []*v1.AccessKey { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AccessKeyList, items []*v1.AccessKey) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.AccessKey), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go index b7fe58fd..c09c2f88 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_app.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeApps implements AppInterface -type FakeApps struct { +// fakeApps implements AppInterface +type fakeApps struct { + *gentype.FakeClientWithList[*v1.App, *v1.AppList] Fake *FakeStorageV1 } -var appsResource = v1.SchemeGroupVersion.WithResource("apps") - -var appsKind = v1.SchemeGroupVersion.WithKind("App") - -// Get takes name of the app, and returns the corresponding app object, and an error if there is any. -func (c *FakeApps) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(appsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// List takes label and field selectors, and returns the list of Apps that match those selectors. -func (c *FakeApps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AppList, err error) { - emptyResult := &v1.AppList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(appsResource, appsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.AppList{ListMeta: obj.(*v1.AppList).ListMeta} - for _, item := range obj.(*v1.AppList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested apps. -func (c *FakeApps) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(appsResource, opts)) -} - -// Create takes the representation of a app and creates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Create(ctx context.Context, app *v1.App, opts metav1.CreateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Update takes the representation of a app and updates it. Returns the server's representation of the app, and an error, if there is any. -func (c *FakeApps) Update(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(appsResource, app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeApps) UpdateStatus(ctx context.Context, app *v1.App, opts metav1.UpdateOptions) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(appsResource, "status", app, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.App), err -} - -// Delete takes name of the app and deletes it. Returns an error if one occurs. -func (c *FakeApps) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(appsResource, name, opts), &v1.App{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeApps) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(appsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.AppList{}) - return err -} - -// Patch applies the patch and returns the patched app. -func (c *FakeApps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.App, err error) { - emptyResult := &v1.App{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(appsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeApps(fake *FakeStorageV1) storagev1.AppInterface { + return &fakeApps{ + gentype.NewFakeClientWithList[*v1.App, *v1.AppList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("apps"), + v1.SchemeGroupVersion.WithKind("App"), + func() *v1.App { return &v1.App{} }, + func() *v1.AppList { return &v1.AppList{} }, + func(dst, src *v1.AppList) { dst.ListMeta = src.ListMeta }, + func(list *v1.AppList) []*v1.App { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.AppList, items []*v1.App) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.App), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go index db367f66..ef97f699 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_cluster.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusters implements ClusterInterface -type FakeClusters struct { +// fakeClusters implements ClusterInterface +type fakeClusters struct { + *gentype.FakeClientWithList[*v1.Cluster, *v1.ClusterList] Fake *FakeStorageV1 } -var clustersResource = v1.SchemeGroupVersion.WithResource("clusters") - -var clustersKind = v1.SchemeGroupVersion.WithKind("Cluster") - -// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any. -func (c *FakeClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clustersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// List takes label and field selectors, and returns the list of Clusters that match those selectors. -func (c *FakeClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterList, err error) { - emptyResult := &v1.ClusterList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clustersResource, clustersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterList{ListMeta: obj.(*v1.ClusterList).ListMeta} - for _, item := range obj.(*v1.ClusterList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusters. -func (c *FakeClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clustersResource, opts)) -} - -// Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Create(ctx context.Context, cluster *v1.Cluster, opts metav1.CreateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clustersResource, cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any. -func (c *FakeClusters) Update(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clustersResource, cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1.Cluster, opts metav1.UpdateOptions) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clustersResource, "status", cluster, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.Cluster), err -} - -// Delete takes name of the cluster and deletes it. Returns an error if one occurs. -func (c *FakeClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clustersResource, name, opts), &v1.Cluster{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clustersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterList{}) - return err -} - -// Patch applies the patch and returns the patched cluster. -func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Cluster, err error) { - emptyResult := &v1.Cluster{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clustersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusters(fake *FakeStorageV1) storagev1.ClusterInterface { + return &fakeClusters{ + gentype.NewFakeClientWithList[*v1.Cluster, *v1.ClusterList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusters"), + v1.SchemeGroupVersion.WithKind("Cluster"), + func() *v1.Cluster { return &v1.Cluster{} }, + func() *v1.ClusterList { return &v1.ClusterList{} }, + func(dst, src *v1.ClusterList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterList) []*v1.Cluster { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterList, items []*v1.Cluster) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Cluster), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go index e2ab2605..66063e69 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusteraccess.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusterAccesses implements ClusterAccessInterface -type FakeClusterAccesses struct { +// fakeClusterAccesses implements ClusterAccessInterface +type fakeClusterAccesses struct { + *gentype.FakeClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList] Fake *FakeStorageV1 } -var clusteraccessesResource = v1.SchemeGroupVersion.WithResource("clusteraccesses") - -var clusteraccessesKind = v1.SchemeGroupVersion.WithKind("ClusterAccess") - -// Get takes name of the clusterAccess, and returns the corresponding clusterAccess object, and an error if there is any. -func (c *FakeClusterAccesses) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clusteraccessesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// List takes label and field selectors, and returns the list of ClusterAccesses that match those selectors. -func (c *FakeClusterAccesses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterAccessList, err error) { - emptyResult := &v1.ClusterAccessList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clusteraccessesResource, clusteraccessesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterAccessList{ListMeta: obj.(*v1.ClusterAccessList).ListMeta} - for _, item := range obj.(*v1.ClusterAccessList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusterAccesses. -func (c *FakeClusterAccesses) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clusteraccessesResource, opts)) -} - -// Create takes the representation of a clusterAccess and creates it. Returns the server's representation of the clusterAccess, and an error, if there is any. -func (c *FakeClusterAccesses) Create(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.CreateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clusteraccessesResource, clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// Update takes the representation of a clusterAccess and updates it. Returns the server's representation of the clusterAccess, and an error, if there is any. -func (c *FakeClusterAccesses) Update(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clusteraccessesResource, clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusterAccesses) UpdateStatus(ctx context.Context, clusterAccess *v1.ClusterAccess, opts metav1.UpdateOptions) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusteraccessesResource, "status", clusterAccess, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterAccess), err -} - -// Delete takes name of the clusterAccess and deletes it. Returns an error if one occurs. -func (c *FakeClusterAccesses) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clusteraccessesResource, name, opts), &v1.ClusterAccess{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterAccesses) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clusteraccessesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterAccessList{}) - return err -} - -// Patch applies the patch and returns the patched clusterAccess. -func (c *FakeClusterAccesses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterAccess, err error) { - emptyResult := &v1.ClusterAccess{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusteraccessesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterAccesses(fake *FakeStorageV1) storagev1.ClusterAccessInterface { + return &fakeClusterAccesses{ + gentype.NewFakeClientWithList[*v1.ClusterAccess, *v1.ClusterAccessList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusteraccesses"), + v1.SchemeGroupVersion.WithKind("ClusterAccess"), + func() *v1.ClusterAccess { return &v1.ClusterAccess{} }, + func() *v1.ClusterAccessList { return &v1.ClusterAccessList{} }, + func(dst, src *v1.ClusterAccessList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterAccessList) []*v1.ClusterAccess { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.ClusterAccessList, items []*v1.ClusterAccess) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterAccess), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go index 3c20596b..c0558d54 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_clusterroletemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeClusterRoleTemplates implements ClusterRoleTemplateInterface -type FakeClusterRoleTemplates struct { +// fakeClusterRoleTemplates implements ClusterRoleTemplateInterface +type fakeClusterRoleTemplates struct { + *gentype.FakeClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList] Fake *FakeStorageV1 } -var clusterroletemplatesResource = v1.SchemeGroupVersion.WithResource("clusterroletemplates") - -var clusterroletemplatesKind = v1.SchemeGroupVersion.WithKind("ClusterRoleTemplate") - -// Get takes name of the clusterRoleTemplate, and returns the corresponding clusterRoleTemplate object, and an error if there is any. -func (c *FakeClusterRoleTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(clusterroletemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// List takes label and field selectors, and returns the list of ClusterRoleTemplates that match those selectors. -func (c *FakeClusterRoleTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleTemplateList, err error) { - emptyResult := &v1.ClusterRoleTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(clusterroletemplatesResource, clusterroletemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.ClusterRoleTemplateList{ListMeta: obj.(*v1.ClusterRoleTemplateList).ListMeta} - for _, item := range obj.(*v1.ClusterRoleTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested clusterRoleTemplates. -func (c *FakeClusterRoleTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(clusterroletemplatesResource, opts)) -} - -// Create takes the representation of a clusterRoleTemplate and creates it. Returns the server's representation of the clusterRoleTemplate, and an error, if there is any. -func (c *FakeClusterRoleTemplates) Create(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.CreateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(clusterroletemplatesResource, clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// Update takes the representation of a clusterRoleTemplate and updates it. Returns the server's representation of the clusterRoleTemplate, and an error, if there is any. -func (c *FakeClusterRoleTemplates) Update(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(clusterroletemplatesResource, clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeClusterRoleTemplates) UpdateStatus(ctx context.Context, clusterRoleTemplate *v1.ClusterRoleTemplate, opts metav1.UpdateOptions) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(clusterroletemplatesResource, "status", clusterRoleTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.ClusterRoleTemplate), err -} - -// Delete takes name of the clusterRoleTemplate and deletes it. Returns an error if one occurs. -func (c *FakeClusterRoleTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(clusterroletemplatesResource, name, opts), &v1.ClusterRoleTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeClusterRoleTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(clusterroletemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.ClusterRoleTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched clusterRoleTemplate. -func (c *FakeClusterRoleTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleTemplate, err error) { - emptyResult := &v1.ClusterRoleTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(clusterroletemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeClusterRoleTemplates(fake *FakeStorageV1) storagev1.ClusterRoleTemplateInterface { + return &fakeClusterRoleTemplates{ + gentype.NewFakeClientWithList[*v1.ClusterRoleTemplate, *v1.ClusterRoleTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("clusterroletemplates"), + v1.SchemeGroupVersion.WithKind("ClusterRoleTemplate"), + func() *v1.ClusterRoleTemplate { return &v1.ClusterRoleTemplate{} }, + func() *v1.ClusterRoleTemplateList { return &v1.ClusterRoleTemplateList{} }, + func(dst, src *v1.ClusterRoleTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.ClusterRoleTemplateList) []*v1.ClusterRoleTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.ClusterRoleTemplateList, items []*v1.ClusterRoleTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.ClusterRoleTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go index 544701ea..41728901 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go @@ -3,108 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type FakeDevPodEnvironmentTemplates struct { +// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface +type fakeDevPodEnvironmentTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] Fake *FakeStorageV1 } -var devpodenvironmenttemplatesResource = v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates") - -var devpodenvironmenttemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate") - -// Get takes name of the devPodEnvironmentTemplate, and returns the corresponding devPodEnvironmentTemplate object, and an error if there is any. -func (c *FakeDevPodEnvironmentTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodenvironmenttemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodEnvironmentTemplates that match those selectors. -func (c *FakeDevPodEnvironmentTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodEnvironmentTemplateList, err error) { - emptyResult := &v1.DevPodEnvironmentTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodenvironmenttemplatesResource, devpodenvironmenttemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodEnvironmentTemplateList{ListMeta: obj.(*v1.DevPodEnvironmentTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodEnvironmentTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodEnvironmentTemplates. -func (c *FakeDevPodEnvironmentTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodenvironmenttemplatesResource, opts)) -} - -// Create takes the representation of a devPodEnvironmentTemplate and creates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Create(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Update takes the representation of a devPodEnvironmentTemplate and updates it. Returns the server's representation of the devPodEnvironmentTemplate, and an error, if there is any. -func (c *FakeDevPodEnvironmentTemplates) Update(ctx context.Context, devPodEnvironmentTemplate *v1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodenvironmenttemplatesResource, devPodEnvironmentTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodEnvironmentTemplate), err -} - -// Delete takes name of the devPodEnvironmentTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodEnvironmentTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodenvironmenttemplatesResource, name, opts), &v1.DevPodEnvironmentTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodEnvironmentTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodenvironmenttemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodEnvironmentTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodEnvironmentTemplate. -func (c *FakeDevPodEnvironmentTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodEnvironmentTemplate, err error) { - emptyResult := &v1.DevPodEnvironmentTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodenvironmenttemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDevPodEnvironmentTemplates(fake *FakeStorageV1) storagev1.DevPodEnvironmentTemplateInterface { + return &fakeDevPodEnvironmentTemplates{ + gentype.NewFakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"), + v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate"), + func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, + func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }, + func(dst, src *v1.DevPodEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodEnvironmentTemplateList) []*v1.DevPodEnvironmentTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodEnvironmentTemplateList, items []*v1.DevPodEnvironmentTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodEnvironmentTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go index b840f2cf..cd6bc8c9 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go @@ -3,116 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type FakeDevPodWorkspaceInstances struct { +// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface +type fakeDevPodWorkspaceInstances struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] Fake *FakeStorageV1 - ns string -} - -var devpodworkspaceinstancesResource = v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances") - -var devpodworkspaceinstancesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance") - -// Get takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstance object, and an error if there is any. -func (c *FakeDevPodWorkspaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceInstances that match those selectors. -func (c *FakeDevPodWorkspaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceInstanceList, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(devpodworkspaceinstancesResource, devpodworkspaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceInstanceList{ListMeta: obj.(*v1.DevPodWorkspaceInstanceList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceInstances. -func (c *FakeDevPodWorkspaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a devPodWorkspaceInstance and creates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Create(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Update takes the representation of a devPodWorkspaceInstance and updates it. Returns the server's representation of the devPodWorkspaceInstance, and an error, if there is any. -func (c *FakeDevPodWorkspaceInstances) Update(ctx context.Context, devPodWorkspaceInstance *v1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(devpodworkspaceinstancesResource, c.ns, devPodWorkspaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstance), err -} - -// Delete takes name of the devPodWorkspaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, opts), &v1.DevPodWorkspaceInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(devpodworkspaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceInstance. -func (c *FakeDevPodWorkspaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceInstance, err error) { - emptyResult := &v1.DevPodWorkspaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(devpodworkspaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeDevPodWorkspaceInstances(fake *FakeStorageV1, namespace string) storagev1.DevPodWorkspaceInstanceInterface { + return &fakeDevPodWorkspaceInstances{ + gentype.NewFakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"), + v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance"), + func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, + func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }, + func(dst, src *v1.DevPodWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodWorkspaceInstanceList) []*v1.DevPodWorkspaceInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodWorkspaceInstanceList, items []*v1.DevPodWorkspaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodWorkspaceInstance), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go index 12467c2b..4b58da69 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go @@ -3,108 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface -type FakeDevPodWorkspacePresets struct { +// fakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface +type fakeDevPodWorkspacePresets struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] Fake *FakeStorageV1 } -var devpodworkspacepresetsResource = v1.SchemeGroupVersion.WithResource("devpodworkspacepresets") - -var devpodworkspacepresetsKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset") - -// Get takes name of the devPodWorkspacePreset, and returns the corresponding devPodWorkspacePreset object, and an error if there is any. -func (c *FakeDevPodWorkspacePresets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodworkspacepresetsResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspacePresets that match those selectors. -func (c *FakeDevPodWorkspacePresets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspacePresetList, err error) { - emptyResult := &v1.DevPodWorkspacePresetList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodworkspacepresetsResource, devpodworkspacepresetsKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspacePresetList{ListMeta: obj.(*v1.DevPodWorkspacePresetList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspacePresetList).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 devPodWorkspacePresets. -func (c *FakeDevPodWorkspacePresets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacepresetsResource, opts)) -} - -// Create takes the representation of a devPodWorkspacePreset and creates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. -func (c *FakeDevPodWorkspacePresets) Create(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.CreateOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), err -} - -// Update takes the representation of a devPodWorkspacePreset and updates it. Returns the server's representation of the devPodWorkspacePreset, and an error, if there is any. -func (c *FakeDevPodWorkspacePresets) Update(ctx context.Context, devPodWorkspacePreset *v1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacepresetsResource, devPodWorkspacePreset, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspacePreset), err -} - -// Delete takes name of the devPodWorkspacePreset and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspacePresets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacepresetsResource, name, opts), &v1.DevPodWorkspacePreset{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspacePresets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacepresetsResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspacePresetList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspacePreset. -func (c *FakeDevPodWorkspacePresets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspacePreset, err error) { - emptyResult := &v1.DevPodWorkspacePreset{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacepresetsResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDevPodWorkspacePresets(fake *FakeStorageV1) storagev1.DevPodWorkspacePresetInterface { + return &fakeDevPodWorkspacePresets{ + gentype.NewFakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"), + v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset"), + func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, + func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }, + func(dst, src *v1.DevPodWorkspacePresetList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodWorkspacePresetList) []*v1.DevPodWorkspacePreset { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodWorkspacePresetList, items []*v1.DevPodWorkspacePreset) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodWorkspacePreset), 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 index 206574ce..2d81aab0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go @@ -3,120 +3,34 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type FakeDevPodWorkspaceTemplates struct { +// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface +type fakeDevPodWorkspaceTemplates struct { + *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] Fake *FakeStorageV1 } -var devpodworkspacetemplatesResource = v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates") - -var devpodworkspacetemplatesKind = v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate") - -// Get takes name of the devPodWorkspaceTemplate, and returns the corresponding devPodWorkspaceTemplate object, and an error if there is any. -func (c *FakeDevPodWorkspaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(devpodworkspacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// List takes label and field selectors, and returns the list of DevPodWorkspaceTemplates that match those selectors. -func (c *FakeDevPodWorkspaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DevPodWorkspaceTemplateList, err error) { - emptyResult := &v1.DevPodWorkspaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(devpodworkspacetemplatesResource, devpodworkspacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.DevPodWorkspaceTemplateList{ListMeta: obj.(*v1.DevPodWorkspaceTemplateList).ListMeta} - for _, item := range obj.(*v1.DevPodWorkspaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested devPodWorkspaceTemplates. -func (c *FakeDevPodWorkspaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(devpodworkspacetemplatesResource, opts)) -} - -// Create takes the representation of a devPodWorkspaceTemplate and creates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Create(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Update takes the representation of a devPodWorkspaceTemplate and updates it. Returns the server's representation of the devPodWorkspaceTemplate, and an error, if there is any. -func (c *FakeDevPodWorkspaceTemplates) Update(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(devpodworkspacetemplatesResource, devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeDevPodWorkspaceTemplates) UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *v1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(devpodworkspacetemplatesResource, "status", devPodWorkspaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceTemplate), err -} - -// Delete takes name of the devPodWorkspaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeDevPodWorkspaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(devpodworkspacetemplatesResource, name, opts), &v1.DevPodWorkspaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeDevPodWorkspaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(devpodworkspacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.DevPodWorkspaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched devPodWorkspaceTemplate. -func (c *FakeDevPodWorkspaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DevPodWorkspaceTemplate, err error) { - emptyResult := &v1.DevPodWorkspaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(devpodworkspacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeDevPodWorkspaceTemplates(fake *FakeStorageV1) storagev1.DevPodWorkspaceTemplateInterface { + return &fakeDevPodWorkspaceTemplates{ + gentype.NewFakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"), + v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate"), + func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, + func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }, + func(dst, src *v1.DevPodWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevPodWorkspaceTemplateList) []*v1.DevPodWorkspaceTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevPodWorkspaceTemplateList, items []*v1.DevPodWorkspaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.DevPodWorkspaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go index 87737e36..418051c0 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_networkpeer.go @@ -3,120 +3,30 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeNetworkPeers implements NetworkPeerInterface -type FakeNetworkPeers struct { +// fakeNetworkPeers implements NetworkPeerInterface +type fakeNetworkPeers struct { + *gentype.FakeClientWithList[*v1.NetworkPeer, *v1.NetworkPeerList] Fake *FakeStorageV1 } -var networkpeersResource = v1.SchemeGroupVersion.WithResource("networkpeers") - -var networkpeersKind = v1.SchemeGroupVersion.WithKind("NetworkPeer") - -// Get takes name of the networkPeer, and returns the corresponding networkPeer object, and an error if there is any. -func (c *FakeNetworkPeers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(networkpeersResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// List takes label and field selectors, and returns the list of NetworkPeers that match those selectors. -func (c *FakeNetworkPeers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPeerList, err error) { - emptyResult := &v1.NetworkPeerList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(networkpeersResource, networkpeersKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.NetworkPeerList{ListMeta: obj.(*v1.NetworkPeerList).ListMeta} - for _, item := range obj.(*v1.NetworkPeerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested networkPeers. -func (c *FakeNetworkPeers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(networkpeersResource, opts)) -} - -// Create takes the representation of a networkPeer and creates it. Returns the server's representation of the networkPeer, and an error, if there is any. -func (c *FakeNetworkPeers) Create(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.CreateOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(networkpeersResource, networkPeer, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// Update takes the representation of a networkPeer and updates it. Returns the server's representation of the networkPeer, and an error, if there is any. -func (c *FakeNetworkPeers) Update(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.UpdateOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(networkpeersResource, networkPeer, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeNetworkPeers) UpdateStatus(ctx context.Context, networkPeer *v1.NetworkPeer, opts metav1.UpdateOptions) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(networkpeersResource, "status", networkPeer, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.NetworkPeer), err -} - -// Delete takes name of the networkPeer and deletes it. Returns an error if one occurs. -func (c *FakeNetworkPeers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(networkpeersResource, name, opts), &v1.NetworkPeer{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeNetworkPeers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(networkpeersResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.NetworkPeerList{}) - return err -} - -// Patch applies the patch and returns the patched networkPeer. -func (c *FakeNetworkPeers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.NetworkPeer, err error) { - emptyResult := &v1.NetworkPeer{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(networkpeersResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeNetworkPeers(fake *FakeStorageV1) storagev1.NetworkPeerInterface { + return &fakeNetworkPeers{ + gentype.NewFakeClientWithList[*v1.NetworkPeer, *v1.NetworkPeerList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("networkpeers"), + v1.SchemeGroupVersion.WithKind("NetworkPeer"), + func() *v1.NetworkPeer { return &v1.NetworkPeer{} }, + func() *v1.NetworkPeerList { return &v1.NetworkPeerList{} }, + func(dst, src *v1.NetworkPeerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NetworkPeerList) []*v1.NetworkPeer { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NetworkPeerList, items []*v1.NetworkPeer) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.NetworkPeer), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_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 index 3e1fe5e9..0c750ba1 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.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" ) -// FakeRunners implements RunnerInterface -type FakeRunners struct { +// fakeRunners implements RunnerInterface +type fakeRunners struct { + *gentype.FakeClientWithList[*v1.Runner, *v1.RunnerList] 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 +func newFakeRunners(fake *FakeStorageV1) storagev1.RunnerInterface { + return &fakeRunners{ + gentype.NewFakeClientWithList[*v1.Runner, *v1.RunnerList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("runners"), + v1.SchemeGroupVersion.WithKind("Runner"), + func() *v1.Runner { return &v1.Runner{} }, + func() *v1.RunnerList { return &v1.RunnerList{} }, + func(dst, src *v1.RunnerList) { dst.ListMeta = src.ListMeta }, + func(list *v1.RunnerList) []*v1.Runner { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.RunnerList, items []*v1.Runner) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, } - return obj.(*v1.Runner), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go index 33211d66..1f73b97b 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_sharedsecret.go @@ -3,129 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSharedSecrets implements SharedSecretInterface -type FakeSharedSecrets struct { +// fakeSharedSecrets implements SharedSecretInterface +type fakeSharedSecrets struct { + *gentype.FakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList] Fake *FakeStorageV1 - ns string -} - -var sharedsecretsResource = v1.SchemeGroupVersion.WithResource("sharedsecrets") - -var sharedsecretsKind = v1.SchemeGroupVersion.WithKind("SharedSecret") - -// Get takes name of the sharedSecret, and returns the corresponding sharedSecret object, and an error if there is any. -func (c *FakeSharedSecrets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(sharedsecretsResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// List takes label and field selectors, and returns the list of SharedSecrets that match those selectors. -func (c *FakeSharedSecrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SharedSecretList, err error) { - emptyResult := &v1.SharedSecretList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(sharedsecretsResource, sharedsecretsKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SharedSecretList{ListMeta: obj.(*v1.SharedSecretList).ListMeta} - for _, item := range obj.(*v1.SharedSecretList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested sharedSecrets. -func (c *FakeSharedSecrets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(sharedsecretsResource, c.ns, opts)) - -} - -// Create takes the representation of a sharedSecret and creates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Update takes the representation of a sharedSecret and updates it. Returns the server's representation of the sharedSecret, and an error, if there is any. -func (c *FakeSharedSecrets) Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(sharedsecretsResource, c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSharedSecrets) UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(sharedsecretsResource, "status", c.ns, sharedSecret, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SharedSecret), err -} - -// Delete takes name of the sharedSecret and deletes it. Returns an error if one occurs. -func (c *FakeSharedSecrets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(sharedsecretsResource, c.ns, name, opts), &v1.SharedSecret{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSharedSecrets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(sharedsecretsResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SharedSecretList{}) - return err -} - -// Patch applies the patch and returns the patched sharedSecret. -func (c *FakeSharedSecrets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SharedSecret, err error) { - emptyResult := &v1.SharedSecret{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(sharedsecretsResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSharedSecrets(fake *FakeStorageV1, namespace string) storagev1.SharedSecretInterface { + return &fakeSharedSecrets{ + gentype.NewFakeClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("sharedsecrets"), + v1.SchemeGroupVersion.WithKind("SharedSecret"), + func() *v1.SharedSecret { return &v1.SharedSecret{} }, + func() *v1.SharedSecretList { return &v1.SharedSecretList{} }, + func(dst, src *v1.SharedSecretList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SharedSecretList) []*v1.SharedSecret { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SharedSecretList, items []*v1.SharedSecret) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SharedSecret), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go index 8cca32f2..b07345d1 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spaceinstance.go @@ -3,129 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceInstances implements SpaceInstanceInterface -type FakeSpaceInstances struct { +// fakeSpaceInstances implements SpaceInstanceInterface +type fakeSpaceInstances struct { + *gentype.FakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] Fake *FakeStorageV1 - ns string -} - -var spaceinstancesResource = v1.SchemeGroupVersion.WithResource("spaceinstances") - -var spaceinstancesKind = v1.SchemeGroupVersion.WithKind("SpaceInstance") - -// Get takes name of the spaceInstance, and returns the corresponding spaceInstance object, and an error if there is any. -func (c *FakeSpaceInstances) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewGetActionWithOptions(spaceinstancesResource, c.ns, name, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// List takes label and field selectors, and returns the list of SpaceInstances that match those selectors. -func (c *FakeSpaceInstances) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceInstanceList, err error) { - emptyResult := &v1.SpaceInstanceList{} - obj, err := c.Fake. - Invokes(testing.NewListActionWithOptions(spaceinstancesResource, spaceinstancesKind, c.ns, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceInstanceList{ListMeta: obj.(*v1.SpaceInstanceList).ListMeta} - for _, item := range obj.(*v1.SpaceInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceInstances. -func (c *FakeSpaceInstances) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchActionWithOptions(spaceinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a spaceInstance and creates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewCreateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Update takes the representation of a spaceInstance and updates it. Returns the server's representation of the spaceInstance, and an error, if there is any. -func (c *FakeSpaceInstances) Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateActionWithOptions(spaceinstancesResource, c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSpaceInstances) UpdateStatus(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceActionWithOptions(spaceinstancesResource, "status", c.ns, spaceInstance, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceInstance), err -} - -// Delete takes name of the spaceInstance and deletes it. Returns an error if one occurs. -func (c *FakeSpaceInstances) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(spaceinstancesResource, c.ns, name, opts), &v1.SpaceInstance{}) - - return err } -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceInstances) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewDeleteCollectionActionWithOptions(spaceinstancesResource, c.ns, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched spaceInstance. -func (c *FakeSpaceInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceInstance, err error) { - emptyResult := &v1.SpaceInstance{} - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceActionWithOptions(spaceinstancesResource, c.ns, name, pt, data, opts, subresources...), emptyResult) - - if obj == nil { - return emptyResult, err +func newFakeSpaceInstances(fake *FakeStorageV1, namespace string) storagev1.SpaceInstanceInterface { + return &fakeSpaceInstances{ + gentype.NewFakeClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("spaceinstances"), + v1.SchemeGroupVersion.WithKind("SpaceInstance"), + func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, + func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }, + func(dst, src *v1.SpaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceInstanceList) []*v1.SpaceInstance { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceInstanceList, items []*v1.SpaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceInstance), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go index fc6e7b27..c194078a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_spacetemplate.go @@ -3,120 +3,32 @@ package fake import ( - "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" ) -// FakeSpaceTemplates implements SpaceTemplateInterface -type FakeSpaceTemplates struct { +// fakeSpaceTemplates implements SpaceTemplateInterface +type fakeSpaceTemplates struct { + *gentype.FakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] Fake *FakeStorageV1 } -var spacetemplatesResource = v1.SchemeGroupVersion.WithResource("spacetemplates") - -var spacetemplatesKind = v1.SchemeGroupVersion.WithKind("SpaceTemplate") - -// Get takes name of the spaceTemplate, and returns the corresponding spaceTemplate object, and an error if there is any. -func (c *FakeSpaceTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootGetActionWithOptions(spacetemplatesResource, name, options), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// List takes label and field selectors, and returns the list of SpaceTemplates that match those selectors. -func (c *FakeSpaceTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SpaceTemplateList, err error) { - emptyResult := &v1.SpaceTemplateList{} - obj, err := c.Fake. - Invokes(testing.NewRootListActionWithOptions(spacetemplatesResource, spacetemplatesKind, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1.SpaceTemplateList{ListMeta: obj.(*v1.SpaceTemplateList).ListMeta} - for _, item := range obj.(*v1.SpaceTemplateList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested spaceTemplates. -func (c *FakeSpaceTemplates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewRootWatchActionWithOptions(spacetemplatesResource, opts)) -} - -// Create takes the representation of a spaceTemplate and creates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootCreateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Update takes the representation of a spaceTemplate and updates it. Returns the server's representation of the spaceTemplate, and an error, if there is any. -func (c *FakeSpaceTemplates) Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateActionWithOptions(spacetemplatesResource, spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSpaceTemplates) UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootUpdateSubresourceActionWithOptions(spacetemplatesResource, "status", spaceTemplate, opts), emptyResult) - if obj == nil { - return emptyResult, err - } - return obj.(*v1.SpaceTemplate), err -} - -// Delete takes name of the spaceTemplate and deletes it. Returns an error if one occurs. -func (c *FakeSpaceTemplates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewRootDeleteActionWithOptions(spacetemplatesResource, name, opts), &v1.SpaceTemplate{}) - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSpaceTemplates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error { - action := testing.NewRootDeleteCollectionActionWithOptions(spacetemplatesResource, opts, listOpts) - - _, err := c.Fake.Invokes(action, &v1.SpaceTemplateList{}) - return err -} - -// Patch applies the patch and returns the patched spaceTemplate. -func (c *FakeSpaceTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceTemplate, err error) { - emptyResult := &v1.SpaceTemplate{} - obj, err := c.Fake. - Invokes(testing.NewRootPatchSubresourceActionWithOptions(spacetemplatesResource, name, pt, data, opts, subresources...), emptyResult) - if obj == nil { - return emptyResult, err +func newFakeSpaceTemplates(fake *FakeStorageV1) storagev1.SpaceTemplateInterface { + return &fakeSpaceTemplates{ + gentype.NewFakeClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("spacetemplates"), + v1.SchemeGroupVersion.WithKind("SpaceTemplate"), + func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, + func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }, + func(dst, src *v1.SpaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.SpaceTemplateList) []*v1.SpaceTemplate { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.SpaceTemplateList, items []*v1.SpaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, } - return obj.(*v1.SpaceTemplate), err } diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go index 3f2e892b..557040ea 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,83 +13,83 @@ type FakeStorageV1 struct { } func (c *FakeStorageV1) AccessKeys() v1.AccessKeyInterface { - return &FakeAccessKeys{c} + return newFakeAccessKeys(c) } func (c *FakeStorageV1) Apps() v1.AppInterface { - return &FakeApps{c} + return newFakeApps(c) } func (c *FakeStorageV1) Clusters() v1.ClusterInterface { - return &FakeClusters{c} + return newFakeClusters(c) } func (c *FakeStorageV1) ClusterAccesses() v1.ClusterAccessInterface { - return &FakeClusterAccesses{c} + return newFakeClusterAccesses(c) } func (c *FakeStorageV1) ClusterRoleTemplates() v1.ClusterRoleTemplateInterface { - return &FakeClusterRoleTemplates{c} + return newFakeClusterRoleTemplates(c) } func (c *FakeStorageV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return &FakeDevPodEnvironmentTemplates{c} + return newFakeDevPodEnvironmentTemplates(c) } func (c *FakeStorageV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return &FakeDevPodWorkspaceInstances{c, namespace} + return newFakeDevPodWorkspaceInstances(c, namespace) } func (c *FakeStorageV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { - return &FakeDevPodWorkspacePresets{c} + return newFakeDevPodWorkspacePresets(c) } func (c *FakeStorageV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return &FakeDevPodWorkspaceTemplates{c} + return newFakeDevPodWorkspaceTemplates(c) } func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { - return &FakeNetworkPeers{c} + return newFakeNetworkPeers(c) } func (c *FakeStorageV1) Projects() v1.ProjectInterface { - return &FakeProjects{c} + return newFakeProjects(c) } func (c *FakeStorageV1) Runners() v1.RunnerInterface { - return &FakeRunners{c} + return newFakeRunners(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/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/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 index 7b8dd485..a75823a2 100644 --- a/pkg/clientset/versioned/typed/storage/v1/runner.go +++ b/pkg/clientset/versioned/typed/storage/v1/runner.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 RunnersGetter interface { // 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) + Create(ctx context.Context, runner *storagev1.Runner, opts metav1.CreateOptions) (*storagev1.Runner, error) + Update(ctx context.Context, runner *storagev1.Runner, opts metav1.UpdateOptions) (*storagev1.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) + UpdateStatus(ctx context.Context, runner *storagev1.Runner, opts metav1.UpdateOptions) (*storagev1.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) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.Runner, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.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) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.Runner, err error) RunnerExpansion } // runners implements RunnerInterface type runners struct { - *gentype.ClientWithList[*v1.Runner, *v1.RunnerList] + *gentype.ClientWithList[*storagev1.Runner, *storagev1.RunnerList] } // newRunners returns a Runners func newRunners(c *StorageV1Client) *runners { return &runners{ - gentype.NewClientWithList[*v1.Runner, *v1.RunnerList]( + gentype.NewClientWithList[*storagev1.Runner, *storagev1.RunnerList]( "runners", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.Runner { return &v1.Runner{} }, - func() *v1.RunnerList { return &v1.RunnerList{} }), + func() *storagev1.Runner { return &storagev1.Runner{} }, + func() *storagev1.RunnerList { return &storagev1.RunnerList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go b/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go index 6e4dbd30..75727b5f 100644 --- a/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go +++ b/pkg/clientset/versioned/typed/storage/v1/sharedsecret.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SharedSecretsGetter interface { // SharedSecretInterface has methods to work with SharedSecret resources. type SharedSecretInterface interface { - Create(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.CreateOptions) (*v1.SharedSecret, error) - Update(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + Create(ctx context.Context, sharedSecret *storagev1.SharedSecret, opts metav1.CreateOptions) (*storagev1.SharedSecret, error) + Update(ctx context.Context, sharedSecret *storagev1.SharedSecret, opts metav1.UpdateOptions) (*storagev1.SharedSecret, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, sharedSecret *v1.SharedSecret, opts metav1.UpdateOptions) (*v1.SharedSecret, error) + UpdateStatus(ctx context.Context, sharedSecret *storagev1.SharedSecret, opts metav1.UpdateOptions) (*storagev1.SharedSecret, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SharedSecret, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SharedSecretList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.SharedSecret, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SharedSecretList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SharedSecret, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.SharedSecret, err error) SharedSecretExpansion } // sharedSecrets implements SharedSecretInterface type sharedSecrets struct { - *gentype.ClientWithList[*v1.SharedSecret, *v1.SharedSecretList] + *gentype.ClientWithList[*storagev1.SharedSecret, *storagev1.SharedSecretList] } // newSharedSecrets returns a SharedSecrets func newSharedSecrets(c *StorageV1Client, namespace string) *sharedSecrets { return &sharedSecrets{ - gentype.NewClientWithList[*v1.SharedSecret, *v1.SharedSecretList]( + gentype.NewClientWithList[*storagev1.SharedSecret, *storagev1.SharedSecretList]( "sharedsecrets", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SharedSecret { return &v1.SharedSecret{} }, - func() *v1.SharedSecretList { return &v1.SharedSecretList{} }), + func() *storagev1.SharedSecret { return &storagev1.SharedSecret{} }, + func() *storagev1.SharedSecretList { return &storagev1.SharedSecretList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go index 5a9d9947..b53139cc 100644 --- a/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go +++ b/pkg/clientset/versioned/typed/storage/v1/spaceinstance.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SpaceInstancesGetter interface { // SpaceInstanceInterface has methods to work with SpaceInstance resources. type SpaceInstanceInterface interface { - Create(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.CreateOptions) (*v1.SpaceInstance, error) - Update(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (*v1.SpaceInstance, error) + Create(ctx context.Context, spaceInstance *storagev1.SpaceInstance, opts metav1.CreateOptions) (*storagev1.SpaceInstance, error) + Update(ctx context.Context, spaceInstance *storagev1.SpaceInstance, opts metav1.UpdateOptions) (*storagev1.SpaceInstance, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, spaceInstance *v1.SpaceInstance, opts metav1.UpdateOptions) (*v1.SpaceInstance, error) + UpdateStatus(ctx context.Context, spaceInstance *storagev1.SpaceInstance, opts metav1.UpdateOptions) (*storagev1.SpaceInstance, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SpaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceInstanceList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.SpaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SpaceInstanceList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceInstance, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.SpaceInstance, err error) SpaceInstanceExpansion } // spaceInstances implements SpaceInstanceInterface type spaceInstances struct { - *gentype.ClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList] + *gentype.ClientWithList[*storagev1.SpaceInstance, *storagev1.SpaceInstanceList] } // newSpaceInstances returns a SpaceInstances func newSpaceInstances(c *StorageV1Client, namespace string) *spaceInstances { return &spaceInstances{ - gentype.NewClientWithList[*v1.SpaceInstance, *v1.SpaceInstanceList]( + gentype.NewClientWithList[*storagev1.SpaceInstance, *storagev1.SpaceInstanceList]( "spaceinstances", c.RESTClient(), scheme.ParameterCodec, namespace, - func() *v1.SpaceInstance { return &v1.SpaceInstance{} }, - func() *v1.SpaceInstanceList { return &v1.SpaceInstanceList{} }), + func() *storagev1.SpaceInstance { return &storagev1.SpaceInstance{} }, + func() *storagev1.SpaceInstanceList { return &storagev1.SpaceInstanceList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go index fca555b1..b32dc5df 100644 --- a/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go +++ b/pkg/clientset/versioned/typed/storage/v1/spacetemplate.go @@ -3,9 +3,9 @@ package v1 import ( - "context" + context "context" - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -21,33 +21,34 @@ type SpaceTemplatesGetter interface { // SpaceTemplateInterface has methods to work with SpaceTemplate resources. type SpaceTemplateInterface interface { - Create(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.CreateOptions) (*v1.SpaceTemplate, error) - Update(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + Create(ctx context.Context, spaceTemplate *storagev1.SpaceTemplate, opts metav1.CreateOptions) (*storagev1.SpaceTemplate, error) + Update(ctx context.Context, spaceTemplate *storagev1.SpaceTemplate, opts metav1.UpdateOptions) (*storagev1.SpaceTemplate, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, spaceTemplate *v1.SpaceTemplate, opts metav1.UpdateOptions) (*v1.SpaceTemplate, error) + UpdateStatus(ctx context.Context, spaceTemplate *storagev1.SpaceTemplate, opts metav1.UpdateOptions) (*storagev1.SpaceTemplate, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SpaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*v1.SpaceTemplateList, error) + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.SpaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.SpaceTemplateList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SpaceTemplate, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.SpaceTemplate, err error) SpaceTemplateExpansion } // spaceTemplates implements SpaceTemplateInterface type spaceTemplates struct { - *gentype.ClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList] + *gentype.ClientWithList[*storagev1.SpaceTemplate, *storagev1.SpaceTemplateList] } // newSpaceTemplates returns a SpaceTemplates func newSpaceTemplates(c *StorageV1Client) *spaceTemplates { return &spaceTemplates{ - gentype.NewClientWithList[*v1.SpaceTemplate, *v1.SpaceTemplateList]( + gentype.NewClientWithList[*storagev1.SpaceTemplate, *storagev1.SpaceTemplateList]( "spacetemplates", c.RESTClient(), scheme.ParameterCodec, "", - func() *v1.SpaceTemplate { return &v1.SpaceTemplate{} }, - func() *v1.SpaceTemplateList { return &v1.SpaceTemplateList{} }), + func() *storagev1.SpaceTemplate { return &storagev1.SpaceTemplate{} }, + func() *storagev1.SpaceTemplateList { return &storagev1.SpaceTemplateList{} }, + ), } } diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index e3dbd35f..83951f3b 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" ) @@ -164,10 +164,10 @@ func New(c rest.Interface) *StorageV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + 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() 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..9808b48b 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" ) @@ -69,10 +69,10 @@ func New(c rest.Interface) *VirtualclusterV1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v1.SchemeGroupVersion + 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() diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 60138dd4..2baadb52 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" diff --git a/pkg/informers/externalversions/management/v1/agentauditevent.go b/pkg/informers/externalversions/management/v1/agentauditevent.go index 9b4001b8..d5023067 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 { @@ -54,7 +54,7 @@ func NewFilteredAgentAuditEventInformer(client versioned.Interface, resyncPeriod return client.ManagementV1().AgentAuditEvents().Watch(context.TODO(), options) }, }, - &managementv1.AgentAuditEvent{}, + &apismanagementv1.AgentAuditEvent{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..d6f81ce7 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 { @@ -54,7 +54,7 @@ func NewFilteredAnnouncementInformer(client versioned.Interface, resyncPeriod ti return client.ManagementV1().Announcements().Watch(context.TODO(), options) }, }, - &managementv1.Announcement{}, + &apismanagementv1.Announcement{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..6a8ef3a2 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 { @@ -54,7 +54,7 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati return client.ManagementV1().Apps().Watch(context.TODO(), options) }, }, - &managementv1.App{}, + &apismanagementv1.App{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..1e386a09 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 { @@ -54,7 +54,7 @@ func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Dur return client.ManagementV1().Backups().Watch(context.TODO(), options) }, }, - &managementv1.Backup{}, + &apismanagementv1.Backup{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..586c775b 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 { @@ -54,7 +54,7 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du return client.ManagementV1().Clusters().Watch(context.TODO(), options) }, }, - &managementv1.Cluster{}, + &apismanagementv1.Cluster{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..68ae0e57 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 { @@ -54,7 +54,7 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t return client.ManagementV1().ClusterAccesses().Watch(context.TODO(), options) }, }, - &managementv1.ClusterAccess{}, + &apismanagementv1.ClusterAccess{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..cf825868 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 { @@ -54,7 +54,7 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe return client.ManagementV1().ClusterRoleTemplates().Watch(context.TODO(), options) }, }, - &managementv1.ClusterRoleTemplate{}, + &apismanagementv1.ClusterRoleTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..b3ebc170 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 { @@ -54,7 +54,7 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur return client.ManagementV1().Configs().Watch(context.TODO(), options) }, }, - &managementv1.Config{}, + &apismanagementv1.Config{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..14075bbf 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 { @@ -54,7 +54,7 @@ func NewFilteredConvertVirtualClusterConfigInformer(client versioned.Interface, return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(context.TODO(), options) }, }, - &managementv1.ConvertVirtualClusterConfig{}, + &apismanagementv1.ConvertVirtualClusterConfig{}, resyncPeriod, indexers, ) @@ -65,9 +65,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/devpodenvironmenttemplate.go b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go index 65131ea7..bb33cbde 100644 --- a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go +++ b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodEnvironmentTemplates. type DevPodEnvironmentTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodEnvironmentTemplateLister + Lister() managementv1.DevPodEnvironmentTemplateLister } type devPodEnvironmentTemplateInformer struct { @@ -54,7 +54,7 @@ func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, re return client.ManagementV1().DevPodEnvironmentTemplates().Watch(context.TODO(), options) }, }, - &managementv1.DevPodEnvironmentTemplate{}, + &apismanagementv1.DevPodEnvironmentTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Int } func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) } -func (f *devPodEnvironmentTemplateInformer) Lister() v1.DevPodEnvironmentTemplateLister { - return v1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) +func (f *devPodEnvironmentTemplateInformer) Lister() managementv1.DevPodEnvironmentTemplateLister { + return managementv1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go index 97f11dc2..a3d8663d 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceInstances. type DevPodWorkspaceInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceInstanceLister + Lister() managementv1.DevPodWorkspaceInstanceLister } type devPodWorkspaceInstanceInformer struct { @@ -55,7 +55,7 @@ func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, name return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(context.TODO(), options) }, }, - &managementv1.DevPodWorkspaceInstance{}, + &apismanagementv1.DevPodWorkspaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +66,9 @@ func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspaceInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceInstance{}, f.defaultInformer) } -func (f *devPodWorkspaceInstanceInformer) Lister() v1.DevPodWorkspaceInstanceLister { - return v1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) +func (f *devPodWorkspaceInstanceInformer) Lister() managementv1.DevPodWorkspaceInstanceLister { + return managementv1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go index 11508272..d4b9feff 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.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 ( // DevPodWorkspacePresets. type DevPodWorkspacePresetInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspacePresetLister + Lister() managementv1.DevPodWorkspacePresetLister } type devPodWorkspacePresetInformer struct { @@ -54,7 +54,7 @@ func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resync return client.ManagementV1().DevPodWorkspacePresets().Watch(context.TODO(), options) }, }, - &managementv1.DevPodWorkspacePreset{}, + &apismanagementv1.DevPodWorkspacePreset{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interfa } func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspacePreset{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodWorkspacePreset{}, f.defaultInformer) } -func (f *devPodWorkspacePresetInformer) Lister() v1.DevPodWorkspacePresetLister { - return v1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) +func (f *devPodWorkspacePresetInformer) Lister() managementv1.DevPodWorkspacePresetLister { + return managementv1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go index b74d607e..8996945c 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceTemplates. type DevPodWorkspaceTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceTemplateLister + Lister() managementv1.DevPodWorkspaceTemplateLister } type devPodWorkspaceTemplateInformer struct { @@ -54,7 +54,7 @@ func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resy return client.ManagementV1().DevPodWorkspaceTemplates().Watch(context.TODO(), options) }, }, - &managementv1.DevPodWorkspaceTemplate{}, + &apismanagementv1.DevPodWorkspaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) } -func (f *devPodWorkspaceTemplateInformer) Lister() v1.DevPodWorkspaceTemplateLister { - return v1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) +func (f *devPodWorkspaceTemplateInformer) Lister() managementv1.DevPodWorkspaceTemplateLister { + return managementv1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go index babc02e6..b4e83ddf 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 { @@ -54,7 +54,7 @@ func NewFilteredDirectClusterEndpointTokenInformer(client versioned.Interface, r return client.ManagementV1().DirectClusterEndpointTokens().Watch(context.TODO(), options) }, }, - &managementv1.DirectClusterEndpointToken{}, + &apismanagementv1.DirectClusterEndpointToken{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..5d4baf11 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 { @@ -54,7 +54,7 @@ func NewFilteredEventInformer(client versioned.Interface, resyncPeriod time.Dura return client.ManagementV1().Events().Watch(context.TODO(), options) }, }, - &managementv1.Event{}, + &apismanagementv1.Event{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..84b2e2e0 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 { @@ -54,7 +54,7 @@ func NewFilteredFeatureInformer(client versioned.Interface, resyncPeriod time.Du return client.ManagementV1().Features().Watch(context.TODO(), options) }, }, - &managementv1.Feature{}, + &apismanagementv1.Feature{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..f3594bcb 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 { @@ -54,7 +54,7 @@ func NewFilteredIngressAuthTokenInformer(client versioned.Interface, resyncPerio return client.ManagementV1().IngressAuthTokens().Watch(context.TODO(), options) }, }, - &managementv1.IngressAuthToken{}, + &apismanagementv1.IngressAuthToken{}, resyncPeriod, indexers, ) @@ -65,9 +65,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/license.go b/pkg/informers/externalversions/management/v1/license.go index b5de0101..1dc2b349 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 { @@ -54,7 +54,7 @@ func NewFilteredLicenseInformer(client versioned.Interface, resyncPeriod time.Du return client.ManagementV1().Licenses().Watch(context.TODO(), options) }, }, - &managementv1.License{}, + &apismanagementv1.License{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *licenseInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *licenseInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.License{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.License{}, f.defaultInformer) } -func (f *licenseInformer) Lister() v1.LicenseLister { - return v1.NewLicenseLister(f.Informer().GetIndexer()) +func (f *licenseInformer) Lister() managementv1.LicenseLister { + return managementv1.NewLicenseLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/licensetoken.go b/pkg/informers/externalversions/management/v1/licensetoken.go index bd8eb0be..46a9ee7c 100644 --- a/pkg/informers/externalversions/management/v1/licensetoken.go +++ b/pkg/informers/externalversions/management/v1/licensetoken.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // LicenseTokens. type LicenseTokenInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.LicenseTokenLister + Lister() managementv1.LicenseTokenLister } type licenseTokenInformer struct { @@ -54,7 +54,7 @@ func NewFilteredLicenseTokenInformer(client versioned.Interface, resyncPeriod ti return client.ManagementV1().LicenseTokens().Watch(context.TODO(), options) }, }, - &managementv1.LicenseToken{}, + &apismanagementv1.LicenseToken{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *licenseTokenInformer) defaultInformer(client versioned.Interface, resyn } func (f *licenseTokenInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.LicenseToken{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.LicenseToken{}, f.defaultInformer) } -func (f *licenseTokenInformer) Lister() v1.LicenseTokenLister { - return v1.NewLicenseTokenLister(f.Informer().GetIndexer()) +func (f *licenseTokenInformer) Lister() managementv1.LicenseTokenLister { + return managementv1.NewLicenseTokenLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/loftupgrade.go b/pkg/informers/externalversions/management/v1/loftupgrade.go index bc016e52..ecec84c9 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 { @@ -54,7 +54,7 @@ func NewFilteredLoftUpgradeInformer(client versioned.Interface, resyncPeriod tim return client.ManagementV1().LoftUpgrades().Watch(context.TODO(), options) }, }, - &managementv1.LoftUpgrade{}, + &apismanagementv1.LoftUpgrade{}, resyncPeriod, indexers, ) @@ -65,9 +65,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/oidcclient.go b/pkg/informers/externalversions/management/v1/oidcclient.go index d7af75c5..f510574d 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 { @@ -54,7 +54,7 @@ func NewFilteredOIDCClientInformer(client versioned.Interface, resyncPeriod time return client.ManagementV1().OIDCClients().Watch(context.TODO(), options) }, }, - &managementv1.OIDCClient{}, + &apismanagementv1.OIDCClient{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *oIDCClientInformer) defaultInformer(client versioned.Interface, resyncP } func (f *oIDCClientInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.OIDCClient{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.OIDCClient{}, f.defaultInformer) } -func (f *oIDCClientInformer) Lister() v1.OIDCClientLister { - return v1.NewOIDCClientLister(f.Informer().GetIndexer()) +func (f *oIDCClientInformer) Lister() managementv1.OIDCClientLister { + return managementv1.NewOIDCClientLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/ownedaccesskey.go b/pkg/informers/externalversions/management/v1/ownedaccesskey.go index 7c76e8e4..b671f936 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 { @@ -54,7 +54,7 @@ func NewFilteredOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod return client.ManagementV1().OwnedAccessKeys().Watch(context.TODO(), options) }, }, - &managementv1.OwnedAccessKey{}, + &apismanagementv1.OwnedAccessKey{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..db5db79b 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 { @@ -54,7 +54,7 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du return client.ManagementV1().Projects().Watch(context.TODO(), options) }, }, - &managementv1.Project{}, + &apismanagementv1.Project{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..935dc23c 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 { @@ -55,7 +55,7 @@ func NewFilteredProjectSecretInformer(client versioned.Interface, namespace stri return client.ManagementV1().ProjectSecrets(namespace).Watch(context.TODO(), options) }, }, - &managementv1.ProjectSecret{}, + &apismanagementv1.ProjectSecret{}, resyncPeriod, indexers, ) @@ -66,9 +66,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..505ef605 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 { @@ -54,7 +54,7 @@ func NewFilteredRedirectTokenInformer(client versioned.Interface, resyncPeriod t return client.ManagementV1().RedirectTokens().Watch(context.TODO(), options) }, }, - &managementv1.RedirectToken{}, + &apismanagementv1.RedirectToken{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..eec5a0c0 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 { @@ -54,7 +54,7 @@ func NewFilteredRegisterVirtualClusterInformer(client versioned.Interface, resyn return client.ManagementV1().RegisterVirtualClusters().Watch(context.TODO(), options) }, }, - &managementv1.RegisterVirtualCluster{}, + &apismanagementv1.RegisterVirtualCluster{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..0e386c58 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 { @@ -54,7 +54,7 @@ func NewFilteredResetAccessKeyInformer(client versioned.Interface, resyncPeriod return client.ManagementV1().ResetAccessKeys().Watch(context.TODO(), options) }, }, - &managementv1.ResetAccessKey{}, + &apismanagementv1.ResetAccessKey{}, resyncPeriod, indexers, ) @@ -65,9 +65,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 index ac5eccf4..4444f097 100644 --- a/pkg/informers/externalversions/management/v1/runner.go +++ b/pkg/informers/externalversions/management/v1/runner.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 ( // Runners. type RunnerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.RunnerLister + Lister() managementv1.RunnerLister } type runnerInformer struct { @@ -54,7 +54,7 @@ func NewFilteredRunnerInformer(client versioned.Interface, resyncPeriod time.Dur return client.ManagementV1().Runners().Watch(context.TODO(), options) }, }, - &managementv1.Runner{}, + &apismanagementv1.Runner{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *runnerInformer) defaultInformer(client versioned.Interface, resyncPerio } func (f *runnerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.Runner{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.Runner{}, f.defaultInformer) } -func (f *runnerInformer) Lister() v1.RunnerLister { - return v1.NewRunnerLister(f.Informer().GetIndexer()) +func (f *runnerInformer) Lister() managementv1.RunnerLister { + return managementv1.NewRunnerLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/self.go b/pkg/informers/externalversions/management/v1/self.go index fdfb1b26..08fc2727 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 { @@ -54,7 +54,7 @@ func NewFilteredSelfInformer(client versioned.Interface, resyncPeriod time.Durat return client.ManagementV1().Selves().Watch(context.TODO(), options) }, }, - &managementv1.Self{}, + &apismanagementv1.Self{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..7416da01 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 { @@ -54,7 +54,7 @@ func NewFilteredSelfSubjectAccessReviewInformer(client versioned.Interface, resy return client.ManagementV1().SelfSubjectAccessReviews().Watch(context.TODO(), options) }, }, - &managementv1.SelfSubjectAccessReview{}, + &apismanagementv1.SelfSubjectAccessReview{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..fbae392b 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 { @@ -55,7 +55,7 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin return client.ManagementV1().SharedSecrets(namespace).Watch(context.TODO(), options) }, }, - &managementv1.SharedSecret{}, + &apismanagementv1.SharedSecret{}, resyncPeriod, indexers, ) @@ -66,9 +66,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..1873629b 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 { @@ -55,7 +55,7 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri return client.ManagementV1().SpaceInstances(namespace).Watch(context.TODO(), options) }, }, - &managementv1.SpaceInstance{}, + &apismanagementv1.SpaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +66,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..85065979 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 { @@ -54,7 +54,7 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t return client.ManagementV1().SpaceTemplates().Watch(context.TODO(), options) }, }, - &managementv1.SpaceTemplate{}, + &apismanagementv1.SpaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *spaceTemplateInformer) defaultInformer(client versioned.Interface, resy } func (f *spaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.SpaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.SpaceTemplate{}, f.defaultInformer) } -func (f *spaceTemplateInformer) Lister() v1.SpaceTemplateLister { - return v1.NewSpaceTemplateLister(f.Informer().GetIndexer()) +func (f *spaceTemplateInformer) Lister() managementv1.SpaceTemplateLister { + return managementv1.NewSpaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/subjectaccessreview.go b/pkg/informers/externalversions/management/v1/subjectaccessreview.go index a4afaf37..1974ff8b 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 { @@ -54,7 +54,7 @@ func NewFilteredSubjectAccessReviewInformer(client versioned.Interface, resyncPe return client.ManagementV1().SubjectAccessReviews().Watch(context.TODO(), options) }, }, - &managementv1.SubjectAccessReview{}, + &apismanagementv1.SubjectAccessReview{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..daf3ec65 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 { @@ -54,7 +54,7 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat return client.ManagementV1().Tasks().Watch(context.TODO(), options) }, }, - &managementv1.Task{}, + &apismanagementv1.Task{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..c7a643d7 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 { @@ -54,7 +54,7 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat return client.ManagementV1().Teams().Watch(context.TODO(), options) }, }, - &managementv1.Team{}, + &apismanagementv1.Team{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..821b883f 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 { @@ -54,7 +54,7 @@ func NewFilteredTranslateVClusterResourceNameInformer(client versioned.Interface return client.ManagementV1().TranslateVClusterResourceNames().Watch(context.TODO(), options) }, }, - &managementv1.TranslateVClusterResourceName{}, + &apismanagementv1.TranslateVClusterResourceName{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *translateVClusterResourceNameInformer) defaultInformer(client versioned } func (f *translateVClusterResourceNameInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&managementv1.TranslateVClusterResourceName{}, f.defaultInformer) + return f.factory.InformerFor(&apismanagementv1.TranslateVClusterResourceName{}, f.defaultInformer) } -func (f *translateVClusterResourceNameInformer) Lister() v1.TranslateVClusterResourceNameLister { - return v1.NewTranslateVClusterResourceNameLister(f.Informer().GetIndexer()) +func (f *translateVClusterResourceNameInformer) Lister() managementv1.TranslateVClusterResourceNameLister { + return managementv1.NewTranslateVClusterResourceNameLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/user.go b/pkg/informers/externalversions/management/v1/user.go index 1bb267de..23eb77e4 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 { @@ -54,7 +54,7 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat return client.ManagementV1().Users().Watch(context.TODO(), options) }, }, - &managementv1.User{}, + &apismanagementv1.User{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..a860ab0d 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 { @@ -55,7 +55,7 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names return client.ManagementV1().VirtualClusterInstances(namespace).Watch(context.TODO(), options) }, }, - &managementv1.VirtualClusterInstance{}, + &apismanagementv1.VirtualClusterInstance{}, resyncPeriod, indexers, ) @@ -66,9 +66,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/virtualclustertemplate.go b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go index 1eee1efd..7c872244 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 { @@ -54,7 +54,7 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn return client.ManagementV1().VirtualClusterTemplates().Watch(context.TODO(), options) }, }, - &managementv1.VirtualClusterTemplate{}, + &apismanagementv1.VirtualClusterTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..b5cd21a1 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 { @@ -54,7 +54,7 @@ func NewFilteredAccessKeyInformer(client versioned.Interface, resyncPeriod time. return client.StorageV1().AccessKeys().Watch(context.TODO(), options) }, }, - &storagev1.AccessKey{}, + &apisstoragev1.AccessKey{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..28596436 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 { @@ -54,7 +54,7 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati return client.StorageV1().Apps().Watch(context.TODO(), options) }, }, - &storagev1.App{}, + &apisstoragev1.App{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..ab49d3ef 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 { @@ -54,7 +54,7 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du return client.StorageV1().Clusters().Watch(context.TODO(), options) }, }, - &storagev1.Cluster{}, + &apisstoragev1.Cluster{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..2edbfbb8 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 { @@ -54,7 +54,7 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t return client.StorageV1().ClusterAccesses().Watch(context.TODO(), options) }, }, - &storagev1.ClusterAccess{}, + &apisstoragev1.ClusterAccess{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..f90c150b 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 { @@ -54,7 +54,7 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe return client.StorageV1().ClusterRoleTemplates().Watch(context.TODO(), options) }, }, - &storagev1.ClusterRoleTemplate{}, + &apisstoragev1.ClusterRoleTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *clusterRoleTemplateInformer) defaultInformer(client versioned.Interface } func (f *clusterRoleTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.ClusterRoleTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.ClusterRoleTemplate{}, f.defaultInformer) } -func (f *clusterRoleTemplateInformer) Lister() v1.ClusterRoleTemplateLister { - return v1.NewClusterRoleTemplateLister(f.Informer().GetIndexer()) +func (f *clusterRoleTemplateInformer) Lister() storagev1.ClusterRoleTemplateLister { + return storagev1.NewClusterRoleTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go index b6be71f0..875c59d3 100644 --- a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodEnvironmentTemplates. type DevPodEnvironmentTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodEnvironmentTemplateLister + Lister() storagev1.DevPodEnvironmentTemplateLister } type devPodEnvironmentTemplateInformer struct { @@ -54,7 +54,7 @@ func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, re return client.StorageV1().DevPodEnvironmentTemplates().Watch(context.TODO(), options) }, }, - &storagev1.DevPodEnvironmentTemplate{}, + &apisstoragev1.DevPodEnvironmentTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Int } func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodEnvironmentTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodEnvironmentTemplate{}, f.defaultInformer) } -func (f *devPodEnvironmentTemplateInformer) Lister() v1.DevPodEnvironmentTemplateLister { - return v1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) +func (f *devPodEnvironmentTemplateInformer) Lister() storagev1.DevPodEnvironmentTemplateLister { + return storagev1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go index 6fa109b2..21b97c4a 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceInstances. type DevPodWorkspaceInstanceInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceInstanceLister + Lister() storagev1.DevPodWorkspaceInstanceLister } type devPodWorkspaceInstanceInformer struct { @@ -55,7 +55,7 @@ func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, name return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(context.TODO(), options) }, }, - &storagev1.DevPodWorkspaceInstance{}, + &apisstoragev1.DevPodWorkspaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +66,9 @@ func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspaceInstance{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceInstance{}, f.defaultInformer) } -func (f *devPodWorkspaceInstanceInformer) Lister() v1.DevPodWorkspaceInstanceLister { - return v1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) +func (f *devPodWorkspaceInstanceInformer) Lister() storagev1.DevPodWorkspaceInstanceLister { + return storagev1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go index 2ed8915f..fe70fc4e 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.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 ( // DevPodWorkspacePresets. type DevPodWorkspacePresetInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspacePresetLister + Lister() storagev1.DevPodWorkspacePresetLister } type devPodWorkspacePresetInformer struct { @@ -54,7 +54,7 @@ func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resync return client.StorageV1().DevPodWorkspacePresets().Watch(context.TODO(), options) }, }, - &storagev1.DevPodWorkspacePreset{}, + &apisstoragev1.DevPodWorkspacePreset{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interfa } func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspacePreset{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodWorkspacePreset{}, f.defaultInformer) } -func (f *devPodWorkspacePresetInformer) Lister() v1.DevPodWorkspacePresetLister { - return v1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) +func (f *devPodWorkspacePresetInformer) Lister() storagev1.DevPodWorkspacePresetLister { + return storagev1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go index a97bba7e..6b9e5fe4 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go @@ -3,13 +3,13 @@ package v1 import ( - "context" + context "context" time "time" - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - v1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -20,7 +20,7 @@ import ( // DevPodWorkspaceTemplates. type DevPodWorkspaceTemplateInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.DevPodWorkspaceTemplateLister + Lister() storagev1.DevPodWorkspaceTemplateLister } type devPodWorkspaceTemplateInformer struct { @@ -54,7 +54,7 @@ func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resy return client.StorageV1().DevPodWorkspaceTemplates().Watch(context.TODO(), options) }, }, - &storagev1.DevPodWorkspaceTemplate{}, + &apisstoragev1.DevPodWorkspaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Inter } func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.DevPodWorkspaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceTemplate{}, f.defaultInformer) } -func (f *devPodWorkspaceTemplateInformer) Lister() v1.DevPodWorkspaceTemplateLister { - return v1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) +func (f *devPodWorkspaceTemplateInformer) Lister() storagev1.DevPodWorkspaceTemplateLister { + return storagev1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/networkpeer.go b/pkg/informers/externalversions/storage/v1/networkpeer.go index ef865824..f3ff9b5f 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 { @@ -54,7 +54,7 @@ func NewFilteredNetworkPeerInformer(client versioned.Interface, resyncPeriod tim return client.StorageV1().NetworkPeers().Watch(context.TODO(), options) }, }, - &storagev1.NetworkPeer{}, + &apisstoragev1.NetworkPeer{}, resyncPeriod, indexers, ) @@ -65,9 +65,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/project.go b/pkg/informers/externalversions/storage/v1/project.go index d2d5cf54..9302bd5e 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 { @@ -54,7 +54,7 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du return client.StorageV1().Projects().Watch(context.TODO(), options) }, }, - &storagev1.Project{}, + &apisstoragev1.Project{}, resyncPeriod, indexers, ) @@ -65,9 +65,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 index da107f65..337def07 100644 --- a/pkg/informers/externalversions/storage/v1/runner.go +++ b/pkg/informers/externalversions/storage/v1/runner.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 ( // Runners. type RunnerInformer interface { Informer() cache.SharedIndexInformer - Lister() v1.RunnerLister + Lister() storagev1.RunnerLister } type runnerInformer struct { @@ -54,7 +54,7 @@ func NewFilteredRunnerInformer(client versioned.Interface, resyncPeriod time.Dur return client.StorageV1().Runners().Watch(context.TODO(), options) }, }, - &storagev1.Runner{}, + &apisstoragev1.Runner{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *runnerInformer) defaultInformer(client versioned.Interface, resyncPerio } func (f *runnerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.Runner{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.Runner{}, f.defaultInformer) } -func (f *runnerInformer) Lister() v1.RunnerLister { - return v1.NewRunnerLister(f.Informer().GetIndexer()) +func (f *runnerInformer) Lister() storagev1.RunnerLister { + return storagev1.NewRunnerLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/sharedsecret.go b/pkg/informers/externalversions/storage/v1/sharedsecret.go index d2497aec..bd701d78 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 { @@ -55,7 +55,7 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin return client.StorageV1().SharedSecrets(namespace).Watch(context.TODO(), options) }, }, - &storagev1.SharedSecret{}, + &apisstoragev1.SharedSecret{}, resyncPeriod, indexers, ) @@ -66,9 +66,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..5084df96 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 { @@ -55,7 +55,7 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri return client.StorageV1().SpaceInstances(namespace).Watch(context.TODO(), options) }, }, - &storagev1.SpaceInstance{}, + &apisstoragev1.SpaceInstance{}, resyncPeriod, indexers, ) @@ -66,9 +66,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..b58b1f8c 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 { @@ -54,7 +54,7 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t return client.StorageV1().SpaceTemplates().Watch(context.TODO(), options) }, }, - &storagev1.SpaceTemplate{}, + &apisstoragev1.SpaceTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func (f *spaceTemplateInformer) defaultInformer(client versioned.Interface, resy } func (f *spaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&storagev1.SpaceTemplate{}, f.defaultInformer) + return f.factory.InformerFor(&apisstoragev1.SpaceTemplate{}, f.defaultInformer) } -func (f *spaceTemplateInformer) Lister() v1.SpaceTemplateLister { - return v1.NewSpaceTemplateLister(f.Informer().GetIndexer()) +func (f *spaceTemplateInformer) Lister() storagev1.SpaceTemplateLister { + return storagev1.NewSpaceTemplateLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/storage/v1/task.go b/pkg/informers/externalversions/storage/v1/task.go index 347b82f7..c4e8e1da 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 { @@ -54,7 +54,7 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat return client.StorageV1().Tasks().Watch(context.TODO(), options) }, }, - &storagev1.Task{}, + &apisstoragev1.Task{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..0d6e22e3 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 { @@ -54,7 +54,7 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat return client.StorageV1().Teams().Watch(context.TODO(), options) }, }, - &storagev1.Team{}, + &apisstoragev1.Team{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..defbb77c 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 { @@ -54,7 +54,7 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat return client.StorageV1().Users().Watch(context.TODO(), options) }, }, - &storagev1.User{}, + &apisstoragev1.User{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..c8b985b8 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 { @@ -55,7 +55,7 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names return client.StorageV1().VirtualClusterInstances(namespace).Watch(context.TODO(), options) }, }, - &storagev1.VirtualClusterInstance{}, + &apisstoragev1.VirtualClusterInstance{}, resyncPeriod, indexers, ) @@ -66,9 +66,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..4c9c1022 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 { @@ -54,7 +54,7 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn return client.StorageV1().VirtualClusterTemplates().Watch(context.TODO(), options) }, }, - &storagev1.VirtualClusterTemplate{}, + &apisstoragev1.VirtualClusterTemplate{}, resyncPeriod, indexers, ) @@ -65,9 +65,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..8316b6c0 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 { @@ -55,7 +55,7 @@ func NewFilteredHelmReleaseInformer(client versioned.Interface, namespace string return client.VirtualclusterV1().HelmReleases(namespace).Watch(context.TODO(), options) }, }, - &virtualclusterv1.HelmRelease{}, + &apisvirtualclusterv1.HelmRelease{}, resyncPeriod, indexers, ) @@ -66,9 +66,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/devpodenvironmenttemplate.go b/pkg/listers/management/v1/devpodenvironmenttemplate.go index 7902544b..84622386 100644 --- a/pkg/listers/management/v1/devpodenvironmenttemplate.go +++ b/pkg/listers/management/v1/devpodenvironmenttemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. @@ -14,19 +14,19 @@ import ( type DevPodEnvironmentTemplateLister interface { // List lists all DevPodEnvironmentTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodEnvironmentTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.DevPodEnvironmentTemplate, err error) // Get retrieves the DevPodEnvironmentTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodEnvironmentTemplate, error) + Get(name string) (*managementv1.DevPodEnvironmentTemplate, error) DevPodEnvironmentTemplateListerExpansion } // devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodEnvironmentTemplate] + listers.ResourceIndexer[*managementv1.DevPodEnvironmentTemplate] } // NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*v1.DevPodEnvironmentTemplate](indexer, v1.Resource("devpodenvironmenttemplate"))} + return &devPodEnvironmentTemplateLister{listers.New[*managementv1.DevPodEnvironmentTemplate](indexer, managementv1.Resource("devpodenvironmenttemplate"))} } diff --git a/pkg/listers/management/v1/devpodworkspaceinstance.go b/pkg/listers/management/v1/devpodworkspaceinstance.go index d7ccf8b6..14b7b677 100644 --- a/pkg/listers/management/v1/devpodworkspaceinstance.go +++ b/pkg/listers/management/v1/devpodworkspaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. @@ -14,7 +14,7 @@ import ( type DevPodWorkspaceInstanceLister interface { // List lists all DevPodWorkspaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister DevPodWorkspaceInstanceListerExpansion @@ -22,17 +22,17 @@ type DevPodWorkspaceInstanceLister interface { // devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] } // NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*v1.DevPodWorkspaceInstance](indexer, v1.Resource("devpodworkspaceinstance"))} + return &devPodWorkspaceInstanceLister{listers.New[*managementv1.DevPodWorkspaceInstance](indexer, managementv1.Resource("devpodworkspaceinstance"))} } // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister { - return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*v1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} + return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} } // DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. @@ -40,15 +40,15 @@ func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace strin type DevPodWorkspaceInstanceNamespaceLister interface { // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) // Get retrieves the DevPodWorkspaceInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodWorkspaceInstance, error) + Get(name string) (*managementv1.DevPodWorkspaceInstance, error) DevPodWorkspaceInstanceNamespaceListerExpansion } // devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister // interface. type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] } diff --git a/pkg/listers/management/v1/devpodworkspacepreset.go b/pkg/listers/management/v1/devpodworkspacepreset.go index 8a1b33ed..8c17b627 100644 --- a/pkg/listers/management/v1/devpodworkspacepreset.go +++ b/pkg/listers/management/v1/devpodworkspacepreset.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" ) // DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. @@ -14,19 +14,19 @@ import ( type DevPodWorkspacePresetLister interface { // List lists all DevPodWorkspacePresets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspacePreset, err error) + List(selector labels.Selector) (ret []*managementv1.DevPodWorkspacePreset, err error) // Get retrieves the DevPodWorkspacePreset from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodWorkspacePreset, error) + Get(name string) (*managementv1.DevPodWorkspacePreset, error) DevPodWorkspacePresetListerExpansion } // devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. type devPodWorkspacePresetLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspacePreset] + listers.ResourceIndexer[*managementv1.DevPodWorkspacePreset] } // NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { - return &devPodWorkspacePresetLister{listers.New[*v1.DevPodWorkspacePreset](indexer, v1.Resource("devpodworkspacepreset"))} + return &devPodWorkspacePresetLister{listers.New[*managementv1.DevPodWorkspacePreset](indexer, managementv1.Resource("devpodworkspacepreset"))} } diff --git a/pkg/listers/management/v1/devpodworkspacetemplate.go b/pkg/listers/management/v1/devpodworkspacetemplate.go index ce5d6941..33862412 100644 --- a/pkg/listers/management/v1/devpodworkspacetemplate.go +++ b/pkg/listers/management/v1/devpodworkspacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. @@ -14,19 +14,19 @@ import ( type DevPodWorkspaceTemplateLister interface { // List lists all DevPodWorkspaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceTemplate, err error) // Get retrieves the DevPodWorkspaceTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodWorkspaceTemplate, error) + Get(name string) (*managementv1.DevPodWorkspaceTemplate, error) DevPodWorkspaceTemplateListerExpansion } // devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceTemplate] + listers.ResourceIndexer[*managementv1.DevPodWorkspaceTemplate] } // NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*v1.DevPodWorkspaceTemplate](indexer, v1.Resource("devpodworkspacetemplate"))} + return &devPodWorkspaceTemplateLister{listers.New[*managementv1.DevPodWorkspaceTemplate](indexer, managementv1.Resource("devpodworkspacetemplate"))} } diff --git a/pkg/listers/management/v1/directclusterendpointtoken.go b/pkg/listers/management/v1/directclusterendpointtoken.go index 58620ea2..564ee374 100644 --- a/pkg/listers/management/v1/directclusterendpointtoken.go +++ b/pkg/listers/management/v1/directclusterendpointtoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DirectClusterEndpointTokenLister helps list DirectClusterEndpointTokens. @@ -14,19 +14,19 @@ import ( type DirectClusterEndpointTokenLister interface { // List lists all DirectClusterEndpointTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DirectClusterEndpointToken, err error) + List(selector labels.Selector) (ret []*managementv1.DirectClusterEndpointToken, err error) // Get retrieves the DirectClusterEndpointToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DirectClusterEndpointToken, error) + Get(name string) (*managementv1.DirectClusterEndpointToken, error) DirectClusterEndpointTokenListerExpansion } // directClusterEndpointTokenLister implements the DirectClusterEndpointTokenLister interface. type directClusterEndpointTokenLister struct { - listers.ResourceIndexer[*v1.DirectClusterEndpointToken] + listers.ResourceIndexer[*managementv1.DirectClusterEndpointToken] } // NewDirectClusterEndpointTokenLister returns a new DirectClusterEndpointTokenLister. func NewDirectClusterEndpointTokenLister(indexer cache.Indexer) DirectClusterEndpointTokenLister { - return &directClusterEndpointTokenLister{listers.New[*v1.DirectClusterEndpointToken](indexer, v1.Resource("directclusterendpointtoken"))} + return &directClusterEndpointTokenLister{listers.New[*managementv1.DirectClusterEndpointToken](indexer, managementv1.Resource("directclusterendpointtoken"))} } diff --git a/pkg/listers/management/v1/event.go b/pkg/listers/management/v1/event.go index d64d1c3f..8f3bee38 100644 --- a/pkg/listers/management/v1/event.go +++ b/pkg/listers/management/v1/event.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // EventLister helps list Events. @@ -14,19 +14,19 @@ import ( type EventLister interface { // List lists all Events in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Event, err error) + List(selector labels.Selector) (ret []*managementv1.Event, err error) // Get retrieves the Event from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Event, error) + Get(name string) (*managementv1.Event, error) EventListerExpansion } // eventLister implements the EventLister interface. type eventLister struct { - listers.ResourceIndexer[*v1.Event] + listers.ResourceIndexer[*managementv1.Event] } // NewEventLister returns a new EventLister. func NewEventLister(indexer cache.Indexer) EventLister { - return &eventLister{listers.New[*v1.Event](indexer, v1.Resource("event"))} + return &eventLister{listers.New[*managementv1.Event](indexer, managementv1.Resource("event"))} } diff --git a/pkg/listers/management/v1/feature.go b/pkg/listers/management/v1/feature.go index 14e88746..70a84b66 100644 --- a/pkg/listers/management/v1/feature.go +++ b/pkg/listers/management/v1/feature.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // FeatureLister helps list Features. @@ -14,19 +14,19 @@ import ( type FeatureLister interface { // List lists all Features in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Feature, err error) + List(selector labels.Selector) (ret []*managementv1.Feature, err error) // Get retrieves the Feature from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Feature, error) + Get(name string) (*managementv1.Feature, error) FeatureListerExpansion } // featureLister implements the FeatureLister interface. type featureLister struct { - listers.ResourceIndexer[*v1.Feature] + listers.ResourceIndexer[*managementv1.Feature] } // NewFeatureLister returns a new FeatureLister. func NewFeatureLister(indexer cache.Indexer) FeatureLister { - return &featureLister{listers.New[*v1.Feature](indexer, v1.Resource("feature"))} + return &featureLister{listers.New[*managementv1.Feature](indexer, managementv1.Resource("feature"))} } diff --git a/pkg/listers/management/v1/ingressauthtoken.go b/pkg/listers/management/v1/ingressauthtoken.go index 4239c8e3..86754e2b 100644 --- a/pkg/listers/management/v1/ingressauthtoken.go +++ b/pkg/listers/management/v1/ingressauthtoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // IngressAuthTokenLister helps list IngressAuthTokens. @@ -14,19 +14,19 @@ import ( type IngressAuthTokenLister interface { // List lists all IngressAuthTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.IngressAuthToken, err error) + List(selector labels.Selector) (ret []*managementv1.IngressAuthToken, err error) // Get retrieves the IngressAuthToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.IngressAuthToken, error) + Get(name string) (*managementv1.IngressAuthToken, error) IngressAuthTokenListerExpansion } // ingressAuthTokenLister implements the IngressAuthTokenLister interface. type ingressAuthTokenLister struct { - listers.ResourceIndexer[*v1.IngressAuthToken] + listers.ResourceIndexer[*managementv1.IngressAuthToken] } // NewIngressAuthTokenLister returns a new IngressAuthTokenLister. func NewIngressAuthTokenLister(indexer cache.Indexer) IngressAuthTokenLister { - return &ingressAuthTokenLister{listers.New[*v1.IngressAuthToken](indexer, v1.Resource("ingressauthtoken"))} + return &ingressAuthTokenLister{listers.New[*managementv1.IngressAuthToken](indexer, managementv1.Resource("ingressauthtoken"))} } diff --git a/pkg/listers/management/v1/license.go b/pkg/listers/management/v1/license.go index 502e4751..a212ce89 100644 --- a/pkg/listers/management/v1/license.go +++ b/pkg/listers/management/v1/license.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // LicenseLister helps list Licenses. @@ -14,19 +14,19 @@ import ( type LicenseLister interface { // List lists all Licenses in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.License, err error) + List(selector labels.Selector) (ret []*managementv1.License, err error) // Get retrieves the License from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.License, error) + Get(name string) (*managementv1.License, error) LicenseListerExpansion } // licenseLister implements the LicenseLister interface. type licenseLister struct { - listers.ResourceIndexer[*v1.License] + listers.ResourceIndexer[*managementv1.License] } // NewLicenseLister returns a new LicenseLister. func NewLicenseLister(indexer cache.Indexer) LicenseLister { - return &licenseLister{listers.New[*v1.License](indexer, v1.Resource("license"))} + return &licenseLister{listers.New[*managementv1.License](indexer, managementv1.Resource("license"))} } diff --git a/pkg/listers/management/v1/licensetoken.go b/pkg/listers/management/v1/licensetoken.go index 43579dd7..ea43f256 100644 --- a/pkg/listers/management/v1/licensetoken.go +++ b/pkg/listers/management/v1/licensetoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // LicenseTokenLister helps list LicenseTokens. @@ -14,19 +14,19 @@ import ( type LicenseTokenLister interface { // List lists all LicenseTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.LicenseToken, err error) + List(selector labels.Selector) (ret []*managementv1.LicenseToken, err error) // Get retrieves the LicenseToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.LicenseToken, error) + Get(name string) (*managementv1.LicenseToken, error) LicenseTokenListerExpansion } // licenseTokenLister implements the LicenseTokenLister interface. type licenseTokenLister struct { - listers.ResourceIndexer[*v1.LicenseToken] + listers.ResourceIndexer[*managementv1.LicenseToken] } // NewLicenseTokenLister returns a new LicenseTokenLister. func NewLicenseTokenLister(indexer cache.Indexer) LicenseTokenLister { - return &licenseTokenLister{listers.New[*v1.LicenseToken](indexer, v1.Resource("licensetoken"))} + return &licenseTokenLister{listers.New[*managementv1.LicenseToken](indexer, managementv1.Resource("licensetoken"))} } diff --git a/pkg/listers/management/v1/loftupgrade.go b/pkg/listers/management/v1/loftupgrade.go index f52fc506..644fb840 100644 --- a/pkg/listers/management/v1/loftupgrade.go +++ b/pkg/listers/management/v1/loftupgrade.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // LoftUpgradeLister helps list LoftUpgrades. @@ -14,19 +14,19 @@ import ( type LoftUpgradeLister interface { // List lists all LoftUpgrades in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.LoftUpgrade, err error) + List(selector labels.Selector) (ret []*managementv1.LoftUpgrade, err error) // Get retrieves the LoftUpgrade from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.LoftUpgrade, error) + Get(name string) (*managementv1.LoftUpgrade, error) LoftUpgradeListerExpansion } // loftUpgradeLister implements the LoftUpgradeLister interface. type loftUpgradeLister struct { - listers.ResourceIndexer[*v1.LoftUpgrade] + listers.ResourceIndexer[*managementv1.LoftUpgrade] } // NewLoftUpgradeLister returns a new LoftUpgradeLister. func NewLoftUpgradeLister(indexer cache.Indexer) LoftUpgradeLister { - return &loftUpgradeLister{listers.New[*v1.LoftUpgrade](indexer, v1.Resource("loftupgrade"))} + return &loftUpgradeLister{listers.New[*managementv1.LoftUpgrade](indexer, managementv1.Resource("loftupgrade"))} } diff --git a/pkg/listers/management/v1/oidcclient.go b/pkg/listers/management/v1/oidcclient.go index 47842772..68a308d2 100644 --- a/pkg/listers/management/v1/oidcclient.go +++ b/pkg/listers/management/v1/oidcclient.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // OIDCClientLister helps list OIDCClients. @@ -14,19 +14,19 @@ import ( type OIDCClientLister interface { // List lists all OIDCClients in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.OIDCClient, err error) + List(selector labels.Selector) (ret []*managementv1.OIDCClient, err error) // Get retrieves the OIDCClient from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.OIDCClient, error) + Get(name string) (*managementv1.OIDCClient, error) OIDCClientListerExpansion } // oIDCClientLister implements the OIDCClientLister interface. type oIDCClientLister struct { - listers.ResourceIndexer[*v1.OIDCClient] + listers.ResourceIndexer[*managementv1.OIDCClient] } // NewOIDCClientLister returns a new OIDCClientLister. func NewOIDCClientLister(indexer cache.Indexer) OIDCClientLister { - return &oIDCClientLister{listers.New[*v1.OIDCClient](indexer, v1.Resource("oidcclient"))} + return &oIDCClientLister{listers.New[*managementv1.OIDCClient](indexer, managementv1.Resource("oidcclient"))} } diff --git a/pkg/listers/management/v1/ownedaccesskey.go b/pkg/listers/management/v1/ownedaccesskey.go index 1cbd7ae9..cf1277f7 100644 --- a/pkg/listers/management/v1/ownedaccesskey.go +++ b/pkg/listers/management/v1/ownedaccesskey.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // OwnedAccessKeyLister helps list OwnedAccessKeys. @@ -14,19 +14,19 @@ import ( type OwnedAccessKeyLister interface { // List lists all OwnedAccessKeys in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.OwnedAccessKey, err error) + List(selector labels.Selector) (ret []*managementv1.OwnedAccessKey, err error) // Get retrieves the OwnedAccessKey from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.OwnedAccessKey, error) + Get(name string) (*managementv1.OwnedAccessKey, error) OwnedAccessKeyListerExpansion } // ownedAccessKeyLister implements the OwnedAccessKeyLister interface. type ownedAccessKeyLister struct { - listers.ResourceIndexer[*v1.OwnedAccessKey] + listers.ResourceIndexer[*managementv1.OwnedAccessKey] } // NewOwnedAccessKeyLister returns a new OwnedAccessKeyLister. func NewOwnedAccessKeyLister(indexer cache.Indexer) OwnedAccessKeyLister { - return &ownedAccessKeyLister{listers.New[*v1.OwnedAccessKey](indexer, v1.Resource("ownedaccesskey"))} + return &ownedAccessKeyLister{listers.New[*managementv1.OwnedAccessKey](indexer, managementv1.Resource("ownedaccesskey"))} } diff --git a/pkg/listers/management/v1/project.go b/pkg/listers/management/v1/project.go index bb5bd6cb..441412a1 100644 --- a/pkg/listers/management/v1/project.go +++ b/pkg/listers/management/v1/project.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProjectLister helps list Projects. @@ -14,19 +14,19 @@ import ( type ProjectLister interface { // List lists all Projects in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Project, err error) + List(selector labels.Selector) (ret []*managementv1.Project, err error) // Get retrieves the Project from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Project, error) + Get(name string) (*managementv1.Project, error) ProjectListerExpansion } // projectLister implements the ProjectLister interface. type projectLister struct { - listers.ResourceIndexer[*v1.Project] + listers.ResourceIndexer[*managementv1.Project] } // NewProjectLister returns a new ProjectLister. func NewProjectLister(indexer cache.Indexer) ProjectLister { - return &projectLister{listers.New[*v1.Project](indexer, v1.Resource("project"))} + return &projectLister{listers.New[*managementv1.Project](indexer, managementv1.Resource("project"))} } diff --git a/pkg/listers/management/v1/projectsecret.go b/pkg/listers/management/v1/projectsecret.go index 5e46d9f9..b1fde715 100644 --- a/pkg/listers/management/v1/projectsecret.go +++ b/pkg/listers/management/v1/projectsecret.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ProjectSecretLister helps list ProjectSecrets. @@ -14,7 +14,7 @@ import ( type ProjectSecretLister interface { // List lists all ProjectSecrets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ProjectSecret, err error) + List(selector labels.Selector) (ret []*managementv1.ProjectSecret, err error) // ProjectSecrets returns an object that can list and get ProjectSecrets. ProjectSecrets(namespace string) ProjectSecretNamespaceLister ProjectSecretListerExpansion @@ -22,17 +22,17 @@ type ProjectSecretLister interface { // projectSecretLister implements the ProjectSecretLister interface. type projectSecretLister struct { - listers.ResourceIndexer[*v1.ProjectSecret] + listers.ResourceIndexer[*managementv1.ProjectSecret] } // NewProjectSecretLister returns a new ProjectSecretLister. func NewProjectSecretLister(indexer cache.Indexer) ProjectSecretLister { - return &projectSecretLister{listers.New[*v1.ProjectSecret](indexer, v1.Resource("projectsecret"))} + return &projectSecretLister{listers.New[*managementv1.ProjectSecret](indexer, managementv1.Resource("projectsecret"))} } // ProjectSecrets returns an object that can list and get ProjectSecrets. func (s *projectSecretLister) ProjectSecrets(namespace string) ProjectSecretNamespaceLister { - return projectSecretNamespaceLister{listers.NewNamespaced[*v1.ProjectSecret](s.ResourceIndexer, namespace)} + return projectSecretNamespaceLister{listers.NewNamespaced[*managementv1.ProjectSecret](s.ResourceIndexer, namespace)} } // ProjectSecretNamespaceLister helps list and get ProjectSecrets. @@ -40,15 +40,15 @@ func (s *projectSecretLister) ProjectSecrets(namespace string) ProjectSecretName type ProjectSecretNamespaceLister interface { // List lists all ProjectSecrets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ProjectSecret, err error) + List(selector labels.Selector) (ret []*managementv1.ProjectSecret, err error) // Get retrieves the ProjectSecret from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ProjectSecret, error) + Get(name string) (*managementv1.ProjectSecret, error) ProjectSecretNamespaceListerExpansion } // projectSecretNamespaceLister implements the ProjectSecretNamespaceLister // interface. type projectSecretNamespaceLister struct { - listers.ResourceIndexer[*v1.ProjectSecret] + listers.ResourceIndexer[*managementv1.ProjectSecret] } diff --git a/pkg/listers/management/v1/redirecttoken.go b/pkg/listers/management/v1/redirecttoken.go index 59771224..2ca8f25f 100644 --- a/pkg/listers/management/v1/redirecttoken.go +++ b/pkg/listers/management/v1/redirecttoken.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // RedirectTokenLister helps list RedirectTokens. @@ -14,19 +14,19 @@ import ( type RedirectTokenLister interface { // List lists all RedirectTokens in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.RedirectToken, err error) + List(selector labels.Selector) (ret []*managementv1.RedirectToken, err error) // Get retrieves the RedirectToken from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.RedirectToken, error) + Get(name string) (*managementv1.RedirectToken, error) RedirectTokenListerExpansion } // redirectTokenLister implements the RedirectTokenLister interface. type redirectTokenLister struct { - listers.ResourceIndexer[*v1.RedirectToken] + listers.ResourceIndexer[*managementv1.RedirectToken] } // NewRedirectTokenLister returns a new RedirectTokenLister. func NewRedirectTokenLister(indexer cache.Indexer) RedirectTokenLister { - return &redirectTokenLister{listers.New[*v1.RedirectToken](indexer, v1.Resource("redirecttoken"))} + return &redirectTokenLister{listers.New[*managementv1.RedirectToken](indexer, managementv1.Resource("redirecttoken"))} } diff --git a/pkg/listers/management/v1/registervirtualcluster.go b/pkg/listers/management/v1/registervirtualcluster.go index cd7cbee2..b5d603d3 100644 --- a/pkg/listers/management/v1/registervirtualcluster.go +++ b/pkg/listers/management/v1/registervirtualcluster.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // RegisterVirtualClusterLister helps list RegisterVirtualClusters. @@ -14,19 +14,19 @@ import ( type RegisterVirtualClusterLister interface { // List lists all RegisterVirtualClusters in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.RegisterVirtualCluster, err error) + List(selector labels.Selector) (ret []*managementv1.RegisterVirtualCluster, err error) // Get retrieves the RegisterVirtualCluster from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.RegisterVirtualCluster, error) + Get(name string) (*managementv1.RegisterVirtualCluster, error) RegisterVirtualClusterListerExpansion } // registerVirtualClusterLister implements the RegisterVirtualClusterLister interface. type registerVirtualClusterLister struct { - listers.ResourceIndexer[*v1.RegisterVirtualCluster] + listers.ResourceIndexer[*managementv1.RegisterVirtualCluster] } // NewRegisterVirtualClusterLister returns a new RegisterVirtualClusterLister. func NewRegisterVirtualClusterLister(indexer cache.Indexer) RegisterVirtualClusterLister { - return ®isterVirtualClusterLister{listers.New[*v1.RegisterVirtualCluster](indexer, v1.Resource("registervirtualcluster"))} + return ®isterVirtualClusterLister{listers.New[*managementv1.RegisterVirtualCluster](indexer, managementv1.Resource("registervirtualcluster"))} } diff --git a/pkg/listers/management/v1/resetaccesskey.go b/pkg/listers/management/v1/resetaccesskey.go index 924c185d..2ec680e0 100644 --- a/pkg/listers/management/v1/resetaccesskey.go +++ b/pkg/listers/management/v1/resetaccesskey.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ResetAccessKeyLister helps list ResetAccessKeys. @@ -14,19 +14,19 @@ import ( type ResetAccessKeyLister interface { // List lists all ResetAccessKeys in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ResetAccessKey, err error) + List(selector labels.Selector) (ret []*managementv1.ResetAccessKey, err error) // Get retrieves the ResetAccessKey from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ResetAccessKey, error) + Get(name string) (*managementv1.ResetAccessKey, error) ResetAccessKeyListerExpansion } // resetAccessKeyLister implements the ResetAccessKeyLister interface. type resetAccessKeyLister struct { - listers.ResourceIndexer[*v1.ResetAccessKey] + listers.ResourceIndexer[*managementv1.ResetAccessKey] } // NewResetAccessKeyLister returns a new ResetAccessKeyLister. func NewResetAccessKeyLister(indexer cache.Indexer) ResetAccessKeyLister { - return &resetAccessKeyLister{listers.New[*v1.ResetAccessKey](indexer, v1.Resource("resetaccesskey"))} + return &resetAccessKeyLister{listers.New[*managementv1.ResetAccessKey](indexer, managementv1.Resource("resetaccesskey"))} } diff --git a/pkg/listers/management/v1/runner.go b/pkg/listers/management/v1/runner.go index 42bc6239..ba8e509d 100644 --- a/pkg/listers/management/v1/runner.go +++ b/pkg/listers/management/v1/runner.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" ) // RunnerLister helps list Runners. @@ -14,19 +14,19 @@ import ( 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) + List(selector labels.Selector) (ret []*managementv1.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) + Get(name string) (*managementv1.Runner, error) RunnerListerExpansion } // runnerLister implements the RunnerLister interface. type runnerLister struct { - listers.ResourceIndexer[*v1.Runner] + listers.ResourceIndexer[*managementv1.Runner] } // NewRunnerLister returns a new RunnerLister. func NewRunnerLister(indexer cache.Indexer) RunnerLister { - return &runnerLister{listers.New[*v1.Runner](indexer, v1.Resource("runner"))} + return &runnerLister{listers.New[*managementv1.Runner](indexer, managementv1.Resource("runner"))} } diff --git a/pkg/listers/management/v1/self.go b/pkg/listers/management/v1/self.go index fba7f87c..c3f7883d 100644 --- a/pkg/listers/management/v1/self.go +++ b/pkg/listers/management/v1/self.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SelfLister helps list Selves. @@ -14,19 +14,19 @@ import ( type SelfLister interface { // List lists all Selves in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Self, err error) + List(selector labels.Selector) (ret []*managementv1.Self, err error) // Get retrieves the Self from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Self, error) + Get(name string) (*managementv1.Self, error) SelfListerExpansion } // selfLister implements the SelfLister interface. type selfLister struct { - listers.ResourceIndexer[*v1.Self] + listers.ResourceIndexer[*managementv1.Self] } // NewSelfLister returns a new SelfLister. func NewSelfLister(indexer cache.Indexer) SelfLister { - return &selfLister{listers.New[*v1.Self](indexer, v1.Resource("self"))} + return &selfLister{listers.New[*managementv1.Self](indexer, managementv1.Resource("self"))} } diff --git a/pkg/listers/management/v1/selfsubjectaccessreview.go b/pkg/listers/management/v1/selfsubjectaccessreview.go index 775816b7..88b158b2 100644 --- a/pkg/listers/management/v1/selfsubjectaccessreview.go +++ b/pkg/listers/management/v1/selfsubjectaccessreview.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SelfSubjectAccessReviewLister helps list SelfSubjectAccessReviews. @@ -14,19 +14,19 @@ import ( type SelfSubjectAccessReviewLister interface { // List lists all SelfSubjectAccessReviews in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SelfSubjectAccessReview, err error) + List(selector labels.Selector) (ret []*managementv1.SelfSubjectAccessReview, err error) // Get retrieves the SelfSubjectAccessReview from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SelfSubjectAccessReview, error) + Get(name string) (*managementv1.SelfSubjectAccessReview, error) SelfSubjectAccessReviewListerExpansion } // selfSubjectAccessReviewLister implements the SelfSubjectAccessReviewLister interface. type selfSubjectAccessReviewLister struct { - listers.ResourceIndexer[*v1.SelfSubjectAccessReview] + listers.ResourceIndexer[*managementv1.SelfSubjectAccessReview] } // NewSelfSubjectAccessReviewLister returns a new SelfSubjectAccessReviewLister. func NewSelfSubjectAccessReviewLister(indexer cache.Indexer) SelfSubjectAccessReviewLister { - return &selfSubjectAccessReviewLister{listers.New[*v1.SelfSubjectAccessReview](indexer, v1.Resource("selfsubjectaccessreview"))} + return &selfSubjectAccessReviewLister{listers.New[*managementv1.SelfSubjectAccessReview](indexer, managementv1.Resource("selfsubjectaccessreview"))} } diff --git a/pkg/listers/management/v1/sharedsecret.go b/pkg/listers/management/v1/sharedsecret.go index 9d7995cd..8786a290 100644 --- a/pkg/listers/management/v1/sharedsecret.go +++ b/pkg/listers/management/v1/sharedsecret.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SharedSecretLister helps list SharedSecrets. @@ -14,7 +14,7 @@ import ( type SharedSecretLister interface { // List lists all SharedSecrets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*managementv1.SharedSecret, err error) // SharedSecrets returns an object that can list and get SharedSecrets. SharedSecrets(namespace string) SharedSecretNamespaceLister SharedSecretListerExpansion @@ -22,17 +22,17 @@ type SharedSecretLister interface { // sharedSecretLister implements the SharedSecretLister interface. type sharedSecretLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*managementv1.SharedSecret] } // NewSharedSecretLister returns a new SharedSecretLister. func NewSharedSecretLister(indexer cache.Indexer) SharedSecretLister { - return &sharedSecretLister{listers.New[*v1.SharedSecret](indexer, v1.Resource("sharedsecret"))} + return &sharedSecretLister{listers.New[*managementv1.SharedSecret](indexer, managementv1.Resource("sharedsecret"))} } // SharedSecrets returns an object that can list and get SharedSecrets. func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespaceLister { - return sharedSecretNamespaceLister{listers.NewNamespaced[*v1.SharedSecret](s.ResourceIndexer, namespace)} + return sharedSecretNamespaceLister{listers.NewNamespaced[*managementv1.SharedSecret](s.ResourceIndexer, namespace)} } // SharedSecretNamespaceLister helps list and get SharedSecrets. @@ -40,15 +40,15 @@ func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespa type SharedSecretNamespaceLister interface { // List lists all SharedSecrets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*managementv1.SharedSecret, err error) // Get retrieves the SharedSecret from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SharedSecret, error) + Get(name string) (*managementv1.SharedSecret, error) SharedSecretNamespaceListerExpansion } // sharedSecretNamespaceLister implements the SharedSecretNamespaceLister // interface. type sharedSecretNamespaceLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*managementv1.SharedSecret] } diff --git a/pkg/listers/management/v1/spaceinstance.go b/pkg/listers/management/v1/spaceinstance.go index 2876be64..790e50f8 100644 --- a/pkg/listers/management/v1/spaceinstance.go +++ b/pkg/listers/management/v1/spaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceInstanceLister helps list SpaceInstances. @@ -14,7 +14,7 @@ import ( type SpaceInstanceLister interface { // List lists all SpaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.SpaceInstance, err error) // SpaceInstances returns an object that can list and get SpaceInstances. SpaceInstances(namespace string) SpaceInstanceNamespaceLister SpaceInstanceListerExpansion @@ -22,17 +22,17 @@ type SpaceInstanceLister interface { // spaceInstanceLister implements the SpaceInstanceLister interface. type spaceInstanceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*managementv1.SpaceInstance] } // NewSpaceInstanceLister returns a new SpaceInstanceLister. func NewSpaceInstanceLister(indexer cache.Indexer) SpaceInstanceLister { - return &spaceInstanceLister{listers.New[*v1.SpaceInstance](indexer, v1.Resource("spaceinstance"))} + return &spaceInstanceLister{listers.New[*managementv1.SpaceInstance](indexer, managementv1.Resource("spaceinstance"))} } // SpaceInstances returns an object that can list and get SpaceInstances. func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceNamespaceLister { - return spaceInstanceNamespaceLister{listers.NewNamespaced[*v1.SpaceInstance](s.ResourceIndexer, namespace)} + return spaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.SpaceInstance](s.ResourceIndexer, namespace)} } // SpaceInstanceNamespaceLister helps list and get SpaceInstances. @@ -40,15 +40,15 @@ func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceName type SpaceInstanceNamespaceLister interface { // List lists all SpaceInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*managementv1.SpaceInstance, err error) // Get retrieves the SpaceInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceInstance, error) + Get(name string) (*managementv1.SpaceInstance, error) SpaceInstanceNamespaceListerExpansion } // spaceInstanceNamespaceLister implements the SpaceInstanceNamespaceLister // interface. type spaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*managementv1.SpaceInstance] } diff --git a/pkg/listers/management/v1/spacetemplate.go b/pkg/listers/management/v1/spacetemplate.go index efeda367..bdbae57a 100644 --- a/pkg/listers/management/v1/spacetemplate.go +++ b/pkg/listers/management/v1/spacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceTemplateLister helps list SpaceTemplates. @@ -14,19 +14,19 @@ import ( type SpaceTemplateLister interface { // List lists all SpaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.SpaceTemplate, err error) // Get retrieves the SpaceTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceTemplate, error) + Get(name string) (*managementv1.SpaceTemplate, error) SpaceTemplateListerExpansion } // spaceTemplateLister implements the SpaceTemplateLister interface. type spaceTemplateLister struct { - listers.ResourceIndexer[*v1.SpaceTemplate] + listers.ResourceIndexer[*managementv1.SpaceTemplate] } // NewSpaceTemplateLister returns a new SpaceTemplateLister. func NewSpaceTemplateLister(indexer cache.Indexer) SpaceTemplateLister { - return &spaceTemplateLister{listers.New[*v1.SpaceTemplate](indexer, v1.Resource("spacetemplate"))} + return &spaceTemplateLister{listers.New[*managementv1.SpaceTemplate](indexer, managementv1.Resource("spacetemplate"))} } diff --git a/pkg/listers/management/v1/subjectaccessreview.go b/pkg/listers/management/v1/subjectaccessreview.go index b90d7a76..0d322b28 100644 --- a/pkg/listers/management/v1/subjectaccessreview.go +++ b/pkg/listers/management/v1/subjectaccessreview.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SubjectAccessReviewLister helps list SubjectAccessReviews. @@ -14,19 +14,19 @@ import ( type SubjectAccessReviewLister interface { // List lists all SubjectAccessReviews in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SubjectAccessReview, err error) + List(selector labels.Selector) (ret []*managementv1.SubjectAccessReview, err error) // Get retrieves the SubjectAccessReview from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SubjectAccessReview, error) + Get(name string) (*managementv1.SubjectAccessReview, error) SubjectAccessReviewListerExpansion } // subjectAccessReviewLister implements the SubjectAccessReviewLister interface. type subjectAccessReviewLister struct { - listers.ResourceIndexer[*v1.SubjectAccessReview] + listers.ResourceIndexer[*managementv1.SubjectAccessReview] } // NewSubjectAccessReviewLister returns a new SubjectAccessReviewLister. func NewSubjectAccessReviewLister(indexer cache.Indexer) SubjectAccessReviewLister { - return &subjectAccessReviewLister{listers.New[*v1.SubjectAccessReview](indexer, v1.Resource("subjectaccessreview"))} + return &subjectAccessReviewLister{listers.New[*managementv1.SubjectAccessReview](indexer, managementv1.Resource("subjectaccessreview"))} } diff --git a/pkg/listers/management/v1/task.go b/pkg/listers/management/v1/task.go index 17a7f862..b50ff1e1 100644 --- a/pkg/listers/management/v1/task.go +++ b/pkg/listers/management/v1/task.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TaskLister helps list Tasks. @@ -14,19 +14,19 @@ import ( type TaskLister interface { // List lists all Tasks in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Task, err error) + List(selector labels.Selector) (ret []*managementv1.Task, err error) // Get retrieves the Task from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Task, error) + Get(name string) (*managementv1.Task, error) TaskListerExpansion } // taskLister implements the TaskLister interface. type taskLister struct { - listers.ResourceIndexer[*v1.Task] + listers.ResourceIndexer[*managementv1.Task] } // NewTaskLister returns a new TaskLister. func NewTaskLister(indexer cache.Indexer) TaskLister { - return &taskLister{listers.New[*v1.Task](indexer, v1.Resource("task"))} + return &taskLister{listers.New[*managementv1.Task](indexer, managementv1.Resource("task"))} } diff --git a/pkg/listers/management/v1/team.go b/pkg/listers/management/v1/team.go index eea3dd23..f86e6c62 100644 --- a/pkg/listers/management/v1/team.go +++ b/pkg/listers/management/v1/team.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TeamLister helps list Teams. @@ -14,19 +14,19 @@ import ( type TeamLister interface { // List lists all Teams in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Team, err error) + List(selector labels.Selector) (ret []*managementv1.Team, err error) // Get retrieves the Team from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Team, error) + Get(name string) (*managementv1.Team, error) TeamListerExpansion } // teamLister implements the TeamLister interface. type teamLister struct { - listers.ResourceIndexer[*v1.Team] + listers.ResourceIndexer[*managementv1.Team] } // NewTeamLister returns a new TeamLister. func NewTeamLister(indexer cache.Indexer) TeamLister { - return &teamLister{listers.New[*v1.Team](indexer, v1.Resource("team"))} + return &teamLister{listers.New[*managementv1.Team](indexer, managementv1.Resource("team"))} } diff --git a/pkg/listers/management/v1/translatevclusterresourcename.go b/pkg/listers/management/v1/translatevclusterresourcename.go index 6904a4ac..b859bd84 100644 --- a/pkg/listers/management/v1/translatevclusterresourcename.go +++ b/pkg/listers/management/v1/translatevclusterresourcename.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TranslateVClusterResourceNameLister helps list TranslateVClusterResourceNames. @@ -14,19 +14,19 @@ import ( type TranslateVClusterResourceNameLister interface { // List lists all TranslateVClusterResourceNames in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.TranslateVClusterResourceName, err error) + List(selector labels.Selector) (ret []*managementv1.TranslateVClusterResourceName, err error) // Get retrieves the TranslateVClusterResourceName from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.TranslateVClusterResourceName, error) + Get(name string) (*managementv1.TranslateVClusterResourceName, error) TranslateVClusterResourceNameListerExpansion } // translateVClusterResourceNameLister implements the TranslateVClusterResourceNameLister interface. type translateVClusterResourceNameLister struct { - listers.ResourceIndexer[*v1.TranslateVClusterResourceName] + listers.ResourceIndexer[*managementv1.TranslateVClusterResourceName] } // NewTranslateVClusterResourceNameLister returns a new TranslateVClusterResourceNameLister. func NewTranslateVClusterResourceNameLister(indexer cache.Indexer) TranslateVClusterResourceNameLister { - return &translateVClusterResourceNameLister{listers.New[*v1.TranslateVClusterResourceName](indexer, v1.Resource("translatevclusterresourcename"))} + return &translateVClusterResourceNameLister{listers.New[*managementv1.TranslateVClusterResourceName](indexer, managementv1.Resource("translatevclusterresourcename"))} } diff --git a/pkg/listers/management/v1/user.go b/pkg/listers/management/v1/user.go index 4aad0125..64eb1b0c 100644 --- a/pkg/listers/management/v1/user.go +++ b/pkg/listers/management/v1/user.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // UserLister helps list Users. @@ -14,19 +14,19 @@ import ( type UserLister interface { // List lists all Users in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.User, err error) + List(selector labels.Selector) (ret []*managementv1.User, err error) // Get retrieves the User from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.User, error) + Get(name string) (*managementv1.User, error) UserListerExpansion } // userLister implements the UserLister interface. type userLister struct { - listers.ResourceIndexer[*v1.User] + listers.ResourceIndexer[*managementv1.User] } // NewUserLister returns a new UserLister. func NewUserLister(indexer cache.Indexer) UserLister { - return &userLister{listers.New[*v1.User](indexer, v1.Resource("user"))} + return &userLister{listers.New[*managementv1.User](indexer, managementv1.Resource("user"))} } diff --git a/pkg/listers/management/v1/virtualclusterinstance.go b/pkg/listers/management/v1/virtualclusterinstance.go index 864a37f9..1642813c 100644 --- a/pkg/listers/management/v1/virtualclusterinstance.go +++ b/pkg/listers/management/v1/virtualclusterinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterInstanceLister helps list VirtualClusterInstances. @@ -14,7 +14,7 @@ import ( type VirtualClusterInstanceLister interface { // List lists all VirtualClusterInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*managementv1.VirtualClusterInstance, err error) // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister VirtualClusterInstanceListerExpansion @@ -22,17 +22,17 @@ type VirtualClusterInstanceLister interface { // virtualClusterInstanceLister implements the VirtualClusterInstanceLister interface. type virtualClusterInstanceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*managementv1.VirtualClusterInstance] } // NewVirtualClusterInstanceLister returns a new VirtualClusterInstanceLister. func NewVirtualClusterInstanceLister(indexer cache.Indexer) VirtualClusterInstanceLister { - return &virtualClusterInstanceLister{listers.New[*v1.VirtualClusterInstance](indexer, v1.Resource("virtualclusterinstance"))} + return &virtualClusterInstanceLister{listers.New[*managementv1.VirtualClusterInstance](indexer, managementv1.Resource("virtualclusterinstance"))} } // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister { - return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*v1.VirtualClusterInstance](s.ResourceIndexer, namespace)} + return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*managementv1.VirtualClusterInstance](s.ResourceIndexer, namespace)} } // VirtualClusterInstanceNamespaceLister helps list and get VirtualClusterInstances. @@ -40,15 +40,15 @@ func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) type VirtualClusterInstanceNamespaceLister interface { // List lists all VirtualClusterInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*managementv1.VirtualClusterInstance, err error) // Get retrieves the VirtualClusterInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterInstance, error) + Get(name string) (*managementv1.VirtualClusterInstance, error) VirtualClusterInstanceNamespaceListerExpansion } // virtualClusterInstanceNamespaceLister implements the VirtualClusterInstanceNamespaceLister // interface. type virtualClusterInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*managementv1.VirtualClusterInstance] } diff --git a/pkg/listers/management/v1/virtualclustertemplate.go b/pkg/listers/management/v1/virtualclustertemplate.go index 015267d8..2c7b0bfb 100644 --- a/pkg/listers/management/v1/virtualclustertemplate.go +++ b/pkg/listers/management/v1/virtualclustertemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterTemplateLister helps list VirtualClusterTemplates. @@ -14,19 +14,19 @@ import ( type VirtualClusterTemplateLister interface { // List lists all VirtualClusterTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterTemplate, err error) + List(selector labels.Selector) (ret []*managementv1.VirtualClusterTemplate, err error) // Get retrieves the VirtualClusterTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterTemplate, error) + Get(name string) (*managementv1.VirtualClusterTemplate, error) VirtualClusterTemplateListerExpansion } // virtualClusterTemplateLister implements the VirtualClusterTemplateLister interface. type virtualClusterTemplateLister struct { - listers.ResourceIndexer[*v1.VirtualClusterTemplate] + listers.ResourceIndexer[*managementv1.VirtualClusterTemplate] } // NewVirtualClusterTemplateLister returns a new VirtualClusterTemplateLister. func NewVirtualClusterTemplateLister(indexer cache.Indexer) VirtualClusterTemplateLister { - return &virtualClusterTemplateLister{listers.New[*v1.VirtualClusterTemplate](indexer, v1.Resource("virtualclustertemplate"))} + return &virtualClusterTemplateLister{listers.New[*managementv1.VirtualClusterTemplate](indexer, managementv1.Resource("virtualclustertemplate"))} } diff --git a/pkg/listers/storage/v1/accesskey.go b/pkg/listers/storage/v1/accesskey.go index 0a7da2ec..21822c4a 100644 --- a/pkg/listers/storage/v1/accesskey.go +++ b/pkg/listers/storage/v1/accesskey.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AccessKeyLister helps list AccessKeys. @@ -14,19 +14,19 @@ import ( type AccessKeyLister interface { // List lists all AccessKeys in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.AccessKey, err error) + List(selector labels.Selector) (ret []*storagev1.AccessKey, err error) // Get retrieves the AccessKey from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.AccessKey, error) + Get(name string) (*storagev1.AccessKey, error) AccessKeyListerExpansion } // accessKeyLister implements the AccessKeyLister interface. type accessKeyLister struct { - listers.ResourceIndexer[*v1.AccessKey] + listers.ResourceIndexer[*storagev1.AccessKey] } // NewAccessKeyLister returns a new AccessKeyLister. func NewAccessKeyLister(indexer cache.Indexer) AccessKeyLister { - return &accessKeyLister{listers.New[*v1.AccessKey](indexer, v1.Resource("accesskey"))} + return &accessKeyLister{listers.New[*storagev1.AccessKey](indexer, storagev1.Resource("accesskey"))} } diff --git a/pkg/listers/storage/v1/app.go b/pkg/listers/storage/v1/app.go index 97fc8c0a..7ab5077a 100644 --- a/pkg/listers/storage/v1/app.go +++ b/pkg/listers/storage/v1/app.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // AppLister helps list Apps. @@ -14,19 +14,19 @@ import ( type AppLister interface { // List lists all Apps in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.App, err error) + List(selector labels.Selector) (ret []*storagev1.App, err error) // Get retrieves the App from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.App, error) + Get(name string) (*storagev1.App, error) AppListerExpansion } // appLister implements the AppLister interface. type appLister struct { - listers.ResourceIndexer[*v1.App] + listers.ResourceIndexer[*storagev1.App] } // NewAppLister returns a new AppLister. func NewAppLister(indexer cache.Indexer) AppLister { - return &appLister{listers.New[*v1.App](indexer, v1.Resource("app"))} + return &appLister{listers.New[*storagev1.App](indexer, storagev1.Resource("app"))} } diff --git a/pkg/listers/storage/v1/cluster.go b/pkg/listers/storage/v1/cluster.go index 5199adb6..20e23d3e 100644 --- a/pkg/listers/storage/v1/cluster.go +++ b/pkg/listers/storage/v1/cluster.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterLister helps list Clusters. @@ -14,19 +14,19 @@ import ( type ClusterLister interface { // List lists all Clusters in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Cluster, err error) + List(selector labels.Selector) (ret []*storagev1.Cluster, err error) // Get retrieves the Cluster from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Cluster, error) + Get(name string) (*storagev1.Cluster, error) ClusterListerExpansion } // clusterLister implements the ClusterLister interface. type clusterLister struct { - listers.ResourceIndexer[*v1.Cluster] + listers.ResourceIndexer[*storagev1.Cluster] } // NewClusterLister returns a new ClusterLister. func NewClusterLister(indexer cache.Indexer) ClusterLister { - return &clusterLister{listers.New[*v1.Cluster](indexer, v1.Resource("cluster"))} + return &clusterLister{listers.New[*storagev1.Cluster](indexer, storagev1.Resource("cluster"))} } diff --git a/pkg/listers/storage/v1/clusteraccess.go b/pkg/listers/storage/v1/clusteraccess.go index 5ad7a45f..8ec43119 100644 --- a/pkg/listers/storage/v1/clusteraccess.go +++ b/pkg/listers/storage/v1/clusteraccess.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterAccessLister helps list ClusterAccesses. @@ -14,19 +14,19 @@ import ( type ClusterAccessLister interface { // List lists all ClusterAccesses in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterAccess, err error) + List(selector labels.Selector) (ret []*storagev1.ClusterAccess, err error) // Get retrieves the ClusterAccess from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterAccess, error) + Get(name string) (*storagev1.ClusterAccess, error) ClusterAccessListerExpansion } // clusterAccessLister implements the ClusterAccessLister interface. type clusterAccessLister struct { - listers.ResourceIndexer[*v1.ClusterAccess] + listers.ResourceIndexer[*storagev1.ClusterAccess] } // NewClusterAccessLister returns a new ClusterAccessLister. func NewClusterAccessLister(indexer cache.Indexer) ClusterAccessLister { - return &clusterAccessLister{listers.New[*v1.ClusterAccess](indexer, v1.Resource("clusteraccess"))} + return &clusterAccessLister{listers.New[*storagev1.ClusterAccess](indexer, storagev1.Resource("clusteraccess"))} } diff --git a/pkg/listers/storage/v1/clusterroletemplate.go b/pkg/listers/storage/v1/clusterroletemplate.go index b91d7c87..67306da5 100644 --- a/pkg/listers/storage/v1/clusterroletemplate.go +++ b/pkg/listers/storage/v1/clusterroletemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // ClusterRoleTemplateLister helps list ClusterRoleTemplates. @@ -14,19 +14,19 @@ import ( type ClusterRoleTemplateLister interface { // List lists all ClusterRoleTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.ClusterRoleTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.ClusterRoleTemplate, err error) // Get retrieves the ClusterRoleTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.ClusterRoleTemplate, error) + Get(name string) (*storagev1.ClusterRoleTemplate, error) ClusterRoleTemplateListerExpansion } // clusterRoleTemplateLister implements the ClusterRoleTemplateLister interface. type clusterRoleTemplateLister struct { - listers.ResourceIndexer[*v1.ClusterRoleTemplate] + listers.ResourceIndexer[*storagev1.ClusterRoleTemplate] } // NewClusterRoleTemplateLister returns a new ClusterRoleTemplateLister. func NewClusterRoleTemplateLister(indexer cache.Indexer) ClusterRoleTemplateLister { - return &clusterRoleTemplateLister{listers.New[*v1.ClusterRoleTemplate](indexer, v1.Resource("clusterroletemplate"))} + return &clusterRoleTemplateLister{listers.New[*storagev1.ClusterRoleTemplate](indexer, storagev1.Resource("clusterroletemplate"))} } diff --git a/pkg/listers/storage/v1/devpodenvironmenttemplate.go b/pkg/listers/storage/v1/devpodenvironmenttemplate.go index 8e1b07ca..d26162b5 100644 --- a/pkg/listers/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/listers/storage/v1/devpodenvironmenttemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. @@ -14,19 +14,19 @@ import ( type DevPodEnvironmentTemplateLister interface { // List lists all DevPodEnvironmentTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodEnvironmentTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.DevPodEnvironmentTemplate, err error) // Get retrieves the DevPodEnvironmentTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodEnvironmentTemplate, error) + Get(name string) (*storagev1.DevPodEnvironmentTemplate, error) DevPodEnvironmentTemplateListerExpansion } // devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodEnvironmentTemplate] + listers.ResourceIndexer[*storagev1.DevPodEnvironmentTemplate] } // NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*v1.DevPodEnvironmentTemplate](indexer, v1.Resource("devpodenvironmenttemplate"))} + return &devPodEnvironmentTemplateLister{listers.New[*storagev1.DevPodEnvironmentTemplate](indexer, storagev1.Resource("devpodenvironmenttemplate"))} } diff --git a/pkg/listers/storage/v1/devpodworkspaceinstance.go b/pkg/listers/storage/v1/devpodworkspaceinstance.go index 40b34cee..8bee50d2 100644 --- a/pkg/listers/storage/v1/devpodworkspaceinstance.go +++ b/pkg/listers/storage/v1/devpodworkspaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. @@ -14,7 +14,7 @@ import ( type DevPodWorkspaceInstanceLister interface { // List lists all DevPodWorkspaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister DevPodWorkspaceInstanceListerExpansion @@ -22,17 +22,17 @@ type DevPodWorkspaceInstanceLister interface { // devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] } // NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*v1.DevPodWorkspaceInstance](indexer, v1.Resource("devpodworkspaceinstance"))} + return &devPodWorkspaceInstanceLister{listers.New[*storagev1.DevPodWorkspaceInstance](indexer, storagev1.Resource("devpodworkspaceinstance"))} } // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister { - return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*v1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} + return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} } // DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. @@ -40,15 +40,15 @@ func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace strin type DevPodWorkspaceInstanceNamespaceLister interface { // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) // Get retrieves the DevPodWorkspaceInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodWorkspaceInstance, error) + Get(name string) (*storagev1.DevPodWorkspaceInstance, error) DevPodWorkspaceInstanceNamespaceListerExpansion } // devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister // interface. type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceInstance] + listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] } diff --git a/pkg/listers/storage/v1/devpodworkspacepreset.go b/pkg/listers/storage/v1/devpodworkspacepreset.go index ca475058..fd969161 100644 --- a/pkg/listers/storage/v1/devpodworkspacepreset.go +++ b/pkg/listers/storage/v1/devpodworkspacepreset.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" ) // DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. @@ -14,19 +14,19 @@ import ( type DevPodWorkspacePresetLister interface { // List lists all DevPodWorkspacePresets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspacePreset, err error) + List(selector labels.Selector) (ret []*storagev1.DevPodWorkspacePreset, err error) // Get retrieves the DevPodWorkspacePreset from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodWorkspacePreset, error) + Get(name string) (*storagev1.DevPodWorkspacePreset, error) DevPodWorkspacePresetListerExpansion } // devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. type devPodWorkspacePresetLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspacePreset] + listers.ResourceIndexer[*storagev1.DevPodWorkspacePreset] } // NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { - return &devPodWorkspacePresetLister{listers.New[*v1.DevPodWorkspacePreset](indexer, v1.Resource("devpodworkspacepreset"))} + return &devPodWorkspacePresetLister{listers.New[*storagev1.DevPodWorkspacePreset](indexer, storagev1.Resource("devpodworkspacepreset"))} } diff --git a/pkg/listers/storage/v1/devpodworkspacetemplate.go b/pkg/listers/storage/v1/devpodworkspacetemplate.go index 9e146f4e..4b64dc0d 100644 --- a/pkg/listers/storage/v1/devpodworkspacetemplate.go +++ b/pkg/listers/storage/v1/devpodworkspacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. @@ -14,19 +14,19 @@ import ( type DevPodWorkspaceTemplateLister interface { // List lists all DevPodWorkspaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.DevPodWorkspaceTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceTemplate, err error) // Get retrieves the DevPodWorkspaceTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.DevPodWorkspaceTemplate, error) + Get(name string) (*storagev1.DevPodWorkspaceTemplate, error) DevPodWorkspaceTemplateListerExpansion } // devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*v1.DevPodWorkspaceTemplate] + listers.ResourceIndexer[*storagev1.DevPodWorkspaceTemplate] } // NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*v1.DevPodWorkspaceTemplate](indexer, v1.Resource("devpodworkspacetemplate"))} + return &devPodWorkspaceTemplateLister{listers.New[*storagev1.DevPodWorkspaceTemplate](indexer, storagev1.Resource("devpodworkspacetemplate"))} } diff --git a/pkg/listers/storage/v1/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/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 index 3fc9dede..7c9c9f4a 100644 --- a/pkg/listers/storage/v1/runner.go +++ b/pkg/listers/storage/v1/runner.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" ) // RunnerLister helps list Runners. @@ -14,19 +14,19 @@ import ( 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) + List(selector labels.Selector) (ret []*storagev1.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) + Get(name string) (*storagev1.Runner, error) RunnerListerExpansion } // runnerLister implements the RunnerLister interface. type runnerLister struct { - listers.ResourceIndexer[*v1.Runner] + listers.ResourceIndexer[*storagev1.Runner] } // NewRunnerLister returns a new RunnerLister. func NewRunnerLister(indexer cache.Indexer) RunnerLister { - return &runnerLister{listers.New[*v1.Runner](indexer, v1.Resource("runner"))} + return &runnerLister{listers.New[*storagev1.Runner](indexer, storagev1.Resource("runner"))} } diff --git a/pkg/listers/storage/v1/sharedsecret.go b/pkg/listers/storage/v1/sharedsecret.go index 528bc2db..7669cc9f 100644 --- a/pkg/listers/storage/v1/sharedsecret.go +++ b/pkg/listers/storage/v1/sharedsecret.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SharedSecretLister helps list SharedSecrets. @@ -14,7 +14,7 @@ import ( type SharedSecretLister interface { // List lists all SharedSecrets in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*storagev1.SharedSecret, err error) // SharedSecrets returns an object that can list and get SharedSecrets. SharedSecrets(namespace string) SharedSecretNamespaceLister SharedSecretListerExpansion @@ -22,17 +22,17 @@ type SharedSecretLister interface { // sharedSecretLister implements the SharedSecretLister interface. type sharedSecretLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*storagev1.SharedSecret] } // NewSharedSecretLister returns a new SharedSecretLister. func NewSharedSecretLister(indexer cache.Indexer) SharedSecretLister { - return &sharedSecretLister{listers.New[*v1.SharedSecret](indexer, v1.Resource("sharedsecret"))} + return &sharedSecretLister{listers.New[*storagev1.SharedSecret](indexer, storagev1.Resource("sharedsecret"))} } // SharedSecrets returns an object that can list and get SharedSecrets. func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespaceLister { - return sharedSecretNamespaceLister{listers.NewNamespaced[*v1.SharedSecret](s.ResourceIndexer, namespace)} + return sharedSecretNamespaceLister{listers.NewNamespaced[*storagev1.SharedSecret](s.ResourceIndexer, namespace)} } // SharedSecretNamespaceLister helps list and get SharedSecrets. @@ -40,15 +40,15 @@ func (s *sharedSecretLister) SharedSecrets(namespace string) SharedSecretNamespa type SharedSecretNamespaceLister interface { // List lists all SharedSecrets in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SharedSecret, err error) + List(selector labels.Selector) (ret []*storagev1.SharedSecret, err error) // Get retrieves the SharedSecret from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SharedSecret, error) + Get(name string) (*storagev1.SharedSecret, error) SharedSecretNamespaceListerExpansion } // sharedSecretNamespaceLister implements the SharedSecretNamespaceLister // interface. type sharedSecretNamespaceLister struct { - listers.ResourceIndexer[*v1.SharedSecret] + listers.ResourceIndexer[*storagev1.SharedSecret] } diff --git a/pkg/listers/storage/v1/spaceinstance.go b/pkg/listers/storage/v1/spaceinstance.go index 4a3b1810..382c0914 100644 --- a/pkg/listers/storage/v1/spaceinstance.go +++ b/pkg/listers/storage/v1/spaceinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceInstanceLister helps list SpaceInstances. @@ -14,7 +14,7 @@ import ( type SpaceInstanceLister interface { // List lists all SpaceInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.SpaceInstance, err error) // SpaceInstances returns an object that can list and get SpaceInstances. SpaceInstances(namespace string) SpaceInstanceNamespaceLister SpaceInstanceListerExpansion @@ -22,17 +22,17 @@ type SpaceInstanceLister interface { // spaceInstanceLister implements the SpaceInstanceLister interface. type spaceInstanceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*storagev1.SpaceInstance] } // NewSpaceInstanceLister returns a new SpaceInstanceLister. func NewSpaceInstanceLister(indexer cache.Indexer) SpaceInstanceLister { - return &spaceInstanceLister{listers.New[*v1.SpaceInstance](indexer, v1.Resource("spaceinstance"))} + return &spaceInstanceLister{listers.New[*storagev1.SpaceInstance](indexer, storagev1.Resource("spaceinstance"))} } // SpaceInstances returns an object that can list and get SpaceInstances. func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceNamespaceLister { - return spaceInstanceNamespaceLister{listers.NewNamespaced[*v1.SpaceInstance](s.ResourceIndexer, namespace)} + return spaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.SpaceInstance](s.ResourceIndexer, namespace)} } // SpaceInstanceNamespaceLister helps list and get SpaceInstances. @@ -40,15 +40,15 @@ func (s *spaceInstanceLister) SpaceInstances(namespace string) SpaceInstanceName type SpaceInstanceNamespaceLister interface { // List lists all SpaceInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceInstance, err error) + List(selector labels.Selector) (ret []*storagev1.SpaceInstance, err error) // Get retrieves the SpaceInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceInstance, error) + Get(name string) (*storagev1.SpaceInstance, error) SpaceInstanceNamespaceListerExpansion } // spaceInstanceNamespaceLister implements the SpaceInstanceNamespaceLister // interface. type spaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.SpaceInstance] + listers.ResourceIndexer[*storagev1.SpaceInstance] } diff --git a/pkg/listers/storage/v1/spacetemplate.go b/pkg/listers/storage/v1/spacetemplate.go index aa7d44b3..98fa37e7 100644 --- a/pkg/listers/storage/v1/spacetemplate.go +++ b/pkg/listers/storage/v1/spacetemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // SpaceTemplateLister helps list SpaceTemplates. @@ -14,19 +14,19 @@ import ( type SpaceTemplateLister interface { // List lists all SpaceTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.SpaceTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.SpaceTemplate, err error) // Get retrieves the SpaceTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.SpaceTemplate, error) + Get(name string) (*storagev1.SpaceTemplate, error) SpaceTemplateListerExpansion } // spaceTemplateLister implements the SpaceTemplateLister interface. type spaceTemplateLister struct { - listers.ResourceIndexer[*v1.SpaceTemplate] + listers.ResourceIndexer[*storagev1.SpaceTemplate] } // NewSpaceTemplateLister returns a new SpaceTemplateLister. func NewSpaceTemplateLister(indexer cache.Indexer) SpaceTemplateLister { - return &spaceTemplateLister{listers.New[*v1.SpaceTemplate](indexer, v1.Resource("spacetemplate"))} + return &spaceTemplateLister{listers.New[*storagev1.SpaceTemplate](indexer, storagev1.Resource("spacetemplate"))} } diff --git a/pkg/listers/storage/v1/task.go b/pkg/listers/storage/v1/task.go index 03d0fdb0..f56caed5 100644 --- a/pkg/listers/storage/v1/task.go +++ b/pkg/listers/storage/v1/task.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TaskLister helps list Tasks. @@ -14,19 +14,19 @@ import ( type TaskLister interface { // List lists all Tasks in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Task, err error) + List(selector labels.Selector) (ret []*storagev1.Task, err error) // Get retrieves the Task from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Task, error) + Get(name string) (*storagev1.Task, error) TaskListerExpansion } // taskLister implements the TaskLister interface. type taskLister struct { - listers.ResourceIndexer[*v1.Task] + listers.ResourceIndexer[*storagev1.Task] } // NewTaskLister returns a new TaskLister. func NewTaskLister(indexer cache.Indexer) TaskLister { - return &taskLister{listers.New[*v1.Task](indexer, v1.Resource("task"))} + return &taskLister{listers.New[*storagev1.Task](indexer, storagev1.Resource("task"))} } diff --git a/pkg/listers/storage/v1/team.go b/pkg/listers/storage/v1/team.go index f144ab51..d68cbea1 100644 --- a/pkg/listers/storage/v1/team.go +++ b/pkg/listers/storage/v1/team.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // TeamLister helps list Teams. @@ -14,19 +14,19 @@ import ( type TeamLister interface { // List lists all Teams in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.Team, err error) + List(selector labels.Selector) (ret []*storagev1.Team, err error) // Get retrieves the Team from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.Team, error) + Get(name string) (*storagev1.Team, error) TeamListerExpansion } // teamLister implements the TeamLister interface. type teamLister struct { - listers.ResourceIndexer[*v1.Team] + listers.ResourceIndexer[*storagev1.Team] } // NewTeamLister returns a new TeamLister. func NewTeamLister(indexer cache.Indexer) TeamLister { - return &teamLister{listers.New[*v1.Team](indexer, v1.Resource("team"))} + return &teamLister{listers.New[*storagev1.Team](indexer, storagev1.Resource("team"))} } diff --git a/pkg/listers/storage/v1/user.go b/pkg/listers/storage/v1/user.go index 026fce10..e0aa38d1 100644 --- a/pkg/listers/storage/v1/user.go +++ b/pkg/listers/storage/v1/user.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // UserLister helps list Users. @@ -14,19 +14,19 @@ import ( type UserLister interface { // List lists all Users in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.User, err error) + List(selector labels.Selector) (ret []*storagev1.User, err error) // Get retrieves the User from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.User, error) + Get(name string) (*storagev1.User, error) UserListerExpansion } // userLister implements the UserLister interface. type userLister struct { - listers.ResourceIndexer[*v1.User] + listers.ResourceIndexer[*storagev1.User] } // NewUserLister returns a new UserLister. func NewUserLister(indexer cache.Indexer) UserLister { - return &userLister{listers.New[*v1.User](indexer, v1.Resource("user"))} + return &userLister{listers.New[*storagev1.User](indexer, storagev1.Resource("user"))} } diff --git a/pkg/listers/storage/v1/virtualclusterinstance.go b/pkg/listers/storage/v1/virtualclusterinstance.go index a801501b..577f643c 100644 --- a/pkg/listers/storage/v1/virtualclusterinstance.go +++ b/pkg/listers/storage/v1/virtualclusterinstance.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterInstanceLister helps list VirtualClusterInstances. @@ -14,7 +14,7 @@ import ( type VirtualClusterInstanceLister interface { // List lists all VirtualClusterInstances in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*storagev1.VirtualClusterInstance, err error) // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister VirtualClusterInstanceListerExpansion @@ -22,17 +22,17 @@ type VirtualClusterInstanceLister interface { // virtualClusterInstanceLister implements the VirtualClusterInstanceLister interface. type virtualClusterInstanceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*storagev1.VirtualClusterInstance] } // NewVirtualClusterInstanceLister returns a new VirtualClusterInstanceLister. func NewVirtualClusterInstanceLister(indexer cache.Indexer) VirtualClusterInstanceLister { - return &virtualClusterInstanceLister{listers.New[*v1.VirtualClusterInstance](indexer, v1.Resource("virtualclusterinstance"))} + return &virtualClusterInstanceLister{listers.New[*storagev1.VirtualClusterInstance](indexer, storagev1.Resource("virtualclusterinstance"))} } // VirtualClusterInstances returns an object that can list and get VirtualClusterInstances. func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) VirtualClusterInstanceNamespaceLister { - return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*v1.VirtualClusterInstance](s.ResourceIndexer, namespace)} + return virtualClusterInstanceNamespaceLister{listers.NewNamespaced[*storagev1.VirtualClusterInstance](s.ResourceIndexer, namespace)} } // VirtualClusterInstanceNamespaceLister helps list and get VirtualClusterInstances. @@ -40,15 +40,15 @@ func (s *virtualClusterInstanceLister) VirtualClusterInstances(namespace string) type VirtualClusterInstanceNamespaceLister interface { // List lists all VirtualClusterInstances in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterInstance, err error) + List(selector labels.Selector) (ret []*storagev1.VirtualClusterInstance, err error) // Get retrieves the VirtualClusterInstance from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterInstance, error) + Get(name string) (*storagev1.VirtualClusterInstance, error) VirtualClusterInstanceNamespaceListerExpansion } // virtualClusterInstanceNamespaceLister implements the VirtualClusterInstanceNamespaceLister // interface. type virtualClusterInstanceNamespaceLister struct { - listers.ResourceIndexer[*v1.VirtualClusterInstance] + listers.ResourceIndexer[*storagev1.VirtualClusterInstance] } diff --git a/pkg/listers/storage/v1/virtualclustertemplate.go b/pkg/listers/storage/v1/virtualclustertemplate.go index 582dc79d..a10ee5af 100644 --- a/pkg/listers/storage/v1/virtualclustertemplate.go +++ b/pkg/listers/storage/v1/virtualclustertemplate.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // VirtualClusterTemplateLister helps list VirtualClusterTemplates. @@ -14,19 +14,19 @@ import ( type VirtualClusterTemplateLister interface { // List lists all VirtualClusterTemplates in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.VirtualClusterTemplate, err error) + List(selector labels.Selector) (ret []*storagev1.VirtualClusterTemplate, err error) // Get retrieves the VirtualClusterTemplate from the index for a given name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.VirtualClusterTemplate, error) + Get(name string) (*storagev1.VirtualClusterTemplate, error) VirtualClusterTemplateListerExpansion } // virtualClusterTemplateLister implements the VirtualClusterTemplateLister interface. type virtualClusterTemplateLister struct { - listers.ResourceIndexer[*v1.VirtualClusterTemplate] + listers.ResourceIndexer[*storagev1.VirtualClusterTemplate] } // NewVirtualClusterTemplateLister returns a new VirtualClusterTemplateLister. func NewVirtualClusterTemplateLister(indexer cache.Indexer) VirtualClusterTemplateLister { - return &virtualClusterTemplateLister{listers.New[*v1.VirtualClusterTemplate](indexer, v1.Resource("virtualclustertemplate"))} + return &virtualClusterTemplateLister{listers.New[*storagev1.VirtualClusterTemplate](indexer, storagev1.Resource("virtualclustertemplate"))} } diff --git a/pkg/listers/virtualcluster/v1/helmrelease.go b/pkg/listers/virtualcluster/v1/helmrelease.go index 580cf5e6..59ab5915 100644 --- a/pkg/listers/virtualcluster/v1/helmrelease.go +++ b/pkg/listers/virtualcluster/v1/helmrelease.go @@ -3,10 +3,10 @@ package v1 import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/listers" - "k8s.io/client-go/tools/cache" + virtualclusterv1 "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" ) // HelmReleaseLister helps list HelmReleases. @@ -14,7 +14,7 @@ import ( type HelmReleaseLister interface { // List lists all HelmReleases in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.HelmRelease, err error) + List(selector labels.Selector) (ret []*virtualclusterv1.HelmRelease, err error) // HelmReleases returns an object that can list and get HelmReleases. HelmReleases(namespace string) HelmReleaseNamespaceLister HelmReleaseListerExpansion @@ -22,17 +22,17 @@ type HelmReleaseLister interface { // helmReleaseLister implements the HelmReleaseLister interface. type helmReleaseLister struct { - listers.ResourceIndexer[*v1.HelmRelease] + listers.ResourceIndexer[*virtualclusterv1.HelmRelease] } // NewHelmReleaseLister returns a new HelmReleaseLister. func NewHelmReleaseLister(indexer cache.Indexer) HelmReleaseLister { - return &helmReleaseLister{listers.New[*v1.HelmRelease](indexer, v1.Resource("helmrelease"))} + return &helmReleaseLister{listers.New[*virtualclusterv1.HelmRelease](indexer, virtualclusterv1.Resource("helmrelease"))} } // HelmReleases returns an object that can list and get HelmReleases. func (s *helmReleaseLister) HelmReleases(namespace string) HelmReleaseNamespaceLister { - return helmReleaseNamespaceLister{listers.NewNamespaced[*v1.HelmRelease](s.ResourceIndexer, namespace)} + return helmReleaseNamespaceLister{listers.NewNamespaced[*virtualclusterv1.HelmRelease](s.ResourceIndexer, namespace)} } // HelmReleaseNamespaceLister helps list and get HelmReleases. @@ -40,15 +40,15 @@ func (s *helmReleaseLister) HelmReleases(namespace string) HelmReleaseNamespaceL type HelmReleaseNamespaceLister interface { // List lists all HelmReleases in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1.HelmRelease, err error) + List(selector labels.Selector) (ret []*virtualclusterv1.HelmRelease, err error) // Get retrieves the HelmRelease from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1.HelmRelease, error) + Get(name string) (*virtualclusterv1.HelmRelease, error) HelmReleaseNamespaceListerExpansion } // helmReleaseNamespaceLister implements the HelmReleaseNamespaceLister // interface. type helmReleaseNamespaceLister struct { - listers.ResourceIndexer[*v1.HelmRelease] + listers.ResourceIndexer[*virtualclusterv1.HelmRelease] } diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index cfadf0f3..f1385de7 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -30530,10 +30530,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30695,10 +30694,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30797,10 +30795,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32198,10 +32195,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -34588,7 +34584,7 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm }, "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta.", + Description: "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down.", Ref: ref("k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy"), }, }, @@ -35733,7 +35729,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) }, "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.", + Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", Ref: ref("k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy"), }, }, @@ -37432,7 +37428,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) }, "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.", + Description: "PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", Ref: ref("k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy"), }, }, @@ -40272,7 +40268,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: "", @@ -40299,7 +40295,7 @@ func schema_k8sio_api_autoscaling_v1_MetricSpec(ref common.ReferenceCallback) co }, "containerResource": { SchemaProps: spec.SchemaProps{ - Description: "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", + Description: "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", Ref: ref("k8s.io/api/autoscaling/v1.ContainerResourceMetricSource"), }, }, @@ -40327,7 +40323,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: "", @@ -41229,7 +41225,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: "", @@ -41255,7 +41251,7 @@ func schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref common.ReferenceCallbac }, "containerResource": { SchemaProps: spec.SchemaProps{ - Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", + Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", Ref: ref("k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource"), }, }, @@ -41283,7 +41279,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: "", @@ -42198,7 +42194,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: "", @@ -42224,7 +42220,7 @@ func schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref common.ReferenceCallbac }, "containerResource": { SchemaProps: spec.SchemaProps{ - Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.", + Description: "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", Ref: ref("k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource"), }, }, @@ -42252,7 +42248,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: "", @@ -43061,7 +43057,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "managedBy": { SchemaProps: spec.SchemaProps{ - Description: "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).", + Description: "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).", Type: []string{"string"}, Format: "", }, @@ -44699,7 +44695,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": { @@ -44743,7 +44739,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": { @@ -48220,7 +48216,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{ @@ -48868,25 +48865,25 @@ func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.", + Description: "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "sleep": { SchemaProps: spec.SchemaProps{ - Description: "Sleep represents the duration that the container should sleep before being terminated.", + Description: "Sleep represents a duration that the container should sleep.", Ref: ref("k8s.io/api/core/v1.SleepAction"), }, }, @@ -49340,7 +49337,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": { @@ -49507,19 +49504,22 @@ func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) c }, "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Last time the condition transitioned from one status to another.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, "reason": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Unique, one-word, CamelCase reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", }, }, "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Human-readable message indicating details about last transition.", + Type: []string{"string"}, + Format: "", }, }, }, @@ -50377,7 +50377,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, SchemaProps: spec.SchemaProps{ - Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -50401,7 +50401,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, SchemaProps: spec.SchemaProps{ - Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + Description: "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -50422,7 +50422,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, "nodeInfo": { SchemaProps: spec.SchemaProps{ - Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", + Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/reference/node/node-status/#info", Default: map[string]interface{}{}, Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), }, @@ -50828,16 +50828,18 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.Referenc Properties: map[string]spec.Schema{ "type": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required", + Default: "", + Type: []string{"string"}, + Format: "", }, }, "lastProbeTime": { @@ -51266,13 +51268,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac Properties: map[string]spec.Schema{ "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, @@ -51284,7 +51286,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), }, }, @@ -51296,7 +51298,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), }, }, @@ -51308,13 +51310,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), }, }, @@ -51326,55 +51328,55 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), }, }, @@ -51386,13 +51388,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallbac }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", + Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md", Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", + Description: "csi represents storage that is handled by an external CSI driver.", Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), }, }, @@ -51427,13 +51429,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, @@ -51445,7 +51447,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), }, }, @@ -51457,7 +51459,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), }, }, @@ -51469,13 +51471,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), }, }, @@ -51487,55 +51489,55 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), }, }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), }, }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), }, }, @@ -51547,13 +51549,13 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md", + Description: "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported. More info: https://examples.k8s.io/volumes/storageos/README.md", Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", + Description: "csi represents storage that is handled by an external CSI driver.", Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), }, }, @@ -52180,15 +52182,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: "", }, }, }, @@ -52417,7 +52420,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", }, @@ -52436,6 +52439,13 @@ func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common Format: "", }, }, + "stream": { + SchemaProps: spec.SchemaProps{ + Description: "Specify which container log stream to return to the client. Acceptable values are \"All\", \"Stdout\" and \"Stderr\". If not specified, \"All\" is used, and both stdout and stderr are returned interleaved. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\".", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -52770,6 +52780,13 @@ func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) c Ref: ref("k8s.io/api/core/v1.AppArmorProfile"), }, }, + "seLinuxChangePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are \"MountOption\" and \"Recursive\".\n\n\"Recursive\" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.\n\n\"MountOption\" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. \"MountOption\" value is allowed only when SELinuxMount feature gate is enabled.\n\nIf not specified and SELinuxMount feature gate is enabled, \"MountOption\" is used. If not specified and SELinuxMount feature gate is disabled, \"MountOption\" is used for ReadWriteOncePod volumes and \"Recursive\" for all other volumes.\n\nThis field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.\n\nAll Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -53277,12 +53294,18 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, }, Required: []string{"containers"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -53418,7 +53441,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + Description: "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -53437,7 +53460,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -53464,7 +53487,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "Status for any ephemeral containers that have run in this pod.", + Description: "Statuses for any ephemeral containers that have run in this pod. Each ephemeral container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -53685,7 +53708,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{ @@ -53837,25 +53861,25 @@ func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPI Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", + Description: "TCPSocket specifies a connection to a TCP port.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", + Description: "GRPC specifies a GRPC HealthCheckRequest.", Ref: ref("k8s.io/api/core/v1.GRPCAction"), }, }, @@ -53918,25 +53942,25 @@ func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common. Properties: map[string]spec.Schema{ "exec": { SchemaProps: spec.SchemaProps{ - Description: "Exec specifies the action to take.", + Description: "Exec specifies a command to execute in the container.", Ref: ref("k8s.io/api/core/v1.ExecAction"), }, }, "httpGet": { SchemaProps: spec.SchemaProps{ - Description: "HTTPGet specifies the http request to perform.", + Description: "HTTPGet specifies an HTTP GET request to perform.", Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), }, }, "tcpSocket": { SchemaProps: spec.SchemaProps{ - Description: "TCPSocket specifies an action involving a TCP port.", + Description: "TCPSocket specifies a connection to a TCP port.", Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), }, }, "grpc": { SchemaProps: spec.SchemaProps{ - Description: "GRPC specifies an action involving a GRPC port.", + Description: "GRPC specifies a GRPC HealthCheckRequest.", Ref: ref("k8s.io/api/core/v1.GRPCAction"), }, }, @@ -54635,7 +54659,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": { @@ -54929,11 +54953,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: "", @@ -54949,7 +54974,7 @@ func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + Description: "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -55881,7 +55906,7 @@ func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + Description: "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -56390,7 +56415,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 topologically close (e.g., same zone). This is a beta field and requires enabling ServiceTrafficDistribution feature.", Type: []string{"string"}, Format: "", }, @@ -56962,7 +56987,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{ @@ -57030,19 +57056,19 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, "gitRepo": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), }, }, @@ -57066,7 +57092,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -57078,31 +57104,31 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), }, }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, @@ -57120,7 +57146,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), }, }, @@ -57132,25 +57158,25 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, @@ -57162,25 +57188,25 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), }, }, @@ -57475,19 +57501,19 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "gcePersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), }, }, "awsElasticBlockStore": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), }, }, "gitRepo": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), }, }, @@ -57511,7 +57537,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -57523,31 +57549,31 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, "flexVolume": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), }, }, "cinder": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), }, }, "cephfs": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), }, }, "flocker": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), }, }, @@ -57565,7 +57591,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "azureFile": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), }, }, @@ -57577,25 +57603,25 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "vsphereVolume": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), }, }, "quobyte": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), }, }, "azureDisk": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), }, }, "photonPersistentDisk": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), }, }, @@ -57607,25 +57633,25 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "portworxVolume": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), }, }, "scaleIO": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), }, }, "storageos": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), }, }, "csi": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), }, }, @@ -66113,7 +66139,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": { @@ -66496,7 +66522,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": { @@ -67557,7 +67583,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": { @@ -68514,6 +68540,13 @@ func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common. }, }, }, + "ignoreStoreReadErrorWithClusterBreakingPotential": { + SchemaProps: spec.SchemaProps{ + Description: "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, From 29b178b52022145646422304f2b54af80b51f421 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 19 Feb 2025 18:58:44 +0000 Subject: [PATCH 13/30] [skip ci] repo-sync --- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index dacae426..9995a081 100644 --- a/go.mod +++ b/go.mod @@ -5,15 +5,15 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.3.0-alpha.3 - github.com/loft-sh/apiserver v0.0.0-20250129120545-2a1d356b8c09 + github.com/loft-sh/agentapi/v4 v4.3.0-alpha.4 + github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 k8s.io/api v0.32.1 k8s.io/apimachinery v0.32.1 k8s.io/apiserver v0.32.1 k8s.io/client-go v0.32.1 k8s.io/klog/v2 v2.130.1 k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f - sigs.k8s.io/controller-runtime v0.19.4 + sigs.k8s.io/controller-runtime v0.20.1 sigs.k8s.io/controller-tools v0.16.4 ) @@ -42,7 +42,7 @@ require ( github.com/gobuffalo/flect v1.0.3 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.4 // indirect - github.com/google/btree v1.1.2 // indirect + github.com/google/btree v1.1.3 // indirect github.com/google/cel-go v0.22.0 // indirect github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect github.com/google/go-cmp v0.6.0 // indirect diff --git a/go.sum b/go.sum index 04e3816d..a1f806b3 100644 --- a/go.sum +++ b/go.sum @@ -61,8 +61,8 @@ github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOW github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= -github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/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.22.0 h1:b3FJZxpiv1vTMo2/5RDUqAHPxkT8mmMfJIrq1llbf7g= github.com/google/cel-go v0.22.0/go.mod h1:BuznPXXfQDpXKWQ9sPW3TzlAJN5zzFe+i9tIs0yC4s8= github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 h1:0VpGH+cDhbDtdcweoyCVsF3fhN8kejK6rFe/2FFX2nU= @@ -107,10 +107,10 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.3 h1:iLIlKqCp5yJRSj8lRzdFY13lFxpC3E074SVG57AwiUg= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.3/go.mod h1:imhggZChC4bswQEOpw4Z8lyiQl4q/Oz2z4f/QsIOOEs= -github.com/loft-sh/apiserver v0.0.0-20250129120545-2a1d356b8c09 h1:9/3hVZH4H/GVTJGSip5NNcxCzk6m0/Kk328NX+9KhqQ= -github.com/loft-sh/apiserver v0.0.0-20250129120545-2a1d356b8c09/go.mod h1:5luOftx5fijULX70pfeyBxELMtBv7YElhY+ZByoNqJs= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.4 h1:vgEHLhmVU1xxPKmzjhvJC/HQ1wmNfbdyTHhDd2JT/N4= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.4/go.mod h1:FXdbcwRXnxMfIpoR0zR8m7H5kyQtVv5tFhKNIcwywts= +github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= +github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= 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= @@ -308,8 +308,8 @@ k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6J k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= -sigs.k8s.io/controller-runtime v0.19.4 h1:SUmheabttt0nx8uJtoII4oIP27BVVvAKFvdvGFwV/Qo= -sigs.k8s.io/controller-runtime v0.19.4/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= +sigs.k8s.io/controller-runtime v0.20.1 h1:JbGMAG/X94NeM3xvjenVUaBjy6Ui4Ogd/J5ZtjZnHaE= +sigs.k8s.io/controller-runtime v0.20.1/go.mod h1:BrP3w158MwvB3ZbNpaAcIKkHQ7YGpYnzpoSTZ8E14WU= sigs.k8s.io/controller-tools v0.16.4 h1:VXmar78eDXbx1by/H09ikEq1hiq3bqInxuV3lMr3GmQ= sigs.k8s.io/controller-tools v0.16.4/go.mod h1:kcsZyYMXiOFuBhofSPtkB90zTSxVRxVVyvtKQcx3q1A= sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= From 39a1b36e9974cbc43162e5d6e13d4103a132d824 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Tue, 4 Mar 2025 12:43:09 +0000 Subject: [PATCH 14/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- .../install/zz_generated.api.register.go | 2 + .../v1/cluster_agentconfig_types.go | 13 + pkg/apis/management/v1/user_profile_types.go | 12 + .../management/v1/virtualcluster_schema.go | 35 +++ .../v1/zz_generated.api.register.go | 11 + .../management/v1/zz_generated.conversion.go | 208 +++++++++++++++ .../management/v1/zz_generated.deepcopy.go | 155 +++++++++++ .../management/zz_generated.api.register.go | 211 +++++++++++++-- pkg/apis/management/zz_generated.deepcopy.go | 155 +++++++++++ pkg/apis/zz_generated.api.register.go | 1 + .../v1/fake/fake_management_client.go | 4 + .../v1/fake/fake_virtualclusterschema.go | 36 +++ .../management/v1/generated_expansion.go | 2 + .../typed/management/v1/management_client.go | 5 + .../management/v1/virtualclusterschema.go | 54 ++++ pkg/informers/externalversions/generic.go | 2 + .../management/v1/interface.go | 7 + .../management/v1/virtualclusterschema.go | 73 +++++ .../management/v1/expansion_generated.go | 4 + .../management/v1/virtualclusterschema.go | 32 +++ pkg/openapi/zz_generated.openapi.go | 251 +++++++++++++++++- 23 files changed, 1251 insertions(+), 28 deletions(-) create mode 100644 pkg/apis/management/v1/virtualcluster_schema.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterschema.go create mode 100644 pkg/clientset/versioned/typed/management/v1/virtualclusterschema.go create mode 100644 pkg/informers/externalversions/management/v1/virtualclusterschema.go create mode 100644 pkg/listers/management/v1/virtualclusterschema.go diff --git a/go.mod b/go.mod index 9995a081..171340e2 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.3.0-alpha.4 + github.com/loft-sh/agentapi/v4 v4.3.0-alpha.5 github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 k8s.io/api v0.32.1 k8s.io/apimachinery v0.32.1 diff --git a/go.sum b/go.sum index a1f806b3..d46ac362 100644 --- a/go.sum +++ b/go.sum @@ -107,8 +107,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.4 h1:vgEHLhmVU1xxPKmzjhvJC/HQ1wmNfbdyTHhDd2JT/N4= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.4/go.mod h1:FXdbcwRXnxMfIpoR0zR8m7H5kyQtVv5tFhKNIcwywts= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.5 h1:shcFbMW9TqhDLJ2d3Ki6b+Q0VIOFr3xcbhs97SH7SjA= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.5/go.mod h1:FXdbcwRXnxMfIpoR0zR8m7H5kyQtVv5tFhKNIcwywts= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index 73392728..4eed3970 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -142,6 +142,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.VirtualClusterExternalDatabase{}, &management.VirtualClusterInstanceKubeConfig{}, &management.VirtualClusterInstanceLog{}, + &management.VirtualClusterSchema{}, + &management.VirtualClusterSchemaList{}, &management.VirtualClusterTemplate{}, &management.VirtualClusterTemplateList{}, ) diff --git a/pkg/apis/management/v1/cluster_agentconfig_types.go b/pkg/apis/management/v1/cluster_agentconfig_types.go index 05ad1f11..a3a742a8 100644 --- a/pkg/apis/management/v1/cluster_agentconfig_types.go +++ b/pkg/apis/management/v1/cluster_agentconfig_types.go @@ -47,6 +47,9 @@ type ClusterAgentConfigCommon struct { // AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend. AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` + + // CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure + CostControl *AgentCostControlConfig `json:"costControl,omitempty"` } type AgentAuditConfig struct { @@ -100,3 +103,13 @@ type AgentAuditConfig struct { type AgentAnalyticsSpec struct { AnalyticsEndpoint string `json:"analyticsEndpoint,omitempty"` } + +type AgentCostControlConfig struct { + // Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure + // that provides dashboard data is deployed + Enabled *bool `json:"enabled,omitempty"` + + // CostControlClusterConfig are settings for each cluster's managed components. These settings apply to all connected clusters + // unless overridden by modifying the Cluster's spec + CostControlClusterConfig `json:",inline"` +} diff --git a/pkg/apis/management/v1/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/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/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index b3bd53ce..6f64772c 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -133,6 +133,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &VirtualClusterExternalDatabase{}, &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, + &VirtualClusterSchema{}, + &VirtualClusterSchemaList{}, &VirtualClusterTemplate{}, &VirtualClusterTemplateList{}, ) @@ -441,6 +443,7 @@ var ( nil, management.NewVirtualClusterInstanceLogREST, ), + management.ManagementVirtualClusterSchemaStorage, management.ManagementVirtualClusterTemplateStorage, ) @@ -1115,6 +1118,14 @@ type VirtualClusterInstanceLogList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type VirtualClusterSchemaList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []VirtualClusterSchema `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type VirtualClusterTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index e5f3f90e..6a3fe682 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -90,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 { @@ -2720,6 +2730,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*UserProfileSecret)(nil), (*management.UserProfileSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserProfileSecret_To_management_UserProfileSecret(a.(*UserProfileSecret), b.(*management.UserProfileSecret), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserProfileSecret)(nil), (*UserProfileSecret)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserProfileSecret_To_v1_UserProfileSecret(a.(*management.UserProfileSecret), b.(*UserProfileSecret), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*UserQuotasOptions)(nil), (*management.UserQuotasOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_UserQuotasOptions_To_management_UserQuotasOptions(a.(*UserQuotasOptions), b.(*management.UserQuotasOptions), scope) }); err != nil { @@ -2940,6 +2960,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchema)(nil), (*management.VirtualClusterSchema)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(a.(*VirtualClusterSchema), b.(*management.VirtualClusterSchema), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchema)(nil), (*VirtualClusterSchema)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(a.(*management.VirtualClusterSchema), b.(*VirtualClusterSchema), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchemaList)(nil), (*management.VirtualClusterSchemaList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(a.(*VirtualClusterSchemaList), b.(*management.VirtualClusterSchemaList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchemaList)(nil), (*VirtualClusterSchemaList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(a.(*management.VirtualClusterSchemaList), b.(*VirtualClusterSchemaList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchemaSpec)(nil), (*management.VirtualClusterSchemaSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(a.(*VirtualClusterSchemaSpec), b.(*management.VirtualClusterSchemaSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchemaSpec)(nil), (*VirtualClusterSchemaSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(a.(*management.VirtualClusterSchemaSpec), b.(*VirtualClusterSchemaSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*VirtualClusterSchemaStatus)(nil), (*management.VirtualClusterSchemaStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(a.(*VirtualClusterSchemaStatus), b.(*management.VirtualClusterSchemaStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterSchemaStatus)(nil), (*VirtualClusterSchemaStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(a.(*management.VirtualClusterSchemaStatus), b.(*VirtualClusterSchemaStatus), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*VirtualClusterTemplate)(nil), (*management.VirtualClusterTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_VirtualClusterTemplate_To_management_VirtualClusterTemplate(a.(*VirtualClusterTemplate), b.(*management.VirtualClusterTemplate), scope) }); err != nil { @@ -3190,6 +3250,32 @@ func Convert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in *ma return autoConvert_management_AgentAuditEventStatus_To_v1_AgentAuditEventStatus(in, out, s) } +func autoConvert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(in *AgentCostControlConfig, out *management.AgentCostControlConfig, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + if err := Convert_v1_CostControlClusterConfig_To_management_CostControlClusterConfig(&in.CostControlClusterConfig, &out.CostControlClusterConfig, s); err != nil { + return err + } + return nil +} + +// Convert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig is an autogenerated conversion function. +func Convert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(in *AgentCostControlConfig, out *management.AgentCostControlConfig, s conversion.Scope) error { + return autoConvert_v1_AgentCostControlConfig_To_management_AgentCostControlConfig(in, out, s) +} + +func autoConvert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(in *management.AgentCostControlConfig, out *AgentCostControlConfig, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + if err := Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(&in.CostControlClusterConfig, &out.CostControlClusterConfig, s); err != nil { + return err + } + return nil +} + +// Convert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig is an autogenerated conversion function. +func Convert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(in *management.AgentCostControlConfig, out *AgentCostControlConfig, s conversion.Scope) error { + return autoConvert_management_AgentCostControlConfig_To_v1_AgentCostControlConfig(in, out, s) +} + func autoConvert_v1_Announcement_To_management_Announcement(in *Announcement, out *management.Announcement, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_AnnouncementSpec_To_management_AnnouncementSpec(&in.Spec, &out.Spec, s); err != nil { @@ -4318,6 +4404,7 @@ func autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCom if err := Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { return err } + out.CostControl = (*management.AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) return nil } @@ -4337,6 +4424,7 @@ func autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCom if err := Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { return err } + out.CostControl = (*AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) return nil } @@ -9788,6 +9876,7 @@ func autoConvert_v1_UserProfile_To_management_UserProfile(in *UserProfile, out * out.Email = in.Email out.Icon = (*string)(unsafe.Pointer(in.Icon)) out.Custom = in.Custom + out.Secrets = (*map[string]*management.UserProfileSecret)(unsafe.Pointer(in.Secrets)) return nil } @@ -9805,6 +9894,7 @@ func autoConvert_management_UserProfile_To_v1_UserProfile(in *management.UserPro out.Email = in.Email out.Icon = (*string)(unsafe.Pointer(in.Icon)) out.Custom = in.Custom + out.Secrets = (*map[string]*UserProfileSecret)(unsafe.Pointer(in.Secrets)) return nil } @@ -9835,6 +9925,28 @@ func Convert_management_UserProfileList_To_v1_UserProfileList(in *management.Use return autoConvert_management_UserProfileList_To_v1_UserProfileList(in, out, s) } +func autoConvert_v1_UserProfileSecret_To_management_UserProfileSecret(in *UserProfileSecret, out *management.UserProfileSecret, s conversion.Scope) error { + out.Type = in.Type + out.Data = in.Data + return nil +} + +// Convert_v1_UserProfileSecret_To_management_UserProfileSecret is an autogenerated conversion function. +func Convert_v1_UserProfileSecret_To_management_UserProfileSecret(in *UserProfileSecret, out *management.UserProfileSecret, s conversion.Scope) error { + return autoConvert_v1_UserProfileSecret_To_management_UserProfileSecret(in, out, s) +} + +func autoConvert_management_UserProfileSecret_To_v1_UserProfileSecret(in *management.UserProfileSecret, out *UserProfileSecret, s conversion.Scope) error { + out.Type = in.Type + out.Data = in.Data + return nil +} + +// Convert_management_UserProfileSecret_To_v1_UserProfileSecret is an autogenerated conversion function. +func Convert_management_UserProfileSecret_To_v1_UserProfileSecret(in *management.UserProfileSecret, out *UserProfileSecret, s conversion.Scope) error { + return autoConvert_management_UserProfileSecret_To_v1_UserProfileSecret(in, out, s) +} + func autoConvert_v1_UserQuotasOptions_To_management_UserQuotasOptions(in *UserQuotasOptions, out *management.UserQuotasOptions, s conversion.Scope) error { out.Cluster = *(*[]string)(unsafe.Pointer(&in.Cluster)) return nil @@ -10469,6 +10581,102 @@ func Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanc return autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in, out, s) } +func autoConvert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in *VirtualClusterSchema, out *management.VirtualClusterSchema, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in *VirtualClusterSchema, out *management.VirtualClusterSchema, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in, out, s) +} + +func autoConvert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in *management.VirtualClusterSchema, out *VirtualClusterSchema, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema is an autogenerated conversion function. +func Convert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in *management.VirtualClusterSchema, out *VirtualClusterSchema, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchema_To_v1_VirtualClusterSchema(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in *VirtualClusterSchemaList, out *management.VirtualClusterSchemaList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterSchema)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in *VirtualClusterSchemaList, out *management.VirtualClusterSchemaList, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchemaList_To_management_VirtualClusterSchemaList(in, out, s) +} + +func autoConvert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in *management.VirtualClusterSchemaList, out *VirtualClusterSchemaList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterSchema)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList is an autogenerated conversion function. +func Convert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in *management.VirtualClusterSchemaList, out *VirtualClusterSchemaList, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchemaList_To_v1_VirtualClusterSchemaList(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in *VirtualClusterSchemaSpec, out *management.VirtualClusterSchemaSpec, s conversion.Scope) error { + out.Version = in.Version + return nil +} + +// Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in *VirtualClusterSchemaSpec, out *management.VirtualClusterSchemaSpec, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(in, out, s) +} + +func autoConvert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in *management.VirtualClusterSchemaSpec, out *VirtualClusterSchemaSpec, s conversion.Scope) error { + out.Version = in.Version + return nil +} + +// Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec is an autogenerated conversion function. +func Convert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in *management.VirtualClusterSchemaSpec, out *VirtualClusterSchemaSpec, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchemaSpec_To_v1_VirtualClusterSchemaSpec(in, out, s) +} + +func autoConvert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(in *VirtualClusterSchemaStatus, out *management.VirtualClusterSchemaStatus, s conversion.Scope) error { + out.Schema = in.Schema + out.DefaultValues = in.DefaultValues + return nil +} + +// Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus is an autogenerated conversion function. +func Convert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(in *VirtualClusterSchemaStatus, out *management.VirtualClusterSchemaStatus, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterSchemaStatus_To_management_VirtualClusterSchemaStatus(in, out, s) +} + +func autoConvert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in *management.VirtualClusterSchemaStatus, out *VirtualClusterSchemaStatus, s conversion.Scope) error { + out.Schema = in.Schema + out.DefaultValues = in.DefaultValues + return nil +} + +// Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus is an autogenerated conversion function. +func Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in *management.VirtualClusterSchemaStatus, out *VirtualClusterSchemaStatus, s conversion.Scope) error { + return autoConvert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in, out, s) +} + func autoConvert_v1_VirtualClusterTemplate_To_management_VirtualClusterTemplate(in *VirtualClusterTemplate, out *management.VirtualClusterTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_VirtualClusterTemplateSpec_To_management_VirtualClusterTemplateSpec(&in.Spec, &out.Spec, s); err != nil { diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index dbcf7a96..233296ea 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -154,6 +154,28 @@ func (in *AgentAuditEventStatus) DeepCopy() *AgentAuditEventStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AgentCostControlConfig) DeepCopyInto(out *AgentCostControlConfig) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + in.CostControlClusterConfig.DeepCopyInto(&out.CostControlClusterConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentCostControlConfig. +func (in *AgentCostControlConfig) DeepCopy() *AgentCostControlConfig { + if in == nil { + return nil + } + out := new(AgentCostControlConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Announcement) DeepCopyInto(out *Announcement) { *out = *in @@ -1291,6 +1313,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 } @@ -7225,6 +7252,25 @@ func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = new(string) **out = **in } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = new(map[string]*UserProfileSecret) + if **in != nil { + in, out := *in, *out + *out = make(map[string]*UserProfileSecret, len(*in)) + for key, val := range *in { + var outVal *UserProfileSecret + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UserProfileSecret) + **out = **in + } + (*out)[key] = outVal + } + } + } return } @@ -7279,6 +7325,22 @@ func (in *UserProfileList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileSecret. +func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { + if in == nil { + return nil + } + out := new(UserProfileSecret) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *out = *in @@ -7856,6 +7918,99 @@ func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchema. +func (in *VirtualClusterSchema) DeepCopy() *VirtualClusterSchema { + if in == nil { + return nil + } + out := new(VirtualClusterSchema) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterSchema, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaList. +func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaSpec. +func (in *VirtualClusterSchemaSpec) DeepCopy() *VirtualClusterSchemaSpec { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaStatus. +func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterTemplate) DeepCopyInto(out *VirtualClusterTemplate) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 25ae096e..448ddcbc 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -443,7 +443,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 @@ -1254,7 +1264,19 @@ var ( return NewVirtualClusterInstanceLogRESTFunc(Factory) } NewVirtualClusterInstanceLogRESTFunc NewRESTFunc - InternalVirtualClusterTemplate = builders.NewInternalResource( + InternalVirtualClusterSchema = builders.NewInternalResource( + "virtualclusterschemas", + "VirtualClusterSchema", + func() runtime.Object { return &VirtualClusterSchema{} }, + func() runtime.Object { return &VirtualClusterSchemaList{} }, + ) + InternalVirtualClusterSchemaStatus = builders.NewInternalResourceStatus( + "virtualclusterschemas", + "VirtualClusterSchemaStatus", + func() runtime.Object { return &VirtualClusterSchema{} }, + func() runtime.Object { return &VirtualClusterSchemaList{} }, + ) + InternalVirtualClusterTemplate = builders.NewInternalResource( "virtualclustertemplates", "VirtualClusterTemplate", func() runtime.Object { return &VirtualClusterTemplate{} }, @@ -1388,6 +1410,8 @@ var ( InternalVirtualClusterExternalDatabaseREST, InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, + InternalVirtualClusterSchema, + InternalVirtualClusterSchemaStatus, InternalVirtualClusterTemplate, InternalVirtualClusterTemplateStatus, ) @@ -1453,6 +1477,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 @@ -1733,14 +1762,15 @@ type ClusterAgentConfig struct { } type ClusterAgentConfigCommon struct { - Cluster string `json:"cluster,omitempty"` - Audit *AgentAuditConfig `json:"audit,omitempty"` - DefaultImageRegistry string `json:"defaultImageRegistry,omitempty"` - TokenCaCert []byte `json:"tokenCaCert,omitempty"` - LoftHost string `json:"loftHost,omitempty"` - ProjectNamespacePrefix string `json:"projectNamespacePrefix,omitempty"` - LoftInstanceID string `json:"loftInstanceID,omitempty"` - AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` + Cluster string `json:"cluster,omitempty"` + Audit *AgentAuditConfig `json:"audit,omitempty"` + DefaultImageRegistry string `json:"defaultImageRegistry,omitempty"` + TokenCaCert []byte `json:"tokenCaCert,omitempty"` + LoftHost string `json:"loftHost,omitempty"` + ProjectNamespacePrefix string `json:"projectNamespacePrefix,omitempty"` + LoftInstanceID string `json:"loftInstanceID,omitempty"` + AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` + CostControl *AgentCostControlConfig `json:"costControl,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2169,7 +2199,7 @@ type KioskStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2823,13 +2853,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 { @@ -2913,7 +2949,27 @@ type VirtualClusterInstanceStatus struct { } // +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"` +} + // +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type VirtualClusterTemplate struct { @@ -8012,6 +8068,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 2df2d326..e79e00ff 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -154,6 +154,28 @@ func (in *AgentAuditEventStatus) DeepCopy() *AgentAuditEventStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AgentCostControlConfig) DeepCopyInto(out *AgentCostControlConfig) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + in.CostControlClusterConfig.DeepCopyInto(&out.CostControlClusterConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentCostControlConfig. +func (in *AgentCostControlConfig) DeepCopy() *AgentCostControlConfig { + if in == nil { + return nil + } + out := new(AgentCostControlConfig) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Announcement) DeepCopyInto(out *Announcement) { *out = *in @@ -1266,6 +1288,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 } @@ -7167,6 +7194,25 @@ func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = new(string) **out = **in } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = new(map[string]*UserProfileSecret) + if **in != nil { + in, out := *in, *out + *out = make(map[string]*UserProfileSecret, len(*in)) + for key, val := range *in { + var outVal *UserProfileSecret + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UserProfileSecret) + **out = **in + } + (*out)[key] = outVal + } + } + } return } @@ -7221,6 +7267,22 @@ func (in *UserProfileList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserProfileSecret. +func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { + if in == nil { + return nil + } + out := new(UserProfileSecret) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *out = *in @@ -7798,6 +7860,99 @@ func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchema. +func (in *VirtualClusterSchema) DeepCopy() *VirtualClusterSchema { + if in == nil { + return nil + } + out := new(VirtualClusterSchema) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterSchema, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaList. +func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaSpec. +func (in *VirtualClusterSchemaSpec) DeepCopy() *VirtualClusterSchemaSpec { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaStatus. +func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { + if in == nil { + return nil + } + out := new(VirtualClusterSchemaStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterTemplate) DeepCopyInto(out *VirtualClusterTemplate) { *out = *in diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index 00ba5133..bbb593cc 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -73,6 +73,7 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Team", "TranslateVClusterResourceName", "User", + "VirtualClusterSchema", "VirtualClusterTemplate", ) } 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 a184a248..cf5a08a2 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 @@ -168,6 +168,10 @@ func (c *FakeManagementV1) VirtualClusterInstances(namespace string) v1.VirtualC return newFakeVirtualClusterInstances(c, namespace) } +func (c *FakeManagementV1) VirtualClusterSchemas() v1.VirtualClusterSchemaInterface { + return newFakeVirtualClusterSchemas(c) +} + func (c *FakeManagementV1) VirtualClusterTemplates() v1.VirtualClusterTemplateInterface { return newFakeVirtualClusterTemplates(c) } 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/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index d21459c7..3b276a34 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -80,4 +80,6 @@ type UserExpansion interface{} type VirtualClusterInstanceExpansion interface{} +type VirtualClusterSchemaExpansion interface{} + type VirtualClusterTemplateExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 2194a4e7..da4dfd4b 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -51,6 +51,7 @@ type ManagementV1Interface interface { TranslateVClusterResourceNamesGetter UsersGetter VirtualClusterInstancesGetter + VirtualClusterSchemasGetter VirtualClusterTemplatesGetter } @@ -215,6 +216,10 @@ func (c *ManagementV1Client) VirtualClusterInstances(namespace string) VirtualCl return newVirtualClusterInstances(c, namespace) } +func (c *ManagementV1Client) VirtualClusterSchemas() VirtualClusterSchemaInterface { + return newVirtualClusterSchemas(c) +} + func (c *ManagementV1Client) VirtualClusterTemplates() VirtualClusterTemplateInterface { return newVirtualClusterTemplates(c) } 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/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 2baadb52..0ce442ce 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -117,6 +117,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Users().Informer()}, nil case v1.SchemeGroupVersion.WithResource("virtualclusterinstances"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().VirtualClusterInstances().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("virtualclusterschemas"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().VirtualClusterSchemas().Informer()}, nil case v1.SchemeGroupVersion.WithResource("virtualclustertemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().VirtualClusterTemplates().Informer()}, nil diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index 93aa6b10..a759d9cd 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -86,6 +86,8 @@ type Interface interface { Users() UserInformer // VirtualClusterInstances returns a VirtualClusterInstanceInformer. VirtualClusterInstances() VirtualClusterInstanceInformer + // VirtualClusterSchemas returns a VirtualClusterSchemaInformer. + VirtualClusterSchemas() VirtualClusterSchemaInformer // VirtualClusterTemplates returns a VirtualClusterTemplateInformer. VirtualClusterTemplates() VirtualClusterTemplateInformer } @@ -296,6 +298,11 @@ func (v *version) VirtualClusterInstances() VirtualClusterInstanceInformer { return &virtualClusterInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// VirtualClusterSchemas returns a VirtualClusterSchemaInformer. +func (v *version) VirtualClusterSchemas() VirtualClusterSchemaInformer { + return &virtualClusterSchemaInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // VirtualClusterTemplates returns a VirtualClusterTemplateInformer. func (v *version) VirtualClusterTemplates() VirtualClusterTemplateInformer { return &virtualClusterTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/management/v1/virtualclusterschema.go b/pkg/informers/externalversions/management/v1/virtualclusterschema.go new file mode 100644 index 00000000..48275a7c --- /dev/null +++ b/pkg/informers/externalversions/management/v1/virtualclusterschema.go @@ -0,0 +1,73 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// VirtualClusterSchemaInformer provides access to a shared informer and lister for +// VirtualClusterSchemas. +type VirtualClusterSchemaInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.VirtualClusterSchemaLister +} + +type virtualClusterSchemaInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewVirtualClusterSchemaInformer constructs a new informer for VirtualClusterSchema type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVirtualClusterSchemaInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredVirtualClusterSchemaInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredVirtualClusterSchemaInformer constructs a new informer for VirtualClusterSchema type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredVirtualClusterSchemaInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().List(context.TODO(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().Watch(context.TODO(), options) + }, + }, + &apismanagementv1.VirtualClusterSchema{}, + resyncPeriod, + indexers, + ) +} + +func (f *virtualClusterSchemaInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredVirtualClusterSchemaInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *virtualClusterSchemaInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.VirtualClusterSchema{}, f.defaultInformer) +} + +func (f *virtualClusterSchemaInformer) Lister() managementv1.VirtualClusterSchemaLister { + return managementv1.NewVirtualClusterSchemaLister(f.Informer().GetIndexer()) +} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 7870d440..c2fb934b 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -178,6 +178,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/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/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index f1385de7..15267f05 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -82,6 +82,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), @@ -348,6 +349,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), @@ -370,6 +372,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), @@ -4727,6 +4733,39 @@ func schema_pkg_apis_management_v1_AgentAuditEventStatus(ref common.ReferenceCal } } +func schema_pkg_apis_management_v1_AgentCostControlConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed", + Type: []string{"boolean"}, + Format: "", + }, + }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"}, + } +} + func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -7139,12 +7178,18 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec"), }, }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"), + }, + }, }, Required: []string{"analyticsSpec"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -7209,12 +7254,18 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.Reference Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec"), }, }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"), + }, + }, }, Required: []string{"analyticsSpec"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig", "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"}, } } @@ -17888,11 +17939,25 @@ func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) com Format: "", }, }, + "secrets": { + SchemaProps: spec.SchemaProps{ + Description: "Secrets is a map of secret names to secret data", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -17944,6 +18009,32 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) } } +func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is the type of the secret", + Type: []string{"string"}, + Format: "", + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data is the data of the secret", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -19096,6 +19187,148 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.Refer } } +func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchema holds config request and response data for virtual clusters", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchemaSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version of the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchemaStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "schema": { + SchemaProps: spec.SchemaProps{ + Description: "Schema is the schema of the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + "defaultValues": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultValues are the default values of the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -30530,9 +30763,10 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30694,9 +30928,10 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -30795,9 +31030,10 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32195,9 +32431,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From e958c5b39ea93ad8d6234b727a23c788e3513dc8 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 6 Mar 2025 19:08:00 +0000 Subject: [PATCH 15/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- .../install/zz_generated.api.register.go | 1 + pkg/apis/management/v1/user_rbac_types.go | 58 +++ pkg/apis/management/v1/user_types.go | 1 + .../v1/virtualclusterinstance_types.go | 9 + .../v1/virtualclustertemplate_types.go | 4 + .../v1/zz_generated.api.register.go | 15 + .../management/v1/zz_generated.conversion.go | 334 +++++++++++++++ .../management/v1/zz_generated.deepcopy.go | 209 ++++++++- .../management/zz_generated.api.register.go | 73 +++- pkg/apis/management/zz_generated.deepcopy.go | 209 ++++++++- pkg/openapi/zz_generated.openapi.go | 405 ++++++++++++++---- 13 files changed, 1236 insertions(+), 88 deletions(-) create mode 100644 pkg/apis/management/v1/user_rbac_types.go diff --git a/go.mod b/go.mod index 171340e2..454c1c04 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.3.0-alpha.5 + github.com/loft-sh/agentapi/v4 v4.3.0-alpha.6 github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 k8s.io/api v0.32.1 k8s.io/apimachinery v0.32.1 diff --git a/go.sum b/go.sum index d46ac362..1236ad4e 100644 --- a/go.sum +++ b/go.sum @@ -107,8 +107,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.5 h1:shcFbMW9TqhDLJ2d3Ki6b+Q0VIOFr3xcbhs97SH7SjA= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.5/go.mod h1:FXdbcwRXnxMfIpoR0zR8m7H5kyQtVv5tFhKNIcwywts= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.6 h1:pwMSClXLwaPb5SYIV1REVg3pLK+624mqP/NZ8fZo74E= +github.com/loft-sh/agentapi/v4 v4.3.0-alpha.6/go.mod h1:FXdbcwRXnxMfIpoR0zR8m7H5kyQtVv5tFhKNIcwywts= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index 4eed3970..d777e87b 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -134,6 +134,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.UserList{}, &management.UserAccessKeys{}, &management.UserClusters{}, + &management.UserDetailedPermissions{}, &management.UserPermissions{}, &management.UserProfile{}, &management.VirtualClusterInstance{}, diff --git a/pkg/apis/management/v1/user_rbac_types.go b/pkg/apis/management/v1/user_rbac_types.go new file mode 100644 index 00000000..3e2ba49e --- /dev/null +++ b/pkg/apis/management/v1/user_rbac_types.go @@ -0,0 +1,58 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type UserDetailedPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // +optional + TeamMemberships []UserDrilldownPermissionsTeam `json:"teamMemberships,omitempty"` + + // +optional + RolesAssigned []UserDrilldownManagementRoles `json:"rolesAssigned,omitempty"` + + // +optional + ProjectMemberships []UserDrilldownProjectMemberships `json:"projectMemberships,omitempty"` + + // +optional + VirtualClusterRoles []UserDrilldownVClusterRoles `json:"virtualClusterRoles,omitempty"` +} + +type UserDrilldownPermissionsTeam struct { + ObjectNames `json:",omitempty"` +} + +type UserDrilldownManagementRoles struct { + ObjectNames `json:",omitempty"` + Management bool `json:"management,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type UserDrilldownProjectMemberships struct { + ObjectNames `json:",omitempty"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type AssignedVia struct { + Team string `json:"team,omitempty"` +} + +type UserDrilldownVClusterRoles struct { + ObjectNames `json:",omitempty"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type ObjectNames struct { + // +optional + Name string `json:"name"` + // +optional + DisplayName string `json:"displayName,omitempty"` +} diff --git a/pkg/apis/management/v1/user_types.go b/pkg/apis/management/v1/user_types.go index 727fc142..81c34cdb 100644 --- a/pkg/apis/management/v1/user_types.go +++ b/pkg/apis/management/v1/user_types.go @@ -19,6 +19,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=UserDetailedPermissions,path=detailed-permissions,kind=UserDetailedPermissions,rest=UserDetailedPermissionsREST type User struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/virtualclusterinstance_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index c0b87f1a..8460bb9b 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -55,6 +55,10 @@ type VirtualClusterInstanceStatus struct { // for an agentless vCluster. // +optional Online bool `json:"online,omitempty"` + + // CurrentUserAccess returns which actions (get / update / delete) user can perform on the object. + // +optional + CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } func (a *VirtualClusterInstance) GetConditions() agentstoragev1.Conditions { @@ -80,3 +84,8 @@ func (a *VirtualClusterInstance) GetAccess() []storagev1.Access { func (a *VirtualClusterInstance) SetAccess(access []storagev1.Access) { a.Spec.Access = access } + +type CurrentUserAccess struct { + // +optional + Verbs []string `json:"verbs,omitempty"` +} diff --git a/pkg/apis/management/v1/virtualclustertemplate_types.go b/pkg/apis/management/v1/virtualclustertemplate_types.go index 62c62ba0..6e738ea1 100644 --- a/pkg/apis/management/v1/virtualclustertemplate_types.go +++ b/pkg/apis/management/v1/virtualclustertemplate_types.go @@ -31,6 +31,10 @@ type VirtualClusterTemplateStatus struct { // +optional Apps []*storagev1.EntityInfo `json:"apps,omitempty"` + + // CurrentUserAccess returns which actions (get / update / delete) user can perform on the object. + // +optional + CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } func (a *VirtualClusterTemplate) GetVersions() []storagev1.VersionAccessor { diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 6f64772c..f061b452 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -125,6 +125,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &UserList{}, &UserAccessKeys{}, &UserClusters{}, + &UserDetailedPermissions{}, &UserPermissions{}, &UserProfile{}, &VirtualClusterInstance{}, @@ -406,6 +407,12 @@ var ( nil, management.NewUserClustersREST, ), + builders.NewApiResourceWithStorage( + management.InternalUserDetailedPermissionsREST, + func() runtime.Object { return &UserDetailedPermissions{} }, // Register versioned resource + nil, + management.NewUserDetailedPermissionsREST, + ), builders.NewApiResourceWithStorage( management.InternalUserPermissionsREST, func() runtime.Object { return &UserPermissions{} }, // Register versioned resource @@ -1062,6 +1069,14 @@ type UserClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type UserDetailedPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []UserDetailedPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type UserPermissionsList 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 6a3fe682..fa0bae44 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -210,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 { @@ -880,6 +890,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*CurrentUserAccess)(nil), (*management.CurrentUserAccess)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(a.(*CurrentUserAccess), b.(*management.CurrentUserAccess), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CurrentUserAccess)(nil), (*CurrentUserAccess)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(a.(*management.CurrentUserAccess), b.(*CurrentUserAccess), scope) + }); 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 { @@ -1610,6 +1630,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*ObjectNames)(nil), (*management.ObjectNames)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ObjectNames_To_management_ObjectNames(a.(*ObjectNames), b.(*management.ObjectNames), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ObjectNames)(nil), (*ObjectNames)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ObjectNames_To_v1_ObjectNames(a.(*management.ObjectNames), b.(*ObjectNames), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*OwnedAccessKey)(nil), (*management.OwnedAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_OwnedAccessKey_To_management_OwnedAccessKey(a.(*OwnedAccessKey), b.(*management.OwnedAccessKey), scope) }); err != nil { @@ -2660,6 +2690,66 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*UserDetailedPermissions)(nil), (*management.UserDetailedPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(a.(*UserDetailedPermissions), b.(*management.UserDetailedPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserDetailedPermissions)(nil), (*UserDetailedPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(a.(*management.UserDetailedPermissions), b.(*UserDetailedPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserDetailedPermissionsList)(nil), (*management.UserDetailedPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(a.(*UserDetailedPermissionsList), b.(*management.UserDetailedPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserDetailedPermissionsList)(nil), (*UserDetailedPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(a.(*management.UserDetailedPermissionsList), b.(*UserDetailedPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserDrilldownManagementRoles)(nil), (*management.UserDrilldownManagementRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(a.(*UserDrilldownManagementRoles), b.(*management.UserDrilldownManagementRoles), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserDrilldownManagementRoles)(nil), (*UserDrilldownManagementRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(a.(*management.UserDrilldownManagementRoles), b.(*UserDrilldownManagementRoles), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserDrilldownPermissionsTeam)(nil), (*management.UserDrilldownPermissionsTeam)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(a.(*UserDrilldownPermissionsTeam), b.(*management.UserDrilldownPermissionsTeam), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserDrilldownPermissionsTeam)(nil), (*UserDrilldownPermissionsTeam)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(a.(*management.UserDrilldownPermissionsTeam), b.(*UserDrilldownPermissionsTeam), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserDrilldownProjectMemberships)(nil), (*management.UserDrilldownProjectMemberships)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(a.(*UserDrilldownProjectMemberships), b.(*management.UserDrilldownProjectMemberships), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserDrilldownProjectMemberships)(nil), (*UserDrilldownProjectMemberships)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(a.(*management.UserDrilldownProjectMemberships), b.(*UserDrilldownProjectMemberships), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*UserDrilldownVClusterRoles)(nil), (*management.UserDrilldownVClusterRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(a.(*UserDrilldownVClusterRoles), b.(*management.UserDrilldownVClusterRoles), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.UserDrilldownVClusterRoles)(nil), (*UserDrilldownVClusterRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(a.(*management.UserDrilldownVClusterRoles), b.(*UserDrilldownVClusterRoles), 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 { @@ -3530,6 +3620,26 @@ func Convert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conver return autoConvert_management_Apps_To_v1_Apps(in, out, s) } +func autoConvert_v1_AssignedVia_To_management_AssignedVia(in *AssignedVia, out *management.AssignedVia, s conversion.Scope) error { + out.Team = in.Team + 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 { + out.Team = in.Team + 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 @@ -5317,6 +5427,26 @@ func Convert_management_CostControlSettings_To_v1_CostControlSettings(in *manage return autoConvert_management_CostControlSettings_To_v1_CostControlSettings(in, out, s) } +func autoConvert_v1_CurrentUserAccess_To_management_CurrentUserAccess(in *CurrentUserAccess, out *management.CurrentUserAccess, s conversion.Scope) error { + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + return nil +} + +// Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess is an autogenerated conversion function. +func Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(in *CurrentUserAccess, out *management.CurrentUserAccess, s conversion.Scope) error { + return autoConvert_v1_CurrentUserAccess_To_management_CurrentUserAccess(in, out, s) +} + +func autoConvert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in *management.CurrentUserAccess, out *CurrentUserAccess, s conversion.Scope) error { + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + return nil +} + +// Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess is an autogenerated conversion function. +func Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in *management.CurrentUserAccess, out *CurrentUserAccess, s conversion.Scope) error { + return autoConvert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in, out, s) +} + func autoConvert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in *DevPodDeleteOptions, out *management.DevPodDeleteOptions, s conversion.Scope) error { out.Options = in.Options return nil @@ -7152,6 +7282,28 @@ func Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.O return autoConvert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in, out, s) } +func autoConvert_v1_ObjectNames_To_management_ObjectNames(in *ObjectNames, out *management.ObjectNames, s conversion.Scope) error { + out.Name = in.Name + out.DisplayName = in.DisplayName + return nil +} + +// Convert_v1_ObjectNames_To_management_ObjectNames is an autogenerated conversion function. +func Convert_v1_ObjectNames_To_management_ObjectNames(in *ObjectNames, out *management.ObjectNames, s conversion.Scope) error { + return autoConvert_v1_ObjectNames_To_management_ObjectNames(in, out, s) +} + +func autoConvert_management_ObjectNames_To_v1_ObjectNames(in *management.ObjectNames, out *ObjectNames, s conversion.Scope) error { + out.Name = in.Name + out.DisplayName = in.DisplayName + return nil +} + +// Convert_management_ObjectNames_To_v1_ObjectNames is an autogenerated conversion function. +func Convert_management_ObjectNames_To_v1_ObjectNames(in *management.ObjectNames, out *ObjectNames, s conversion.Scope) error { + return autoConvert_management_ObjectNames_To_v1_ObjectNames(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 { @@ -9751,6 +9903,176 @@ func Convert_management_UserClustersList_To_v1_UserClustersList(in *management.U return autoConvert_management_UserClustersList_To_v1_UserClustersList(in, out, s) } +func autoConvert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(in *UserDetailedPermissions, out *management.UserDetailedPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.TeamMemberships = *(*[]management.UserDrilldownPermissionsTeam)(unsafe.Pointer(&in.TeamMemberships)) + out.RolesAssigned = *(*[]management.UserDrilldownManagementRoles)(unsafe.Pointer(&in.RolesAssigned)) + out.ProjectMemberships = *(*[]management.UserDrilldownProjectMemberships)(unsafe.Pointer(&in.ProjectMemberships)) + out.VirtualClusterRoles = *(*[]management.UserDrilldownVClusterRoles)(unsafe.Pointer(&in.VirtualClusterRoles)) + return nil +} + +// Convert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions is an autogenerated conversion function. +func Convert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(in *UserDetailedPermissions, out *management.UserDetailedPermissions, s conversion.Scope) error { + return autoConvert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(in, out, s) +} + +func autoConvert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(in *management.UserDetailedPermissions, out *UserDetailedPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.TeamMemberships = *(*[]UserDrilldownPermissionsTeam)(unsafe.Pointer(&in.TeamMemberships)) + out.RolesAssigned = *(*[]UserDrilldownManagementRoles)(unsafe.Pointer(&in.RolesAssigned)) + out.ProjectMemberships = *(*[]UserDrilldownProjectMemberships)(unsafe.Pointer(&in.ProjectMemberships)) + out.VirtualClusterRoles = *(*[]UserDrilldownVClusterRoles)(unsafe.Pointer(&in.VirtualClusterRoles)) + return nil +} + +// Convert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions is an autogenerated conversion function. +func Convert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(in *management.UserDetailedPermissions, out *UserDetailedPermissions, s conversion.Scope) error { + return autoConvert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(in, out, s) +} + +func autoConvert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(in *UserDetailedPermissionsList, out *management.UserDetailedPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UserDetailedPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList is an autogenerated conversion function. +func Convert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(in *UserDetailedPermissionsList, out *management.UserDetailedPermissionsList, s conversion.Scope) error { + return autoConvert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(in, out, s) +} + +func autoConvert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(in *management.UserDetailedPermissionsList, out *UserDetailedPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UserDetailedPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList is an autogenerated conversion function. +func Convert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(in *management.UserDetailedPermissionsList, out *UserDetailedPermissionsList, s conversion.Scope) error { + return autoConvert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(in, out, s) +} + +func autoConvert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(in *UserDrilldownManagementRoles, out *management.UserDrilldownManagementRoles, s conversion.Scope) error { + if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + out.Management = in.Management + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles is an autogenerated conversion function. +func Convert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(in *UserDrilldownManagementRoles, out *management.UserDrilldownManagementRoles, s conversion.Scope) error { + return autoConvert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(in, out, s) +} + +func autoConvert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(in *management.UserDrilldownManagementRoles, out *UserDrilldownManagementRoles, s conversion.Scope) error { + if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + out.Management = in.Management + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles is an autogenerated conversion function. +func Convert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(in *management.UserDrilldownManagementRoles, out *UserDrilldownManagementRoles, s conversion.Scope) error { + return autoConvert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(in, out, s) +} + +func autoConvert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(in *UserDrilldownPermissionsTeam, out *management.UserDrilldownPermissionsTeam, s conversion.Scope) error { + if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + return nil +} + +// Convert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam is an autogenerated conversion function. +func Convert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(in *UserDrilldownPermissionsTeam, out *management.UserDrilldownPermissionsTeam, s conversion.Scope) error { + return autoConvert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(in, out, s) +} + +func autoConvert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(in *management.UserDrilldownPermissionsTeam, out *UserDrilldownPermissionsTeam, s conversion.Scope) error { + if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + return nil +} + +// Convert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam is an autogenerated conversion function. +func Convert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(in *management.UserDrilldownPermissionsTeam, out *UserDrilldownPermissionsTeam, s conversion.Scope) error { + return autoConvert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(in, out, s) +} + +func autoConvert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(in *UserDrilldownProjectMemberships, out *management.UserDrilldownProjectMemberships, s conversion.Scope) error { + if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships is an autogenerated conversion function. +func Convert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(in *UserDrilldownProjectMemberships, out *management.UserDrilldownProjectMemberships, s conversion.Scope) error { + return autoConvert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(in, out, s) +} + +func autoConvert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(in *management.UserDrilldownProjectMemberships, out *UserDrilldownProjectMemberships, s conversion.Scope) error { + if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships is an autogenerated conversion function. +func Convert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(in *management.UserDrilldownProjectMemberships, out *UserDrilldownProjectMemberships, s conversion.Scope) error { + return autoConvert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(in, out, s) +} + +func autoConvert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(in *UserDrilldownVClusterRoles, out *management.UserDrilldownVClusterRoles, s conversion.Scope) error { + if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles is an autogenerated conversion function. +func Convert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(in *UserDrilldownVClusterRoles, out *management.UserDrilldownVClusterRoles, s conversion.Scope) error { + return autoConvert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(in, out, s) +} + +func autoConvert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(in *management.UserDrilldownVClusterRoles, out *UserDrilldownVClusterRoles, s conversion.Scope) error { + if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles is an autogenerated conversion function. +func Convert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(in *management.UserDrilldownVClusterRoles, out *UserDrilldownVClusterRoles, s conversion.Scope) error { + return autoConvert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(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)) @@ -10559,6 +10881,9 @@ func autoConvert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterIns out.CanUse = in.CanUse out.CanUpdate = in.CanUpdate out.Online = in.Online + if err := Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { + return err + } return nil } @@ -10573,6 +10898,9 @@ func autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterIns out.CanUse = in.CanUse out.CanUpdate = in.CanUpdate out.Online = in.Online + if err := Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { + return err + } return nil } @@ -10754,6 +11082,9 @@ func Convert_management_VirtualClusterTemplateSpec_To_v1_VirtualClusterTemplateS func autoConvert_v1_VirtualClusterTemplateStatus_To_management_VirtualClusterTemplateStatus(in *VirtualClusterTemplateStatus, out *management.VirtualClusterTemplateStatus, s conversion.Scope) error { out.VirtualClusterTemplateStatus = in.VirtualClusterTemplateStatus out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) + if err := Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { + return err + } return nil } @@ -10765,6 +11096,9 @@ func Convert_v1_VirtualClusterTemplateStatus_To_management_VirtualClusterTemplat func autoConvert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTemplateStatus(in *management.VirtualClusterTemplateStatus, out *VirtualClusterTemplateStatus, s conversion.Scope) error { out.VirtualClusterTemplateStatus = in.VirtualClusterTemplateStatus out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) + if err := Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { + return err + } return nil } diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 233296ea..9c210585 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -459,6 +459,22 @@ 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 + 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 @@ -2364,6 +2380,27 @@ func (in *CostControlSettings) DeepCopy() *CostControlSettings { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CurrentUserAccess) DeepCopyInto(out *CurrentUserAccess) { + *out = *in + 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 CurrentUserAccess. +func (in *CurrentUserAccess) DeepCopy() *CurrentUserAccess { + if in == nil { + return nil + } + out := new(CurrentUserAccess) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { *out = *in @@ -3389,7 +3426,7 @@ func (in *Feature) DeepCopyInto(out *Feature) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status return } @@ -3463,7 +3500,7 @@ func (in *FeatureSpec) DeepCopy() *FeatureSpec { // 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) + out.Feature = in.Feature return } @@ -4227,6 +4264,22 @@ func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectNames) DeepCopyInto(out *ObjectNames) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectNames. +func (in *ObjectNames) DeepCopy() *ObjectNames { + if in == nil { + return nil + } + out := new(ObjectNames) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in @@ -7085,6 +7138,156 @@ func (in *UserClustersList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDetailedPermissions) DeepCopyInto(out *UserDetailedPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.TeamMemberships != nil { + in, out := &in.TeamMemberships, &out.TeamMemberships + *out = make([]UserDrilldownPermissionsTeam, len(*in)) + copy(*out, *in) + } + if in.RolesAssigned != nil { + in, out := &in.RolesAssigned, &out.RolesAssigned + *out = make([]UserDrilldownManagementRoles, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]UserDrilldownProjectMemberships, len(*in)) + copy(*out, *in) + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]UserDrilldownVClusterRoles, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDetailedPermissions. +func (in *UserDetailedPermissions) DeepCopy() *UserDetailedPermissions { + if in == nil { + return nil + } + out := new(UserDetailedPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserDetailedPermissions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDetailedPermissionsList) DeepCopyInto(out *UserDetailedPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserDetailedPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDetailedPermissionsList. +func (in *UserDetailedPermissionsList) DeepCopy() *UserDetailedPermissionsList { + if in == nil { + return nil + } + out := new(UserDetailedPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserDetailedPermissionsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownManagementRoles) DeepCopyInto(out *UserDrilldownManagementRoles) { + *out = *in + out.ObjectNames = in.ObjectNames + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownManagementRoles. +func (in *UserDrilldownManagementRoles) DeepCopy() *UserDrilldownManagementRoles { + if in == nil { + return nil + } + out := new(UserDrilldownManagementRoles) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownPermissionsTeam) DeepCopyInto(out *UserDrilldownPermissionsTeam) { + *out = *in + out.ObjectNames = in.ObjectNames + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownPermissionsTeam. +func (in *UserDrilldownPermissionsTeam) DeepCopy() *UserDrilldownPermissionsTeam { + if in == nil { + return nil + } + out := new(UserDrilldownPermissionsTeam) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownProjectMemberships) DeepCopyInto(out *UserDrilldownProjectMemberships) { + *out = *in + out.ObjectNames = in.ObjectNames + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownProjectMemberships. +func (in *UserDrilldownProjectMemberships) DeepCopy() *UserDrilldownProjectMemberships { + if in == nil { + return nil + } + out := new(UserDrilldownProjectMemberships) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownVClusterRoles) DeepCopyInto(out *UserDrilldownVClusterRoles) { + *out = *in + out.ObjectNames = in.ObjectNames + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownVClusterRoles. +func (in *UserDrilldownVClusterRoles) DeepCopy() *UserDrilldownVClusterRoles { + if in == nil { + return nil + } + out := new(UserDrilldownVClusterRoles) + in.DeepCopyInto(out) + return out +} + // 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 @@ -7905,6 +8108,7 @@ func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstance *out = new(clusterv1.SleepModeConfig) (*in).DeepCopyInto(*out) } + in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } @@ -8104,6 +8308,7 @@ func (in *VirtualClusterTemplateStatus) DeepCopyInto(out *VirtualClusterTemplate } } } + in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 448ddcbc..cee865db 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -1203,8 +1203,16 @@ var ( NewUserClustersREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewUserClustersRESTFunc(Factory) } - NewUserClustersRESTFunc NewRESTFunc - InternalUserPermissionsREST = builders.NewInternalSubresource( + NewUserClustersRESTFunc NewRESTFunc + InternalUserDetailedPermissionsREST = builders.NewInternalSubresource( + "users", "UserDetailedPermissions", "detailed-permissions", + func() runtime.Object { return &UserDetailedPermissions{} }, + ) + NewUserDetailedPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewUserDetailedPermissionsRESTFunc(Factory) + } + NewUserDetailedPermissionsRESTFunc NewRESTFunc + InternalUserPermissionsREST = builders.NewInternalSubresource( "users", "UserPermissions", "permissions", func() runtime.Object { return &UserPermissions{} }, ) @@ -1402,6 +1410,7 @@ var ( InternalUserStatus, InternalUserAccessKeysREST, InternalUserClustersREST, + InternalUserDetailedPermissionsREST, InternalUserPermissionsREST, InternalUserProfileREST, InternalVirtualClusterInstance, @@ -1533,6 +1542,10 @@ type Apps struct { PredefinedApps []PredefinedApp `json:"predefinedApps,omitempty"` } +type AssignedVia struct { + Team string `json:"team,omitempty"` +} + type Audit struct { Enabled bool `json:"enabled,omitempty"` DisableAgentSyncBack bool `json:"disableAgentSyncBack,omitempty"` @@ -1957,6 +1970,10 @@ type CostControlSettings struct { ControlPlanePricePerCluster *CostControlResourcePrice `json:"controlPlanePricePerCluster,omitempty"` } +type CurrentUserAccess struct { + Verbs []string `json:"verbs,omitempty"` +} + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type DevPodDeleteOptions struct { @@ -2199,7 +2216,7 @@ type KioskStatus struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2307,6 +2324,11 @@ type OIDCClientSpec struct { type OIDCClientStatus struct { } +type ObjectNames struct { + Name string `json:"name"` + DisplayName string `json:"displayName,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2827,6 +2849,39 @@ type UserClusters struct { Clusters []ClusterAccounts `json:"clusters,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type UserDetailedPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + TeamMemberships []UserDrilldownPermissionsTeam `json:"teamMemberships,omitempty"` + RolesAssigned []UserDrilldownManagementRoles `json:"rolesAssigned,omitempty"` + ProjectMemberships []UserDrilldownProjectMemberships `json:"projectMemberships,omitempty"` + VirtualClusterRoles []UserDrilldownVClusterRoles `json:"virtualClusterRoles,omitempty"` +} + +type UserDrilldownManagementRoles struct { + ObjectNames `json:",omitempty"` + Management bool `json:"management,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type UserDrilldownPermissionsTeam struct { + ObjectNames `json:",omitempty"` +} + +type UserDrilldownProjectMemberships struct { + ObjectNames `json:",omitempty"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type UserDrilldownVClusterRoles struct { + ObjectNames `json:",omitempty"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + type UserInfo struct { storagev1.EntityInfo `json:",inline"` Teams []*storagev1.EntityInfo `json:"teams,omitempty"` @@ -2946,6 +3001,7 @@ type VirtualClusterInstanceStatus struct { CanUse bool `json:"canUse,omitempty"` CanUpdate bool `json:"canUpdate,omitempty"` Online bool `json:"online,omitempty"` + CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } // +genclient @@ -2969,7 +3025,7 @@ type VirtualClusterSchemaStatus struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type VirtualClusterTemplate struct { @@ -2986,6 +3042,7 @@ type VirtualClusterTemplateSpec struct { type VirtualClusterTemplateStatus struct { storagev1.VirtualClusterTemplateStatus `json:",inline"` Apps []*storagev1.EntityInfo `json:"apps,omitempty"` + CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } // AgentAuditEvent Functions and Structs @@ -7804,6 +7861,14 @@ type UserClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type UserDetailedPermissionsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []UserDetailedPermissions `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type UserPermissionsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index e79e00ff..05cbbc07 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -459,6 +459,22 @@ 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 + 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 @@ -2339,6 +2355,27 @@ func (in *CostControlSettings) DeepCopy() *CostControlSettings { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CurrentUserAccess) DeepCopyInto(out *CurrentUserAccess) { + *out = *in + 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 CurrentUserAccess. +func (in *CurrentUserAccess) DeepCopy() *CurrentUserAccess { + if in == nil { + return nil + } + out := new(CurrentUserAccess) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { *out = *in @@ -3347,7 +3384,7 @@ func (in *Feature) DeepCopyInto(out *Feature) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + out.Status = in.Status return } @@ -3421,7 +3458,7 @@ func (in *FeatureSpec) DeepCopy() *FeatureSpec { // 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) + out.Feature = in.Feature return } @@ -4185,6 +4222,22 @@ func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectNames) DeepCopyInto(out *ObjectNames) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectNames. +func (in *ObjectNames) DeepCopy() *ObjectNames { + if in == nil { + return nil + } + out := new(ObjectNames) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in @@ -7027,6 +7080,156 @@ func (in *UserClustersList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDetailedPermissions) DeepCopyInto(out *UserDetailedPermissions) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.TeamMemberships != nil { + in, out := &in.TeamMemberships, &out.TeamMemberships + *out = make([]UserDrilldownPermissionsTeam, len(*in)) + copy(*out, *in) + } + if in.RolesAssigned != nil { + in, out := &in.RolesAssigned, &out.RolesAssigned + *out = make([]UserDrilldownManagementRoles, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]UserDrilldownProjectMemberships, len(*in)) + copy(*out, *in) + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]UserDrilldownVClusterRoles, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDetailedPermissions. +func (in *UserDetailedPermissions) DeepCopy() *UserDetailedPermissions { + if in == nil { + return nil + } + out := new(UserDetailedPermissions) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserDetailedPermissions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDetailedPermissionsList) DeepCopyInto(out *UserDetailedPermissionsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserDetailedPermissions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDetailedPermissionsList. +func (in *UserDetailedPermissionsList) DeepCopy() *UserDetailedPermissionsList { + if in == nil { + return nil + } + out := new(UserDetailedPermissionsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserDetailedPermissionsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownManagementRoles) DeepCopyInto(out *UserDrilldownManagementRoles) { + *out = *in + out.ObjectNames = in.ObjectNames + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownManagementRoles. +func (in *UserDrilldownManagementRoles) DeepCopy() *UserDrilldownManagementRoles { + if in == nil { + return nil + } + out := new(UserDrilldownManagementRoles) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownPermissionsTeam) DeepCopyInto(out *UserDrilldownPermissionsTeam) { + *out = *in + out.ObjectNames = in.ObjectNames + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownPermissionsTeam. +func (in *UserDrilldownPermissionsTeam) DeepCopy() *UserDrilldownPermissionsTeam { + if in == nil { + return nil + } + out := new(UserDrilldownPermissionsTeam) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownProjectMemberships) DeepCopyInto(out *UserDrilldownProjectMemberships) { + *out = *in + out.ObjectNames = in.ObjectNames + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownProjectMemberships. +func (in *UserDrilldownProjectMemberships) DeepCopy() *UserDrilldownProjectMemberships { + if in == nil { + return nil + } + out := new(UserDrilldownProjectMemberships) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserDrilldownVClusterRoles) DeepCopyInto(out *UserDrilldownVClusterRoles) { + *out = *in + out.ObjectNames = in.ObjectNames + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownVClusterRoles. +func (in *UserDrilldownVClusterRoles) DeepCopy() *UserDrilldownVClusterRoles { + if in == nil { + return nil + } + out := new(UserDrilldownVClusterRoles) + in.DeepCopyInto(out) + return out +} + // 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 @@ -7847,6 +8050,7 @@ func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstance *out = new(clusterv1.SleepModeConfig) (*in).DeepCopyInto(*out) } + in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } @@ -8046,6 +8250,7 @@ func (in *VirtualClusterTemplateStatus) DeepCopyInto(out *VirtualClusterTemplate } } } + in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 15267f05..1e64f485 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -94,6 +94,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), @@ -162,6 +163,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess": schema_pkg_apis_management_v1_CurrentUserAccess(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), @@ -236,6 +238,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.ObjectNames": schema_pkg_apis_management_v1_ObjectNames(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), @@ -342,6 +345,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.UserDetailedPermissions": schema_pkg_apis_management_v1_UserDetailedPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissionsList": schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles": schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam": schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships": schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles": schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(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), @@ -1574,10 +1583,11 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallba Format: "", }, }, - "description": { + "preview": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", }, }, "status": { @@ -1587,28 +1597,6 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallba Format: "", }, }, - "compatibility": { - SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", - Type: []string{"string"}, - Format: "", - }, - }, - "labels": { - 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: "", - }, - }, - }, - }, - }, }, Required: []string{"name"}, }, @@ -3003,10 +2991,11 @@ 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": { @@ -3016,28 +3005,6 @@ func schema_apis_loft_cluster_v1_FeatureStatus(ref common.ReferenceCallback) com Format: "", }, }, - "compatibility": { - SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", - Type: []string{"string"}, - Format: "", - }, - }, - "labels": { - 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: "", - }, - }, - }, - }, - }, "internal": { SchemaProps: spec.SchemaProps{ Description: "Internal marks internal features that should not be shown on the license view", @@ -5314,6 +5281,24 @@ func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.Ope } } +func schema_pkg_apis_management_v1_AssignedVia(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "team": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_Audit(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -9003,6 +8988,32 @@ func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallb } } +func schema_pkg_apis_management_v1_CurrentUserAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "verbs": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_DevPodDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -11045,10 +11056,11 @@ func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) c 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": { @@ -11058,28 +11070,6 @@ func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) c Format: "", }, }, - "compatibility": { - SchemaProps: spec.SchemaProps{ - Description: "Compatibility contains a series of semver compatibility constraints", - Type: []string{"string"}, - Format: "", - }, - }, - "labels": { - 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: "", - }, - }, - }, - }, - }, "internal": { SchemaProps: spec.SchemaProps{ Description: "Internal marks internal features that should not be shown on the license view", @@ -12235,6 +12225,31 @@ func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback } } +func schema_pkg_apis_management_v1_ObjectNames(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -17588,6 +17603,228 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback } } +func schema_pkg_apis_management_v1_UserDetailedPermissions(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"), + }, + }, + "teamMemberships": { + 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.UserDrilldownPermissionsTeam"), + }, + }, + }, + }, + }, + "rolesAssigned": { + 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.UserDrilldownManagementRoles"), + }, + }, + }, + }, + }, + "projectMemberships": { + 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.UserDrilldownProjectMemberships"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + 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.UserDrilldownVClusterRoles"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserDetailedPermissionsList(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.UserDetailedPermissions"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "management": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + } +} + +func schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "role": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + } +} + +func schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "role": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + } +} + func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -19179,11 +19416,18 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.Refer Format: "", }, }, + "currentUserAccess": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentUserAccess returns which actions (get / update / delete) user can perform on the object.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess"), + }, + }, }, }, }, 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"}, + "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/management/v1.CurrentUserAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } @@ -19533,11 +19777,18 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.Refer }, }, }, + "currentUserAccess": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentUserAccess returns which actions (get / update / delete) user can perform on the object.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } From b788761156b95f3bf1576c1c6f9ce08466a6e032 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 12 Mar 2025 14:58:44 +0000 Subject: [PATCH 16/30] [skip ci] repo-sync --- go.mod | 9 +- go.sum | 10 +- pkg/apis/management/install/install.go | 7 +- .../install/zz_generated.api.register.go | 16 +- pkg/apis/management/types.go | 24 + pkg/apis/management/v1/config_types.go | 16 + ...> devpodworkspaceinstance_cancel_types.go} | 6 +- ...o => devpodworkspaceinstance_log_types.go} | 5 +- .../v1/devpodworkspaceinstance_stop_types.go | 28 + .../v1/devpodworkspaceinstance_tasks_types.go | 35 + .../v1/devpodworkspaceinstance_types.go | 155 +- .../v1/devpodworkspaceinstance_up_types.go | 32 + pkg/apis/management/v1/options.go | 71 +- .../management/v1/project_clusters_types.go | 3 - pkg/apis/management/v1/project_types.go | 2 - .../management/v1/runner_accesskey_types.go | 18 - pkg/apis/management/v1/runner_config_types.go | 19 - pkg/apis/management/v1/runner_types.go | 60 - pkg/apis/management/v1/user_types.go | 1 + .../v1/zz_generated.api.register.go | 136 +- .../management/v1/zz_generated.conversion.go | 1384 ++-- .../management/v1/zz_generated.deepcopy.go | 906 +-- .../management/v1/zz_generated.defaults.go | 709 +- .../management/zz_generated.api.register.go | 496 +- pkg/apis/management/zz_generated.deepcopy.go | 906 +-- pkg/apis/management/zz_generated.defaults.go | 709 +- pkg/apis/storage/v1/accesskey_types.go | 2 + pkg/apis/storage/v1/cluster_types.go | 5 + .../v1/devpodworkspaceinstance_types.go | 66 +- .../storage/v1/devpodworkspacepreset_types.go | 4 - .../v1/devpodworkspacetemplate_types.go | 280 +- pkg/apis/storage/v1/project_types.go | 31 +- pkg/apis/storage/v1/runner_types.go | 258 - pkg/apis/storage/v1/zz_generated.deepcopy.go | 983 ++- pkg/apis/storage/v1/zz_generated.defaults.go | 423 +- pkg/apis/zz_generated.api.register.go | 1 - .../management/v1/devpodworkspaceinstance.go | 43 +- .../v1/fake/fake_devpodworkspaceinstance.go | 32 +- .../v1/fake/fake_management_client.go | 4 - .../typed/management/v1/fake/fake_project.go | 11 - .../typed/management/v1/fake/fake_runner.go | 58 - .../typed/management/v1/fake/fake_user.go | 11 + .../management/v1/generated_expansion.go | 2 - .../typed/management/v1/management_client.go | 5 - .../versioned/typed/management/v1/project.go | 14 - .../versioned/typed/management/v1/runner.go | 83 - .../versioned/typed/management/v1/user.go | 15 + .../typed/storage/v1/fake/fake_runner.go | 32 - .../storage/v1/fake/fake_storage_client.go | 4 - .../typed/storage/v1/generated_expansion.go | 2 - .../versioned/typed/storage/v1/runner.go | 54 - .../typed/storage/v1/storage_client.go | 5 - pkg/devpod/options.go | 24 + pkg/devpod/platformoptions.go | 69 + pkg/devpod/runner.pb.go | 214 + pkg/devpod/runner.proto | 17 + pkg/devpod/runner_grpc.pb.go | 105 + pkg/informers/externalversions/generic.go | 4 - .../management/v1/interface.go | 7 - .../externalversions/management/v1/runner.go | 73 - .../externalversions/storage/v1/interface.go | 7 - .../externalversions/storage/v1/runner.go | 73 - .../management/v1/expansion_generated.go | 4 - pkg/listers/management/v1/runner.go | 32 - pkg/listers/storage/v1/expansion_generated.go | 4 - pkg/listers/storage/v1/runner.go | 32 - pkg/openapi/zz_generated.openapi.go | 6819 +++++++++-------- pkg/product/strings.go | 2 +- pkg/token/token.go | 7 +- 69 files changed, 8709 insertions(+), 6975 deletions(-) rename pkg/apis/management/v1/{devpodworkspaceinstance_state_types.go => devpodworkspaceinstance_cancel_types.go} (64%) rename pkg/apis/management/v1/{project_runners_types.go => devpodworkspaceinstance_log_types.go} (68%) create mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go create mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go create mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_up_types.go delete mode 100644 pkg/apis/management/v1/runner_accesskey_types.go delete mode 100644 pkg/apis/management/v1/runner_config_types.go delete mode 100644 pkg/apis/management/v1/runner_types.go delete mode 100644 pkg/apis/storage/v1/runner_types.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_runner.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/runner.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/runner.go create mode 100644 pkg/devpod/options.go create mode 100644 pkg/devpod/platformoptions.go create mode 100644 pkg/devpod/runner.pb.go create mode 100644 pkg/devpod/runner.proto create mode 100644 pkg/devpod/runner_grpc.pb.go delete mode 100644 pkg/informers/externalversions/management/v1/runner.go delete mode 100644 pkg/informers/externalversions/storage/v1/runner.go delete mode 100644 pkg/listers/management/v1/runner.go delete mode 100644 pkg/listers/storage/v1/runner.go diff --git a/go.mod b/go.mod index 454c1c04..6736162a 100644 --- a/go.mod +++ b/go.mod @@ -4,15 +4,18 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44 - github.com/loft-sh/agentapi/v4 v4.3.0-alpha.6 + github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 + github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.1 github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 + google.golang.org/grpc v1.67.1 + google.golang.org/protobuf v1.35.1 k8s.io/api v0.32.1 k8s.io/apimachinery v0.32.1 k8s.io/apiserver v0.32.1 k8s.io/client-go v0.32.1 k8s.io/klog/v2 v2.130.1 k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f + k8s.io/metrics v0.32.1 sigs.k8s.io/controller-runtime v0.20.1 sigs.k8s.io/controller-tools v0.16.4 ) @@ -96,8 +99,6 @@ require ( golang.org/x/tools v0.29.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.35.1 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 1236ad4e..05735da8 100644 --- a/go.sum +++ b/go.sum @@ -105,10 +105,10 @@ 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-20241127134028-9cfb6b23ec44 h1:Sq6qEsKSiZHYTzWbnFvnWrzMBFIC3XxFoXtnHdJE9P8= -github.com/loft-sh/admin-apis v0.0.0-20241127134028-9cfb6b23ec44/go.mod h1:MWczNwKvWssHo1KaeZKaWDdRLYSNbWqQBGsTLoCNd7U= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.6 h1:pwMSClXLwaPb5SYIV1REVg3pLK+624mqP/NZ8fZo74E= -github.com/loft-sh/agentapi/v4 v4.3.0-alpha.6/go.mod h1:FXdbcwRXnxMfIpoR0zR8m7H5kyQtVv5tFhKNIcwywts= +github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 h1:om1MqUdW84ZQc0GMGGgFfPI6xpTbrF+6DwKVq+76R44= +github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.1 h1:npDLSFyLIyqHtzSb3O9s8E5mpt3S7KGvQb+tepGYc8I= +github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.1/go.mod h1:UteiUdc6QeGt2uXIo5K5qlReRa366GbPY5QdDuPyFCs= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -304,6 +304,8 @@ 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-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= +k8s.io/metrics v0.32.1 h1:Ou4nrEtZS2vFf7OJCf9z3+2kr0A00kQzfoSwxg0gXps= +k8s.io/metrics v0.32.1/go.mod h1:cLnai9XKYby1tNMX+xe8p9VLzTqrxYPcmqfCBoWObcM= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo= diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 1afbb0d7..9d1b32c5 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -27,11 +27,8 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserSpacesOptions{}, &management.UserVirtualClustersOptions{}, &management.UserQuotasOptions{}, - &management.DevPodUpOptions{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStopOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, + &management.DevPodWorkspaceInstanceLogOptions{}, + &management.DevPodWorkspaceInstanceTasksOptions{}, ) 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 d777e87b..e6d42c63 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -54,13 +54,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.DevPodEnvironmentTemplateList{}, &management.DevPodWorkspaceInstance{}, &management.DevPodWorkspaceInstanceList{}, - &management.DevPodDeleteOptions{}, - &management.DevPodStatusOptions{}, - &management.DevPodSshOptions{}, - &management.DevPodWorkspaceInstanceState{}, - &management.DevPodStopOptions{}, + &management.DevPodWorkspaceInstanceCancel{}, + &management.DevPodWorkspaceInstanceLog{}, + &management.DevPodWorkspaceInstanceStop{}, + &management.DevPodWorkspaceInstanceTasks{}, &management.DevPodWorkspaceInstanceTroubleshoot{}, - &management.DevPodUpOptions{}, + &management.DevPodWorkspaceInstanceUp{}, &management.DevPodWorkspacePreset{}, &management.DevPodWorkspacePresetList{}, &management.DevPodWorkspaceTemplate{}, @@ -95,7 +94,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ProjectMembers{}, &management.ProjectMigrateSpaceInstance{}, &management.ProjectMigrateVirtualClusterInstance{}, - &management.ProjectRunners{}, &management.ProjectTemplates{}, &management.ProjectSecret{}, &management.ProjectSecretList{}, @@ -105,10 +103,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.RegisterVirtualClusterList{}, &management.ResetAccessKey{}, &management.ResetAccessKeyList{}, - &management.Runner{}, - &management.RunnerList{}, - &management.RunnerAccessKey{}, - &management.RunnerConfig{}, &management.Self{}, &management.SelfList{}, &management.SelfSubjectAccessReview{}, diff --git a/pkg/apis/management/types.go b/pkg/apis/management/types.go index 463d3bc9..ba1ecc35 100644 --- a/pkg/apis/management/types.go +++ b/pkg/apis/management/types.go @@ -128,3 +128,27 @@ type UserQuotasOptions struct { // +optional Cluster []string `json:"cluster,omitempty"` } + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceLogOptions struct { + metav1.TypeMeta `json:",inline"` + + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskID,omitempty"` + + // Follow the log stream of the task. Defaults to false. + // +optional + Follow bool `json:"follow,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceTasksOptions struct { + metav1.TypeMeta `json:",inline"` + + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskID,omitempty"` +} diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index 6b4a528f..d16c8c0d 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" ) @@ -76,6 +77,9 @@ type ConfigStatus struct { // CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure CostControl *CostControl `json:"costControl,omitempty"` + + // ImageBuilder holds the settings related to the image builder + ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` } // Audit holds the audit configuration options for loft. Changing any options will require a loft restart @@ -772,3 +776,15 @@ type CostControlResourcePrice struct { // TimePeriod specifies the time period for the price. TimePeriod string `json:"timePeriod,omitempty"` } + +type ImageBuilder struct { + // Enabled specifies whether the remote image builder should be available. + // If it's not available building ad-hoc images from a devcontainer.json is not supported + Enabled *bool `json:"enabled,omitempty"` + + // Replicas is the number of desired replicas. + Replicas *int32 `json:"replicas,omitempty"` + + // Resources are compute resource required by the buildkit containers + Resources *corev1.ResourceRequirements `json:"resources,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go similarity index 64% rename from pkg/apis/management/v1/devpodworkspaceinstance_state_types.go rename to pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go index 49074dd1..ed1a916c 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_state_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go @@ -7,11 +7,11 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceState struct { +type DevPodWorkspaceInstanceCancel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - // State holds the workspaces state as given by 'devpod export' + // TaskID is the id of the task that should get cancelled // +optional - State string `json:"state,omitempty"` + TaskID string `json:"taskId,omitempty"` } diff --git a/pkg/apis/management/v1/project_runners_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go similarity index 68% rename from pkg/apis/management/v1/project_runners_types.go rename to pkg/apis/management/v1/devpodworkspaceinstance_log_types.go index 5e08ca00..e9020e3c 100644 --- a/pkg/apis/management/v1/project_runners_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go @@ -7,10 +7,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type ProjectRunners struct { +type DevPodWorkspaceInstanceLog struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - - // Runners holds all the allowed runners - Runners []Runner `json:"runners,omitempty"` } diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go new file mode 100644 index 00000000..6485f63b --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go @@ -0,0 +1,28 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceStop struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstanceStopSpec struct { + // Options are the options to pass. + // +optional + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceStopStatus struct { + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskId,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go new file mode 100644 index 00000000..60eeb8cf --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go @@ -0,0 +1,35 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceTasks struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` +} + +type DevPodWorkspaceInstanceTask struct { + // ID is the id of the task + ID string `json:"id,omitempty"` + + // Type is the type of the task + Type string `json:"type,omitempty"` + + // Status is the status of the task + Status string `json:"status,omitempty"` + + // Result is the result of the task + Result []byte `json:"result,omitempty"` + + // Logs is the compressed logs of the task + Logs []byte `json:"logs,omitempty"` + + // CreatedAt is the timestamp when the task was created + CreatedAt metav1.Time `json:"createdAt,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go index 08db551b..504ec55f 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_types.go @@ -4,26 +4,28 @@ 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" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // +genclient // +genclient:noStatus -// +genclient:method=GetState,verb=get,subresource=state,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState -// +genclient:method=SetState,verb=create,subresource=state,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState +// +genclient:method=Up,verb=create,subresource=up,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp +// +genclient:method=Stop,verb=create,subresource=stop,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop // +genclient:method=Troubleshoot,verb=get,subresource=troubleshoot,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot +// +genclient:method=Cancel,verb=create,subresource=cancel,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information // +k8s:openapi-gen=true // +resource:path=devpodworkspaceinstances,rest=DevPodWorkspaceInstanceREST -// +subresource:request=DevPodUpOptions,path=up,kind=DevPodUpOptions,rest=DevPodUpOptionsREST -// +subresource:request=DevPodDeleteOptions,path=delete,kind=DevPodDeleteOptions,rest=DevPodDeleteOptionsREST -// +subresource:request=DevPodSshOptions,path=ssh,kind=DevPodSshOptions,rest=DevPodSshOptionsREST -// +subresource:request=DevPodStopOptions,path=stop,kind=DevPodStopOptions,rest=DevPodStopOptionsREST -// +subresource:request=DevPodStatusOptions,path=getstatus,kind=DevPodStatusOptions,rest=DevPodStatusOptionsREST -// +subresource:request=DevPodWorkspaceInstanceState,path=state,kind=DevPodWorkspaceInstanceState,rest=DevPodWorkspaceInstanceStateREST +// +subresource:request=DevPodWorkspaceInstanceUp,path=up,kind=DevPodWorkspaceInstanceUp,rest=DevPodWorkspaceInstanceUpREST +// +subresource:request=DevPodWorkspaceInstanceStop,path=stop,kind=DevPodWorkspaceInstanceStop,rest=DevPodWorkspaceInstanceStopREST // +subresource:request=DevPodWorkspaceInstanceTroubleshoot,path=troubleshoot,kind=DevPodWorkspaceInstanceTroubleshoot,rest=DevPodWorkspaceInstanceTroubleshootREST +// +subresource:request=DevPodWorkspaceInstanceLog,path=log,kind=DevPodWorkspaceInstanceLog,rest=DevPodWorkspaceInstanceLogREST +// +subresource:request=DevPodWorkspaceInstanceTasks,path=tasks,kind=DevPodWorkspaceInstanceTasks,rest=DevPodWorkspaceInstanceTasksREST +// +subresource:request=DevPodWorkspaceInstanceCancel,path=cancel,kind=DevPodWorkspaceInstanceCancel,rest=DevPodWorkspaceInstanceCancelREST type DevPodWorkspaceInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -45,6 +47,143 @@ type DevPodWorkspaceInstanceStatus struct { // in the front end. // +optional SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` + + // Kubernetes is the status of the workspace on kubernetes + // +optional + Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` +} + +type DevPodWorkspaceInstanceKubernetesStatus struct { + // PodStatus is the status of the pod that is running the workspace + // +optional + PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` + + // PersistentVolumeClaimStatus is the pvc that is used to store the workspace + // +optional + PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` +} + +type DevPodWorkspaceInstancePodStatus struct { + // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. + // The conditions array, the reason and message fields, and the individual container status + // arrays contain more detail about the pod's status. + // There are five possible phase values: + // + // Pending: The pod has been accepted by the Kubernetes system, but one or more of the + // container images has not been created. This includes time before being scheduled as + // well as time spent downloading images over the network, which could take a while. + // Running: The pod has been bound to a node, and all of the containers have been created. + // At least one container is still running, or is in the process of starting or restarting. + // Succeeded: All containers in the pod have terminated in success, and will not be restarted. + // Failed: All containers in the pod have terminated, and at least one container has + // terminated in failure. The container either exited with non-zero status or was terminated + // by the system. + // Unknown: For some reason the state of the pod could not be obtained, typically due to an + // error in communicating with the host of the pod. + // + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + // +optional + Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` + // Current service state of pod. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` + // A human readable message indicating details about why the pod is in this condition. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + // A brief CamelCase message indicating details about why the pod is in this state. + // e.g. 'Evicted' + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + // Statuses of init containers in this pod. The most recent successful non-restartable + // init container will have ready = true, the most recently started container will have + // startTime set. + // Each init container in the pod should have at most one status in this list, + // and all statuses should be for containers in the pod. + // However this is not enforced. + // If a status for a non-existent container is present in the list, or the list has duplicate names, + // the behavior of various Kubernetes components is not defined and those statuses might be + // ignored. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status + // +listType=atomic + InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` + // Statuses of containers in this pod. + // Each container in the pod should have at most one status in this list, + // and all statuses should be for containers in the pod. + // However this is not enforced. + // If a status for a non-existent container is present in the list, or the list has duplicate names, + // the behavior of various Kubernetes components is not defined and those statuses might be + // ignored. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + // +optional + // +listType=atomic + ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` + // NodeName is the name of the node that is running the workspace + // +optional + NodeName string `json:"nodeName,omitempty"` + // Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running. + // +optional + Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` + // ContainerResources are the resources of the containers that are running the workspace + // +optional + ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` + // ContainerMetrics are the metrics of the pod that is running the workspace + // +optional + ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` +} + +type DevPodWorkspaceInstanceContainerResource struct { + // Name is the name of the container + // +optional + Name string `json:"name,omitempty"` + // Resources is the resources of the container + // +optional + Resources corev1.ResourceRequirements `json:"resources,omitempty"` +} + +type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { + // phase represents the current phase of PersistentVolumeClaim. + // +optional + Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` + // capacity represents the actual resources of the underlying volume. + // +optional + Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` + // conditions is the current Condition of persistent volume claim. If underlying persistent volume is being + // resized then the Condition will be set to 'Resizing'. + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` + // Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound. + // +optional + Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` +} + +type DevPodWorkspaceInstanceEvent struct { + // This should be a short, machine understandable string that gives the reason + // for the transition into the object's current status. + // TODO: provide exact specification for format. + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + + // A human-readable description of the status of this operation. + // TODO: decide on maximum length. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` + + // The time at which the most recent occurrence of this event was recorded. + // +optional + LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` + + // Type of this event (Normal, Warning), new types could be added in the future + // +optional + Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` } func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go new file mode 100644 index 00000000..5227261e --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go @@ -0,0 +1,32 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceUp struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstanceUpSpec struct { + // Debug includes debug logs. + // +optional + Debug bool `json:"debug,omitempty"` + + // Options are the options to pass. + // +optional + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceUpStatus struct { + // TaskID is the id of the task that is running + // +optional + TaskID string `json:"taskId,omitempty"` +} diff --git a/pkg/apis/management/v1/options.go b/pkg/apis/management/v1/options.go index 8f0260ea..94ac46e2 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -140,80 +140,34 @@ type UserQuotasOptions struct { // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodUpOptions struct { - metav1.TypeMeta `json:",inline"` - - // WebMode executes the up command directly. - // +optional - WebMode bool `json:"webMode,omitempty"` - - // CLIMode executes the up command directly. - // +optional - CLIMode bool `json:"cliMode,omitempty"` - - // Debug includes debug logs. - // +optional - Debug bool `json:"debug,omitempty"` - - // Options are the options to pass. - // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type DevPodDeleteOptions struct { +type BackupApplyOptions struct { metav1.TypeMeta `json:",inline"` - - // Options are the options to pass. - // +optional - Options string `json:"options,omitempty"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodStopOptions struct { +type DevPodWorkspaceInstanceLogOptions struct { metav1.TypeMeta `json:",inline"` - // Options are the options to pass. + // TaskID is the id of the task that is running // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type DevPodStatusOptions struct { - metav1.TypeMeta `json:",inline"` + TaskID string `json:"taskID,omitempty"` - // Options are the options to pass. + // Follow the log stream of the task. Defaults to false. // +optional - Options string `json:"options,omitempty"` + Follow bool `json:"follow,omitempty"` } // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +subresource-request -type DevPodSshOptions struct { +type DevPodWorkspaceInstanceTasksOptions struct { metav1.TypeMeta `json:",inline"` - // Options are the options to pass. + // TaskID is the id of the task that is running // +optional - Options string `json:"options,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type BackupApplyOptions struct { - metav1.TypeMeta `json:",inline"` + TaskID string `json:"taskID,omitempty"` } func InstallOptions(scheme *runtime.Scheme) error { @@ -229,12 +183,9 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &UserSpacesOptions{}, &UserVirtualClustersOptions{}, &UserQuotasOptions{}, - &DevPodUpOptions{}, - &DevPodDeleteOptions{}, - &DevPodStopOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, &BackupApplyOptions{}, + &DevPodWorkspaceInstanceLogOptions{}, + &DevPodWorkspaceInstanceTasksOptions{}, ) return nil } diff --git a/pkg/apis/management/v1/project_clusters_types.go b/pkg/apis/management/v1/project_clusters_types.go index 468e769e..50071f93 100644 --- a/pkg/apis/management/v1/project_clusters_types.go +++ b/pkg/apis/management/v1/project_clusters_types.go @@ -13,7 +13,4 @@ type ProjectClusters struct { // Clusters holds all the allowed clusters Clusters []Cluster `json:"clusters,omitempty"` - - // Runners holds all the allowed runners - Runners []Runner `json:"runners,omitempty"` } diff --git a/pkg/apis/management/v1/project_types.go b/pkg/apis/management/v1/project_types.go index 00ff81be..6503839e 100644 --- a/pkg/apis/management/v1/project_types.go +++ b/pkg/apis/management/v1/project_types.go @@ -9,7 +9,6 @@ import ( // +genclient:nonNamespaced // +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers // +genclient:method=ListTemplates,verb=get,subresource=templates,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates -// +genclient:method=ListRunners,verb=get,subresource=runners,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners // +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters // +genclient:method=MigrateVirtualClusterInstance,verb=create,subresource=migratevirtualclusterinstance,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance // +genclient:method=ImportSpace,verb=create,subresource=importspace,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace @@ -21,7 +20,6 @@ import ( // +resource:path=projects,rest=ProjectREST,statusRest=ProjectStatusREST // +subresource:request=ProjectCharts,path=charts,kind=ProjectCharts,rest=ProjectChartsREST // +subresource:request=ProjectTemplates,path=templates,kind=ProjectTemplates,rest=ProjectTemplatesREST -// +subresource:request=ProjectRunners,path=runners,kind=ProjectRunners,rest=ProjectRunnersREST // +subresource:request=ProjectMembers,path=members,kind=ProjectMembers,rest=ProjectMembersREST // +subresource:request=ProjectClusters,path=clusters,kind=ProjectClusters,rest=ProjectClustersREST // +subresource:request=ProjectChartInfo,path=chartinfo,kind=ProjectChartInfo,rest=ProjectChartInfoREST diff --git a/pkg/apis/management/v1/runner_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/user_types.go b/pkg/apis/management/v1/user_types.go index 81c34cdb..66fd711f 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 diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index f061b452..1b24746e 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -45,13 +45,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &DevPodEnvironmentTemplateList{}, &DevPodWorkspaceInstance{}, &DevPodWorkspaceInstanceList{}, - &DevPodDeleteOptions{}, - &DevPodStatusOptions{}, - &DevPodSshOptions{}, - &DevPodWorkspaceInstanceState{}, - &DevPodStopOptions{}, + &DevPodWorkspaceInstanceCancel{}, + &DevPodWorkspaceInstanceLog{}, + &DevPodWorkspaceInstanceStop{}, + &DevPodWorkspaceInstanceTasks{}, &DevPodWorkspaceInstanceTroubleshoot{}, - &DevPodUpOptions{}, + &DevPodWorkspaceInstanceUp{}, &DevPodWorkspacePreset{}, &DevPodWorkspacePresetList{}, &DevPodWorkspaceTemplate{}, @@ -86,7 +85,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ProjectMembers{}, &ProjectMigrateSpaceInstance{}, &ProjectMigrateVirtualClusterInstance{}, - &ProjectRunners{}, &ProjectTemplates{}, &ProjectSecret{}, &ProjectSecretList{}, @@ -96,10 +94,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &RegisterVirtualClusterList{}, &ResetAccessKey{}, &ResetAccessKeyList{}, - &Runner{}, - &RunnerList{}, - &RunnerAccessKey{}, - &RunnerConfig{}, &Self{}, &SelfList{}, &SelfSubjectAccessReview{}, @@ -221,34 +215,28 @@ var ( management.ManagementDevPodEnvironmentTemplateStorage, management.ManagementDevPodWorkspaceInstanceStorage, builders.NewApiResourceWithStorage( - management.InternalDevPodDeleteOptionsREST, - func() runtime.Object { return &DevPodDeleteOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceCancelREST, + func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, // Register versioned resource nil, - management.NewDevPodDeleteOptionsREST, + management.NewDevPodWorkspaceInstanceCancelREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodStatusOptionsREST, - func() runtime.Object { return &DevPodStatusOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceLogREST, + func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, // Register versioned resource nil, - management.NewDevPodStatusOptionsREST, + management.NewDevPodWorkspaceInstanceLogREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodSshOptionsREST, - func() runtime.Object { return &DevPodSshOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceStopREST, + func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, // Register versioned resource nil, - management.NewDevPodSshOptionsREST, + management.NewDevPodWorkspaceInstanceStopREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceStateREST, - func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceTasksREST, + func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceStateREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodStopOptionsREST, - func() runtime.Object { return &DevPodStopOptions{} }, // Register versioned resource - nil, - management.NewDevPodStopOptionsREST, + management.NewDevPodWorkspaceInstanceTasksREST, ), builders.NewApiResourceWithStorage( management.InternalDevPodWorkspaceInstanceTroubleshootREST, @@ -257,10 +245,10 @@ var ( management.NewDevPodWorkspaceInstanceTroubleshootREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodUpOptionsREST, - func() runtime.Object { return &DevPodUpOptions{} }, // Register versioned resource + management.InternalDevPodWorkspaceInstanceUpREST, + func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, // Register versioned resource nil, - management.NewDevPodUpOptionsREST, + management.NewDevPodWorkspaceInstanceUpREST, ), management.ManagementDevPodWorkspacePresetStorage, management.ManagementDevPodWorkspaceTemplateStorage, @@ -333,12 +321,6 @@ var ( nil, management.NewProjectMigrateVirtualClusterInstanceREST, ), - builders.NewApiResourceWithStorage( - management.InternalProjectRunnersREST, - func() runtime.Object { return &ProjectRunners{} }, // Register versioned resource - nil, - management.NewProjectRunnersREST, - ), builders.NewApiResourceWithStorage( management.InternalProjectTemplatesREST, func() runtime.Object { return &ProjectTemplates{} }, // Register versioned resource @@ -349,24 +331,6 @@ var ( management.ManagementRedirectTokenStorage, management.ManagementRegisterVirtualClusterStorage, management.ManagementResetAccessKeyStorage, - management.ManagementRunnerStorage, - builders.NewApiResourceWithStorage( - management.InternalRunnerStatus, - func() runtime.Object { return &Runner{} }, // Register versioned resource - func() runtime.Object { return &RunnerList{} }, // Register versioned resource list - management.NewRunnerStatusREST), - builders.NewApiResourceWithStorage( - management.InternalRunnerAccessKeyREST, - func() runtime.Object { return &RunnerAccessKey{} }, // Register versioned resource - nil, - management.NewRunnerAccessKeyREST, - ), - builders.NewApiResourceWithStorage( - management.InternalRunnerConfigREST, - func() runtime.Object { return &RunnerConfig{} }, // Register versioned resource - nil, - management.NewRunnerConfigREST, - ), management.ManagementSelfStorage, management.ManagementSelfSubjectAccessReviewStorage, management.ManagementSharedSecretStorage, @@ -653,42 +617,34 @@ type DevPodWorkspaceInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodDeleteOptionsList struct { +type DevPodWorkspaceInstanceCancelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodDeleteOptions `json:"items"` + Items []DevPodWorkspaceInstanceCancel `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStatusOptionsList struct { +type DevPodWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStatusOptions `json:"items"` + Items []DevPodWorkspaceInstanceLog `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptionsList struct { +type DevPodWorkspaceInstanceStopList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` + Items []DevPodWorkspaceInstanceStop `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStateList struct { +type DevPodWorkspaceInstanceTasksList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` -} - -// +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"` + Items []DevPodWorkspaceInstanceTasks `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -701,10 +657,10 @@ type DevPodWorkspaceInstanceTroubleshootList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptionsList struct { +type DevPodWorkspaceInstanceUpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []DevPodWorkspaceInstanceUp `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -877,14 +833,6 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunnersList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectRunners `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type ProjectTemplatesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -925,30 +873,6 @@ type ResetAccessKeyList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type RunnerList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Runner `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerAccessKeyList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerAccessKey `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfigList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerConfig `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type SelfList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index fa0bae44..9b6e1429 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -21,6 +21,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" + v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) func init() { @@ -900,26 +901,6 @@ 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 { @@ -960,133 +941,133 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodSshOptions)(nil), (*management.DevPodSshOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodSshOptions_To_management_DevPodSshOptions(a.(*DevPodSshOptions), b.(*management.DevPodSshOptions), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstance)(nil), (*management.DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(a.(*DevPodWorkspaceInstance), b.(*management.DevPodWorkspaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodSshOptions)(nil), (*DevPodSshOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodSshOptions_To_v1_DevPodSshOptions(a.(*management.DevPodSshOptions), b.(*DevPodSshOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstance)(nil), (*DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(a.(*management.DevPodWorkspaceInstance), b.(*DevPodWorkspaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodSshOptionsList)(nil), (*management.DevPodSshOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodSshOptionsList_To_management_DevPodSshOptionsList(a.(*DevPodSshOptionsList), b.(*management.DevPodSshOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceCancel)(nil), (*management.DevPodWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(a.(*DevPodWorkspaceInstanceCancel), b.(*management.DevPodWorkspaceInstanceCancel), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodSshOptionsList)(nil), (*DevPodSshOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList(a.(*management.DevPodSshOptionsList), b.(*DevPodSshOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceCancel)(nil), (*DevPodWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(a.(*management.DevPodWorkspaceInstanceCancel), b.(*DevPodWorkspaceInstanceCancel), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodStatusOptions)(nil), (*management.DevPodStatusOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(a.(*DevPodStatusOptions), b.(*management.DevPodStatusOptions), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceCancelList)(nil), (*management.DevPodWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(a.(*DevPodWorkspaceInstanceCancelList), b.(*management.DevPodWorkspaceInstanceCancelList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodStatusOptions)(nil), (*DevPodStatusOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(a.(*management.DevPodStatusOptions), b.(*DevPodStatusOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceCancelList)(nil), (*DevPodWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(a.(*management.DevPodWorkspaceInstanceCancelList), b.(*DevPodWorkspaceInstanceCancelList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodStatusOptionsList)(nil), (*management.DevPodStatusOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(a.(*DevPodStatusOptionsList), b.(*management.DevPodStatusOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceContainerResource)(nil), (*management.DevPodWorkspaceInstanceContainerResource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(a.(*DevPodWorkspaceInstanceContainerResource), b.(*management.DevPodWorkspaceInstanceContainerResource), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodStatusOptionsList)(nil), (*DevPodStatusOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(a.(*management.DevPodStatusOptionsList), b.(*DevPodStatusOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceContainerResource)(nil), (*DevPodWorkspaceInstanceContainerResource)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(a.(*management.DevPodWorkspaceInstanceContainerResource), b.(*DevPodWorkspaceInstanceContainerResource), 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((*DevPodWorkspaceInstanceEvent)(nil), (*management.DevPodWorkspaceInstanceEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(a.(*DevPodWorkspaceInstanceEvent), b.(*management.DevPodWorkspaceInstanceEvent), 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.DevPodWorkspaceInstanceEvent)(nil), (*DevPodWorkspaceInstanceEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(a.(*management.DevPodWorkspaceInstanceEvent), b.(*DevPodWorkspaceInstanceEvent), 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((*DevPodWorkspaceInstanceKubernetesStatus)(nil), (*management.DevPodWorkspaceInstanceKubernetesStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(a.(*DevPodWorkspaceInstanceKubernetesStatus), b.(*management.DevPodWorkspaceInstanceKubernetesStatus), 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.DevPodWorkspaceInstanceKubernetesStatus)(nil), (*DevPodWorkspaceInstanceKubernetesStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(a.(*management.DevPodWorkspaceInstanceKubernetesStatus), b.(*DevPodWorkspaceInstanceKubernetesStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodUpOptions)(nil), (*management.DevPodUpOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodUpOptions_To_management_DevPodUpOptions(a.(*DevPodUpOptions), b.(*management.DevPodUpOptions), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceList)(nil), (*management.DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(a.(*DevPodWorkspaceInstanceList), b.(*management.DevPodWorkspaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodUpOptions)(nil), (*DevPodUpOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodUpOptions_To_v1_DevPodUpOptions(a.(*management.DevPodUpOptions), b.(*DevPodUpOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceList)(nil), (*DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(a.(*management.DevPodWorkspaceInstanceList), b.(*DevPodWorkspaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodUpOptionsList)(nil), (*management.DevPodUpOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodUpOptionsList_To_management_DevPodUpOptionsList(a.(*DevPodUpOptionsList), b.(*management.DevPodUpOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLog)(nil), (*management.DevPodWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(a.(*DevPodWorkspaceInstanceLog), b.(*management.DevPodWorkspaceInstanceLog), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodUpOptionsList)(nil), (*DevPodUpOptionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodUpOptionsList_To_v1_DevPodUpOptionsList(a.(*management.DevPodUpOptionsList), b.(*DevPodUpOptionsList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLog)(nil), (*DevPodWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(a.(*management.DevPodWorkspaceInstanceLog), b.(*DevPodWorkspaceInstanceLog), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstance)(nil), (*management.DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(a.(*DevPodWorkspaceInstance), b.(*management.DevPodWorkspaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLogList)(nil), (*management.DevPodWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(a.(*DevPodWorkspaceInstanceLogList), b.(*management.DevPodWorkspaceInstanceLogList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstance)(nil), (*DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(a.(*management.DevPodWorkspaceInstance), b.(*DevPodWorkspaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLogList)(nil), (*DevPodWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(a.(*management.DevPodWorkspaceInstanceLogList), b.(*DevPodWorkspaceInstanceLogList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceList)(nil), (*management.DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(a.(*DevPodWorkspaceInstanceList), b.(*management.DevPodWorkspaceInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLogOptions)(nil), (*management.DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(a.(*DevPodWorkspaceInstanceLogOptions), b.(*management.DevPodWorkspaceInstanceLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceList)(nil), (*DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(a.(*management.DevPodWorkspaceInstanceList), b.(*DevPodWorkspaceInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLogOptions)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*management.DevPodWorkspaceInstanceLogOptions), b.(*DevPodWorkspaceInstanceLogOptions), scope) }); err != nil { return err } - 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((*DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), (*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(a.(*DevPodWorkspaceInstancePersistentVolumeClaimStatus), b.(*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus), 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.DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), (*DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(a.(*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus), b.(*DevPodWorkspaceInstancePersistentVolumeClaimStatus), 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((*DevPodWorkspaceInstancePodStatus)(nil), (*management.DevPodWorkspaceInstancePodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(a.(*DevPodWorkspaceInstancePodStatus), b.(*management.DevPodWorkspaceInstancePodStatus), 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.DevPodWorkspaceInstancePodStatus)(nil), (*DevPodWorkspaceInstancePodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(a.(*management.DevPodWorkspaceInstancePodStatus), b.(*DevPodWorkspaceInstancePodStatus), 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((*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) }); 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.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) }); err != nil { return err } @@ -1100,6 +1081,86 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStop)(nil), (*management.DevPodWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(a.(*DevPodWorkspaceInstanceStop), b.(*management.DevPodWorkspaceInstanceStop), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStop)(nil), (*DevPodWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(a.(*management.DevPodWorkspaceInstanceStop), b.(*DevPodWorkspaceInstanceStop), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopList)(nil), (*management.DevPodWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(a.(*DevPodWorkspaceInstanceStopList), b.(*management.DevPodWorkspaceInstanceStopList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopList)(nil), (*DevPodWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(a.(*management.DevPodWorkspaceInstanceStopList), b.(*DevPodWorkspaceInstanceStopList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopSpec)(nil), (*management.DevPodWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(a.(*DevPodWorkspaceInstanceStopSpec), b.(*management.DevPodWorkspaceInstanceStopSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopSpec)(nil), (*DevPodWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(a.(*management.DevPodWorkspaceInstanceStopSpec), b.(*DevPodWorkspaceInstanceStopSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopStatus)(nil), (*management.DevPodWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(a.(*DevPodWorkspaceInstanceStopStatus), b.(*management.DevPodWorkspaceInstanceStopStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopStatus)(nil), (*DevPodWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(a.(*management.DevPodWorkspaceInstanceStopStatus), b.(*DevPodWorkspaceInstanceStopStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTask)(nil), (*management.DevPodWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(a.(*DevPodWorkspaceInstanceTask), b.(*management.DevPodWorkspaceInstanceTask), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTask)(nil), (*DevPodWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(a.(*management.DevPodWorkspaceInstanceTask), b.(*DevPodWorkspaceInstanceTask), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasks)(nil), (*management.DevPodWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(a.(*DevPodWorkspaceInstanceTasks), b.(*management.DevPodWorkspaceInstanceTasks), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasks)(nil), (*DevPodWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(a.(*management.DevPodWorkspaceInstanceTasks), b.(*DevPodWorkspaceInstanceTasks), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasksList)(nil), (*management.DevPodWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(a.(*DevPodWorkspaceInstanceTasksList), b.(*management.DevPodWorkspaceInstanceTasksList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasksList)(nil), (*DevPodWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(a.(*management.DevPodWorkspaceInstanceTasksList), b.(*DevPodWorkspaceInstanceTasksList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasksOptions)(nil), (*management.DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(a.(*DevPodWorkspaceInstanceTasksOptions), b.(*management.DevPodWorkspaceInstanceTasksOptions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasksOptions)(nil), (*DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(a.(*management.DevPodWorkspaceInstanceTasksOptions), b.(*DevPodWorkspaceInstanceTasksOptions), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshoot)(nil), (*management.DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(a.(*DevPodWorkspaceInstanceTroubleshoot), b.(*management.DevPodWorkspaceInstanceTroubleshoot), scope) }); err != nil { @@ -1120,6 +1181,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUp)(nil), (*management.DevPodWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(a.(*DevPodWorkspaceInstanceUp), b.(*management.DevPodWorkspaceInstanceUp), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUp)(nil), (*DevPodWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(a.(*management.DevPodWorkspaceInstanceUp), b.(*DevPodWorkspaceInstanceUp), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpList)(nil), (*management.DevPodWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(a.(*DevPodWorkspaceInstanceUpList), b.(*management.DevPodWorkspaceInstanceUpList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpList)(nil), (*DevPodWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(a.(*management.DevPodWorkspaceInstanceUpList), b.(*DevPodWorkspaceInstanceUpList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpSpec)(nil), (*management.DevPodWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(a.(*DevPodWorkspaceInstanceUpSpec), b.(*management.DevPodWorkspaceInstanceUpSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpSpec)(nil), (*DevPodWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(a.(*management.DevPodWorkspaceInstanceUpSpec), b.(*DevPodWorkspaceInstanceUpSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpStatus)(nil), (*management.DevPodWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(a.(*DevPodWorkspaceInstanceUpStatus), b.(*management.DevPodWorkspaceInstanceUpStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpStatus)(nil), (*DevPodWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(a.(*management.DevPodWorkspaceInstanceUpStatus), b.(*DevPodWorkspaceInstanceUpStatus), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePreset)(nil), (*management.DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(a.(*DevPodWorkspacePreset), b.(*management.DevPodWorkspacePreset), scope) }); err != nil { @@ -1330,6 +1431,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 { @@ -1910,26 +2021,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ProjectRunners)(nil), (*management.ProjectRunners)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectRunners_To_management_ProjectRunners(a.(*ProjectRunners), b.(*management.ProjectRunners), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.ProjectRunners)(nil), (*ProjectRunners)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ProjectRunners_To_v1_ProjectRunners(a.(*management.ProjectRunners), b.(*ProjectRunners), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*ProjectRunnersList)(nil), (*management.ProjectRunnersList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ProjectRunnersList_To_management_ProjectRunnersList(a.(*ProjectRunnersList), b.(*management.ProjectRunnersList), scope) - }); 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) - }); 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) }); err != nil { @@ -2130,86 +2221,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*Runner)(nil), (*management.Runner)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_Runner_To_management_Runner(a.(*Runner), b.(*management.Runner), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.Runner)(nil), (*Runner)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_Runner_To_v1_Runner(a.(*management.Runner), b.(*Runner), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerAccessKey)(nil), (*management.RunnerAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerAccessKey_To_management_RunnerAccessKey(a.(*RunnerAccessKey), b.(*management.RunnerAccessKey), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerAccessKey)(nil), (*RunnerAccessKey)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerAccessKey_To_v1_RunnerAccessKey(a.(*management.RunnerAccessKey), b.(*RunnerAccessKey), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerAccessKeyList)(nil), (*management.RunnerAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(a.(*RunnerAccessKeyList), b.(*management.RunnerAccessKeyList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerAccessKeyList)(nil), (*RunnerAccessKeyList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(a.(*management.RunnerAccessKeyList), b.(*RunnerAccessKeyList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerConfig)(nil), (*management.RunnerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerConfig_To_management_RunnerConfig(a.(*RunnerConfig), b.(*management.RunnerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerConfig)(nil), (*RunnerConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerConfig_To_v1_RunnerConfig(a.(*management.RunnerConfig), b.(*RunnerConfig), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerConfigList)(nil), (*management.RunnerConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerConfigList_To_management_RunnerConfigList(a.(*RunnerConfigList), b.(*management.RunnerConfigList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerConfigList)(nil), (*RunnerConfigList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerConfigList_To_v1_RunnerConfigList(a.(*management.RunnerConfigList), b.(*RunnerConfigList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerList)(nil), (*management.RunnerList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerList_To_management_RunnerList(a.(*RunnerList), b.(*management.RunnerList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerList)(nil), (*RunnerList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerList_To_v1_RunnerList(a.(*management.RunnerList), b.(*RunnerList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerSpec)(nil), (*management.RunnerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerSpec_To_management_RunnerSpec(a.(*RunnerSpec), b.(*management.RunnerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerSpec)(nil), (*RunnerSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerSpec_To_v1_RunnerSpec(a.(*management.RunnerSpec), b.(*RunnerSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*RunnerStatus)(nil), (*management.RunnerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_RunnerStatus_To_management_RunnerStatus(a.(*RunnerStatus), b.(*management.RunnerStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.RunnerStatus)(nil), (*RunnerStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_RunnerStatus_To_v1_RunnerStatus(a.(*management.RunnerStatus), b.(*RunnerStatus), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*Self)(nil), (*management.Self)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_Self_To_management_Self(a.(*Self), b.(*management.Self), scope) }); err != nil { @@ -3135,28 +3146,13 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodDeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodDeleteOptions(a.(*url.Values), b.(*DevPodDeleteOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodSshOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodSshOptions(a.(*url.Values), b.(*DevPodSshOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodStatusOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodStatusOptions(a.(*url.Values), b.(*DevPodStatusOptions), scope) + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodStopOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodStopOptions(a.(*url.Values), b.(*DevPodStopOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodUpOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodUpOptions(a.(*url.Values), b.(*DevPodUpOptions), scope) + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceTasksOptions), scope) }); err != nil { return err } @@ -5114,6 +5110,7 @@ func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, ou out.DisableConfigEndpoint = in.DisableConfigEndpoint out.Cloud = (*management.Cloud)(unsafe.Pointer(in.Cloud)) out.CostControl = (*management.CostControl)(unsafe.Pointer(in.CostControl)) + out.ImageBuilder = (*management.ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } @@ -5137,6 +5134,7 @@ func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.Confi out.DisableConfigEndpoint = in.DisableConfigEndpoint out.Cloud = (*Cloud)(unsafe.Pointer(in.Cloud)) out.CostControl = (*CostControl)(unsafe.Pointer(in.CostControl)) + out.ImageBuilder = (*ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } @@ -5447,66 +5445,6 @@ func Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in *management return autoConvert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in, out, s) } -func autoConvert_v1_DevPodDeleteOptions_To_management_DevPodDeleteOptions(in *DevPodDeleteOptions, out *management.DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options - 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) -} - -func autoConvert_management_DevPodDeleteOptions_To_v1_DevPodDeleteOptions(in *management.DevPodDeleteOptions, out *DevPodDeleteOptions, s conversion.Scope) error { - out.Options = in.Options - 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) -} - -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 = "" - } - 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) -} - -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)) - 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) -} - -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)) - 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) -} - func autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { @@ -5599,411 +5537,575 @@ func Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentT return autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(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_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_v1_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_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in, out, s) } -func autoConvert_management_DevPodSshOptions_To_v1_DevPodSshOptions(in *management.DevPodSshOptions, out *DevPodSshOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + return err + } return nil } -// Convert_management_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_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_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_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.TaskID = in.TaskID 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_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in, out, s) } -func autoConvert_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_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.TaskID = in.TaskID 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_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in, out, s) } -func autoConvert_management_DevPodSshOptionsList_To_v1_DevPodSshOptionsList(in *management.DevPodSshOptionsList, out *DevPodSshOptionsList, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodSshOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) 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_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in, out, s) } -func autoConvert_v1_DevPodStatusOptions_To_management_DevPodStatusOptions(in *DevPodStatusOptions, out *management.DevPodStatusOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) return nil } -// Convert_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_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in, out, s) } -func autoConvert_management_DevPodStatusOptions_To_v1_DevPodStatusOptions(in *management.DevPodStatusOptions, out *DevPodStatusOptions, s conversion.Scope) error { - out.Options = in.Options +func autoConvert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(in *DevPodWorkspaceInstanceContainerResource, out *management.DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { + out.Name = in.Name + out.Resources = in.Resources 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_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(in *DevPodWorkspaceInstanceContainerResource, out *management.DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodStatusOptions(in *url.Values, out *DevPodStatusOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. +func autoConvert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(in *management.DevPodWorkspaceInstanceContainerResource, out *DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { + out.Name = in.Name + out.Resources = in.Resources + return nil +} - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { - return err - } - } else { - out.Options = "" - } +// Convert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(in *management.DevPodWorkspaceInstanceContainerResource, out *DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(in *DevPodWorkspaceInstanceEvent, out *management.DevPodWorkspaceInstanceEvent, s conversion.Scope) error { + out.Reason = in.Reason + out.Message = in.Message + out.LastTimestamp = in.LastTimestamp + out.Type = in.Type 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_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(in *DevPodWorkspaceInstanceEvent, out *management.DevPodWorkspaceInstanceEvent, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(in, out, s) } -func autoConvert_v1_DevPodStatusOptionsList_To_management_DevPodStatusOptionsList(in *DevPodStatusOptionsList, out *management.DevPodStatusOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodStatusOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(in *management.DevPodWorkspaceInstanceEvent, out *DevPodWorkspaceInstanceEvent, s conversion.Scope) error { + out.Reason = in.Reason + out.Message = in.Message + out.LastTimestamp = in.LastTimestamp + out.Type = in.Type 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_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(in *management.DevPodWorkspaceInstanceEvent, out *DevPodWorkspaceInstanceEvent, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(in, out, s) } -func autoConvert_management_DevPodStatusOptionsList_To_v1_DevPodStatusOptionsList(in *management.DevPodStatusOptionsList, out *DevPodStatusOptionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodStatusOptions)(unsafe.Pointer(&in.Items)) +func autoConvert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(in *DevPodWorkspaceInstanceKubernetesStatus, out *management.DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { + out.PodStatus = (*management.DevPodWorkspaceInstancePodStatus)(unsafe.Pointer(in.PodStatus)) + out.PersistentVolumeClaimStatus = (*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus)(unsafe.Pointer(in.PersistentVolumeClaimStatus)) 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_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(in *DevPodWorkspaceInstanceKubernetesStatus, out *management.DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(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_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(in *management.DevPodWorkspaceInstanceKubernetesStatus, out *DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { + out.PodStatus = (*DevPodWorkspaceInstancePodStatus)(unsafe.Pointer(in.PodStatus)) + out.PersistentVolumeClaimStatus = (*DevPodWorkspaceInstancePersistentVolumeClaimStatus)(unsafe.Pointer(in.PersistentVolumeClaimStatus)) 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_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(in *management.DevPodWorkspaceInstanceKubernetesStatus, out *DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(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_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_management_DevPodStopOptions_To_v1_DevPodStopOptions is an autogenerated conversion function. -func Convert_management_DevPodStopOptions_To_v1_DevPodStopOptions(in *management.DevPodStopOptions, out *DevPodStopOptions, s conversion.Scope) error { - return autoConvert_management_DevPodStopOptions_To_v1_DevPodStopOptions(in, out, s) +// Convert_v1_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_url_Values_To_v1_DevPodStopOptions(in *url.Values, out *DevPodStopOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. +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 +} - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { - return err - } - } else { - out.Options = "" - } +// Convert_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_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta return nil } -// Convert_url_Values_To_v1_DevPodStopOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodStopOptions(in *url.Values, out *DevPodStopOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodStopOptions(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in, out, s) } -func autoConvert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in *DevPodStopOptionsList, out *management.DevPodStopOptionsList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + return nil +} + +// Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodStopOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList is an autogenerated conversion function. -func Convert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in *DevPodStopOptionsList, out *management.DevPodStopOptionsList, s conversion.Scope) error { - return autoConvert_v1_DevPodStopOptionsList_To_management_DevPodStopOptionsList(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in, out, s) } -func autoConvert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in *management.DevPodStopOptionsList, out *DevPodStopOptionsList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodStopOptions)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList is an autogenerated conversion function. -func Convert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in *management.DevPodStopOptionsList, out *DevPodStopOptionsList, s conversion.Scope) error { - return autoConvert_management_DevPodStopOptionsList_To_v1_DevPodStopOptionsList(in, out, s) +// Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in, out, s) } -func autoConvert_v1_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_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { + out.TaskID = in.TaskID + out.Follow = in.Follow 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_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_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_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { + out.TaskID = in.TaskID + out.Follow = in.Follow return nil } -// Convert_management_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_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodUpOptions(in *url.Values, out *DevPodUpOptions, s conversion.Scope) error { +func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. - if values, ok := map[string][]string(*in)["webMode"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.WebMode, s); err != nil { + if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.TaskID, s); err != nil { return err } } else { - out.WebMode = false + out.TaskID = "" } - if values, ok := map[string][]string(*in)["cliMode"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.CLIMode, s); err != nil { - return err - } - } else { - out.CLIMode = false - } - if values, ok := map[string][]string(*in)["debug"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_bool(&values, &out.Debug, s); err != nil { - return err - } - } else { - out.Debug = false - } - if values, ok := map[string][]string(*in)["options"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Options, s); err != nil { + 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.Options = "" + out.Follow = false } 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_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_v1_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_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { + out.Phase = corev1.PersistentVolumeClaimPhase(in.Phase) + out.Capacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.Capacity)) + out.Conditions = *(*[]corev1.PersistentVolumeClaimCondition)(unsafe.Pointer(&in.Conditions)) + out.Events = *(*[]management.DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) 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_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(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_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { + out.Phase = corev1.PersistentVolumeClaimPhase(in.Phase) + out.Capacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.Capacity)) + out.Conditions = *(*[]corev1.PersistentVolumeClaimCondition)(unsafe.Pointer(&in.Conditions)) + out.Events = *(*[]DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) 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_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(in *DevPodWorkspaceInstancePodStatus, out *management.DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { + out.Phase = corev1.PodPhase(in.Phase) + out.Conditions = *(*[]corev1.PodCondition)(unsafe.Pointer(&in.Conditions)) + out.Message = in.Message + out.Reason = in.Reason + out.InitContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) + out.ContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) + out.NodeName = in.NodeName + out.Events = *(*[]management.DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) + out.ContainerResources = *(*[]management.DevPodWorkspaceInstanceContainerResource)(unsafe.Pointer(&in.ContainerResources)) + out.ContainerMetrics = *(*[]v1beta1.ContainerMetrics)(unsafe.Pointer(&in.ContainerMetrics)) + return nil +} + +// Convert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(in *DevPodWorkspaceInstancePodStatus, out *management.DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(in *management.DevPodWorkspaceInstancePodStatus, out *DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { + out.Phase = corev1.PodPhase(in.Phase) + out.Conditions = *(*[]corev1.PodCondition)(unsafe.Pointer(&in.Conditions)) + out.Message = in.Message + out.Reason = in.Reason + out.InitContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) + out.ContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) + out.NodeName = in.NodeName + out.Events = *(*[]DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) + out.ContainerResources = *(*[]DevPodWorkspaceInstanceContainerResource)(unsafe.Pointer(&in.ContainerResources)) + out.ContainerMetrics = *(*[]v1beta1.ContainerMetrics)(unsafe.Pointer(&in.ContainerMetrics)) + return nil +} + +// Convert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(in *management.DevPodWorkspaceInstancePodStatus, out *DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { + out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { + out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec + return nil +} + +// Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { + out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus + out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) + out.Kubernetes = (*management.DevPodWorkspaceInstanceKubernetesStatus)(unsafe.Pointer(in.Kubernetes)) + 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)) + out.Kubernetes = (*DevPodWorkspaceInstanceKubernetesStatus)(unsafe.Pointer(in.Kubernetes)) + return nil +} + +// Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(&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_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(&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_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, 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_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(&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_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in, out, s) +// Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in, out, s) +// Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +func autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { + out.Options = in.Options return nil } -// Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +func autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { + out.Options = in.Options return nil } -// Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in, out, s) +// Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in *DevPodWorkspaceInstanceState, out *management.DevPodWorkspaceInstanceState, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { + out.TaskID = in.TaskID + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { + out.TaskID = in.TaskID + return nil +} + +// Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { + out.ID = in.ID + out.Type = in.Type + out.Status = in.Status + out.Result = *(*[]byte)(unsafe.Pointer(&in.Result)) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.CreatedAt = in.CreatedAt + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { + out.ID = in.ID + out.Type = in.Type + out.Status = in.Status + out.Result = *(*[]byte)(unsafe.Pointer(&in.Result)) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.CreatedAt = in.CreatedAt + return nil +} + +// Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.State = in.State + out.Tasks = *(*[]management.DevPodWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) return nil } -// Convert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in *DevPodWorkspaceInstanceState, out *management.DevPodWorkspaceInstanceState, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceState_To_management_DevPodWorkspaceInstanceState(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in *management.DevPodWorkspaceInstanceState, out *DevPodWorkspaceInstanceState, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.State = in.State + out.Tasks = *(*[]DevPodWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) return nil } -// Convert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in *management.DevPodWorkspaceInstanceState, out *DevPodWorkspaceInstanceState, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceState_To_v1_DevPodWorkspaceInstanceState(in, out, s) +// Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStateList_To_management_DevPodWorkspaceInstanceStateList(in *DevPodWorkspaceInstanceStateList, out *management.DevPodWorkspaceInstanceStateList, s conversion.Scope) error { +func autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceState)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevPodWorkspaceInstanceTasks)(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) +// Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStateList_To_v1_DevPodWorkspaceInstanceStateList(in *management.DevPodWorkspaceInstanceStateList, out *DevPodWorkspaceInstanceStateList, s conversion.Scope) error { +func autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceState)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevPodWorkspaceInstanceTasks)(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) +// Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) +func autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { + out.TaskID = in.TaskID return nil } -// Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) +func autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { + out.TaskID = in.TaskID 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_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in, out, s) +} + +func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.TaskID, s); err != nil { + return err + } + } else { + out.TaskID = "" + } + return nil +} + +// Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in, out, s) } func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { @@ -6060,6 +6162,102 @@ func Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWork return autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in, out, s) } +func autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { + out.Debug = in.Debug + out.Options = in.Options + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { + out.Debug = in.Debug + out.Options = in.Options + return nil +} + +// Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { + out.TaskID = in.TaskID + return nil +} + +// Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in, out, s) +} + +func autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { + out.TaskID = in.TaskID + return nil +} + +// Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in, out, s) +} + func autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { @@ -6554,6 +6752,30 @@ func Convert_management_GroupResources_To_v1_GroupResources(in *management.Group return autoConvert_management_GroupResources_To_v1_GroupResources(in, out, s) } +func autoConvert_v1_ImageBuilder_To_management_ImageBuilder(in *ImageBuilder, out *management.ImageBuilder, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + out.Replicas = (*int32)(unsafe.Pointer(in.Replicas)) + out.Resources = (*corev1.ResourceRequirements)(unsafe.Pointer(in.Resources)) + return nil +} + +// Convert_v1_ImageBuilder_To_management_ImageBuilder is an autogenerated conversion function. +func Convert_v1_ImageBuilder_To_management_ImageBuilder(in *ImageBuilder, out *management.ImageBuilder, s conversion.Scope) error { + return autoConvert_v1_ImageBuilder_To_management_ImageBuilder(in, out, s) +} + +func autoConvert_management_ImageBuilder_To_v1_ImageBuilder(in *management.ImageBuilder, out *ImageBuilder, s conversion.Scope) error { + out.Enabled = (*bool)(unsafe.Pointer(in.Enabled)) + out.Replicas = (*int32)(unsafe.Pointer(in.Replicas)) + out.Resources = (*corev1.ResourceRequirements)(unsafe.Pointer(in.Resources)) + return nil +} + +// Convert_management_ImageBuilder_To_v1_ImageBuilder is an autogenerated conversion function. +func Convert_management_ImageBuilder_To_v1_ImageBuilder(in *management.ImageBuilder, out *ImageBuilder, s conversion.Scope) error { + return autoConvert_management_ImageBuilder_To_v1_ImageBuilder(in, out, s) +} + func autoConvert_v1_IngressAuthToken_To_management_IngressAuthToken(in *IngressAuthToken, out *management.IngressAuthToken, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_IngressAuthTokenSpec_To_management_IngressAuthTokenSpec(&in.Spec, &out.Spec, s); err != nil { @@ -7605,7 +7827,6 @@ func Convert_management_ProjectChartsList_To_v1_ProjectChartsList(in *management func autoConvert_v1_ProjectClusters_To_management_ProjectClusters(in *ProjectClusters, out *management.ProjectClusters, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.Clusters = *(*[]management.Cluster)(unsafe.Pointer(&in.Clusters)) - out.Runners = *(*[]management.Runner)(unsafe.Pointer(&in.Runners)) return nil } @@ -7617,7 +7838,6 @@ func Convert_v1_ProjectClusters_To_management_ProjectClusters(in *ProjectCluster func autoConvert_management_ProjectClusters_To_v1_ProjectClusters(in *management.ProjectClusters, out *ProjectClusters, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.Clusters = *(*[]Cluster)(unsafe.Pointer(&in.Clusters)) - out.Runners = *(*[]Runner)(unsafe.Pointer(&in.Runners)) return nil } @@ -7948,50 +8168,6 @@ func Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_Project return autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in, out, s) } -func autoConvert_v1_ProjectRunners_To_management_ProjectRunners(in *ProjectRunners, out *management.ProjectRunners, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Runners = *(*[]management.Runner)(unsafe.Pointer(&in.Runners)) - return nil -} - -// Convert_v1_ProjectRunners_To_management_ProjectRunners is an autogenerated conversion function. -func Convert_v1_ProjectRunners_To_management_ProjectRunners(in *ProjectRunners, out *management.ProjectRunners, s conversion.Scope) error { - return autoConvert_v1_ProjectRunners_To_management_ProjectRunners(in, out, s) -} - -func autoConvert_management_ProjectRunners_To_v1_ProjectRunners(in *management.ProjectRunners, out *ProjectRunners, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Runners = *(*[]Runner)(unsafe.Pointer(&in.Runners)) - return nil -} - -// Convert_management_ProjectRunners_To_v1_ProjectRunners is an autogenerated conversion function. -func Convert_management_ProjectRunners_To_v1_ProjectRunners(in *management.ProjectRunners, out *ProjectRunners, s conversion.Scope) error { - return autoConvert_management_ProjectRunners_To_v1_ProjectRunners(in, out, s) -} - -func autoConvert_v1_ProjectRunnersList_To_management_ProjectRunnersList(in *ProjectRunnersList, out *management.ProjectRunnersList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ProjectRunners)(unsafe.Pointer(&in.Items)) - 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) -} - -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)) - 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) -} - func autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(&in.Spec, &out.Spec, s); err != nil { @@ -8488,188 +8664,6 @@ func Convert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in *mana return autoConvert_management_ResetAccessKeyStatus_To_v1_ResetAccessKeyStatus(in, out, s) } -func autoConvert_v1_Runner_To_management_Runner(in *Runner, out *management.Runner, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_RunnerSpec_To_management_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_RunnerStatus_To_management_RunnerStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_Runner_To_management_Runner is an autogenerated conversion function. -func Convert_v1_Runner_To_management_Runner(in *Runner, out *management.Runner, s conversion.Scope) error { - return autoConvert_v1_Runner_To_management_Runner(in, out, s) -} - -func autoConvert_management_Runner_To_v1_Runner(in *management.Runner, out *Runner, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_RunnerSpec_To_v1_RunnerSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_RunnerStatus_To_v1_RunnerStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_Runner_To_v1_Runner is an autogenerated conversion function. -func Convert_management_Runner_To_v1_Runner(in *management.Runner, out *Runner, s conversion.Scope) error { - return autoConvert_management_Runner_To_v1_Runner(in, out, s) -} - -func autoConvert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in *RunnerAccessKey, out *management.RunnerAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - return nil -} - -// Convert_v1_RunnerAccessKey_To_management_RunnerAccessKey is an autogenerated conversion function. -func Convert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in *RunnerAccessKey, out *management.RunnerAccessKey, s conversion.Scope) error { - return autoConvert_v1_RunnerAccessKey_To_management_RunnerAccessKey(in, out, s) -} - -func autoConvert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in *management.RunnerAccessKey, out *RunnerAccessKey, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.AccessKey = in.AccessKey - return nil -} - -// Convert_management_RunnerAccessKey_To_v1_RunnerAccessKey is an autogenerated conversion function. -func Convert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in *management.RunnerAccessKey, out *RunnerAccessKey, s conversion.Scope) error { - return autoConvert_management_RunnerAccessKey_To_v1_RunnerAccessKey(in, out, s) -} - -func autoConvert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in *RunnerAccessKeyList, out *management.RunnerAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerAccessKey)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList is an autogenerated conversion function. -func Convert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in *RunnerAccessKeyList, out *management.RunnerAccessKeyList, s conversion.Scope) error { - return autoConvert_v1_RunnerAccessKeyList_To_management_RunnerAccessKeyList(in, out, s) -} - -func autoConvert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in *management.RunnerAccessKeyList, out *RunnerAccessKeyList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]RunnerAccessKey)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList is an autogenerated conversion function. -func Convert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in *management.RunnerAccessKeyList, out *RunnerAccessKeyList, s conversion.Scope) error { - return autoConvert_management_RunnerAccessKeyList_To_v1_RunnerAccessKeyList(in, out, s) -} - -func autoConvert_v1_RunnerConfig_To_management_RunnerConfig(in *RunnerConfig, out *management.RunnerConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - return nil -} - -// Convert_v1_RunnerConfig_To_management_RunnerConfig is an autogenerated conversion function. -func Convert_v1_RunnerConfig_To_management_RunnerConfig(in *RunnerConfig, out *management.RunnerConfig, s conversion.Scope) error { - return autoConvert_v1_RunnerConfig_To_management_RunnerConfig(in, out, s) -} - -func autoConvert_management_RunnerConfig_To_v1_RunnerConfig(in *management.RunnerConfig, out *RunnerConfig, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - return nil -} - -// Convert_management_RunnerConfig_To_v1_RunnerConfig is an autogenerated conversion function. -func Convert_management_RunnerConfig_To_v1_RunnerConfig(in *management.RunnerConfig, out *RunnerConfig, s conversion.Scope) error { - return autoConvert_management_RunnerConfig_To_v1_RunnerConfig(in, out, s) -} - -func autoConvert_v1_RunnerConfigList_To_management_RunnerConfigList(in *RunnerConfigList, out *management.RunnerConfigList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.RunnerConfig)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_RunnerConfigList_To_management_RunnerConfigList is an autogenerated conversion function. -func Convert_v1_RunnerConfigList_To_management_RunnerConfigList(in *RunnerConfigList, out *management.RunnerConfigList, s conversion.Scope) error { - return autoConvert_v1_RunnerConfigList_To_management_RunnerConfigList(in, out, s) -} - -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)) - 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) -} - -func autoConvert_v1_RunnerList_To_management_RunnerList(in *RunnerList, out *management.RunnerList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.Runner)(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) -} - -func autoConvert_management_RunnerList_To_v1_RunnerList(in *management.RunnerList, out *RunnerList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]Runner)(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) -} - -func autoConvert_v1_RunnerSpec_To_management_RunnerSpec(in *RunnerSpec, out *management.RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec - 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) -} - -func autoConvert_management_RunnerSpec_To_v1_RunnerSpec(in *management.RunnerSpec, out *RunnerSpec, s conversion.Scope) error { - out.RunnerSpec = in.RunnerSpec - 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) -} - -func autoConvert_v1_RunnerStatus_To_management_RunnerStatus(in *RunnerStatus, out *management.RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus - 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) -} - -func autoConvert_management_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - out.RunnerStatus = in.RunnerStatus - return nil -} - -// Convert_management_RunnerStatus_To_v1_RunnerStatus is an autogenerated conversion function. -func Convert_management_RunnerStatus_To_v1_RunnerStatus(in *management.RunnerStatus, out *RunnerStatus, s conversion.Scope) error { - return autoConvert_management_RunnerStatus_To_v1_RunnerStatus(in, out, s) -} - func autoConvert_v1_Self_To_management_Self(in *Self, out *management.Self, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_SelfSpec_To_management_SelfSpec(&in.Spec, &out.Spec, s); err != nil { diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 9c210585..a07b6493 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -15,6 +15,7 @@ import ( corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" + v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -2082,6 +2083,11 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *out = new(CostControl) (*in).DeepCopyInto(*out) } + if in.ImageBuilder != nil { + in, out := &in.ImageBuilder, &out.ImageBuilder + *out = new(ImageBuilder) + (*in).DeepCopyInto(*out) + } return } @@ -2401,62 +2407,6 @@ func (in *CurrentUserAccess) DeepCopy() *CurrentUserAccess { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptions. -func (in *DevPodDeleteOptions) DeepCopy() *DevPodDeleteOptions { - if in == nil { - return nil - } - out := new(DevPodDeleteOptions) - 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) { - *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) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptionsList. -func (in *DevPodDeleteOptionsList) DeepCopy() *DevPodDeleteOptionsList { - if in == nil { - return nil - } - out := new(DevPodDeleteOptionsList) - 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) { *out = *in @@ -2552,24 +2502,27 @@ func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplate } // 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 *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { *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 DevPodSshOptions. -func (in *DevPodSshOptions) DeepCopy() *DevPodSshOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. +func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { if in == nil { return nil } - out := new(DevPodSshOptions) + out := new(DevPodWorkspaceInstance) 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 *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2577,30 +2530,25 @@ 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 *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodSshOptions, len(*in)) - copy(*out, *in) - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceCancel. +func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { if in == nil { return nil } - out := new(DevPodSshOptionsList) + out := new(DevPodWorkspaceInstanceCancel) 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 *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2608,24 +2556,32 @@ 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 *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { *out = *in out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceCancel, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 DevPodWorkspaceInstanceCancelList. +func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { if in == nil { return nil } - out := new(DevPodStatusOptions) + out := new(DevPodWorkspaceInstanceCancelList) 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 { +func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2633,30 +2589,92 @@ func (in *DevPodStatusOptions) DeepCopyObject() runtime.Object { } // 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 *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { + *out = *in + in.Resources.DeepCopyInto(&out.Resources) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. +func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceContainerResource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { + *out = *in + in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. +func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceEvent) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { + *out = *in + if in.PodStatus != nil { + in, out := &in.PodStatus, &out.PodStatus + *out = new(DevPodWorkspaceInstancePodStatus) + (*in).DeepCopyInto(*out) + } + if in.PersistentVolumeClaimStatus != nil { + in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus + *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceKubernetesStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodStatusOptions, len(*in)) - copy(*out, *in) + *out = make([]DevPodWorkspaceInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } 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 DevPodWorkspaceInstanceList. +func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodStatusOptionsList) + out := new(DevPodWorkspaceInstanceList) 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 { +func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2664,24 +2682,25 @@ func (in *DevPodStatusOptionsList) DeepCopyObject() runtime.Object { } // 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 *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { *out = *in out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceLog. +func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { if in == nil { return nil } - out := new(DevPodStopOptions) + out := new(DevPodWorkspaceInstanceLog) 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 *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2689,30 +2708,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 *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { *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([]DevPodWorkspaceInstanceLog, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStopOptionsList. -func (in *DevPodStopOptionsList) DeepCopy() *DevPodStopOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. +func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { if in == nil { return nil } - out := new(DevPodStopOptionsList) + out := new(DevPodWorkspaceInstanceLogList) 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 *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2720,24 +2741,24 @@ 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 *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta 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 DevPodWorkspaceInstanceLogOptions. +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { if in == nil { return nil } - out := new(DevPodUpOptions) + out := new(DevPodWorkspaceInstanceLogOptions) 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 { +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2745,58 +2766,166 @@ func (in *DevPodUpOptions) DeepCopyObject() runtime.Object { } // 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 *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { *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) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } 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 DevPodWorkspaceInstancePersistentVolumeClaimStatus. +func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { if in == nil { return nil } - out := new(DevPodUpOptionsList) + out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PodCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - return nil + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerResources != nil { + in, out := &in.ContainerResources, &out.ContainerResources + *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerMetrics != nil { + in, out := &in.ContainerMetrics, &out.ContainerMetrics + *out = make([]v1beta1.ContainerMetrics, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstancePodStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { + *out = *in + in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. +func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { + *out = *in + in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) + if in.SleepModeConfig != nil { + in, out := &in.SleepModeConfig, &out.SleepModeConfig + *out = new(clusterv1.SleepModeConfig) + (*in).DeepCopyInto(*out) + } + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(DevPodWorkspaceInstanceKubernetesStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. +func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { *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 DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. +func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(DevPodWorkspaceInstanceStop) 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 *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2804,13 +2933,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 *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstance, len(*in)) + *out = make([]DevPodWorkspaceInstanceStop, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2818,18 +2947,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 DevPodWorkspaceInstanceStopList. +func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevPodWorkspaceInstanceStopList) 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 *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2837,42 +2966,91 @@ 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 *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) 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 DevPodWorkspaceInstanceStopSpec. +func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevPodWorkspaceInstanceStopSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceStopStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceState) DeepCopyInto(out *DevPodWorkspaceInstanceState) { +func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { + *out = *in + if in.Result != nil { + in, out := &in.Result, &out.Result + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Logs != nil { + in, out := &in.Logs, &out.Logs + *out = make([]byte, len(*in)) + copy(*out, *in) + } + in.CreatedAt.DeepCopyInto(&out.CreatedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. +func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTask) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanceTasks) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Tasks != nil { + in, out := &in.Tasks, &out.Tasks + *out = make([]DevPodWorkspaceInstanceTask, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceState. -func (in *DevPodWorkspaceInstanceState) DeepCopy() *DevPodWorkspaceInstanceState { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasks. +func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceState) + out := new(DevPodWorkspaceInstanceTasks) 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 *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2880,13 +3058,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 *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceState, len(*in)) + *out = make([]DevPodWorkspaceInstanceTasks, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2894,18 +3072,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 DevPodWorkspaceInstanceTasksList. +func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStateList) + out := new(DevPodWorkspaceInstanceTasksList) 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 *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2913,27 +3091,30 @@ 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 *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) - } + out.TypeMeta = in.TypeMeta 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 DevPodWorkspaceInstanceTasksOptions. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStatus) + out := new(DevPodWorkspaceInstanceTasksOptions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { *out = *in @@ -3022,6 +3203,99 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Obje return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUp. +func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUp) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceUp, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. +func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. +func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUpStatus) DeepCopyInto(out *DevPodWorkspaceInstanceUpStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. +func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { *out = *in @@ -3540,6 +3814,37 @@ func (in *GroupResources) DeepCopy() *GroupResources { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder. +func (in *ImageBuilder) DeepCopy() *ImageBuilder { + if in == nil { + return nil + } + out := new(ImageBuilder) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { *out = *in @@ -4597,13 +4902,6 @@ func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } @@ -5005,72 +5303,6 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { - if in == nil { - return nil - } - out := new(ProjectRunners) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunners) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { - *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]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunnersList. -func (in *ProjectRunnersList) DeepCopy() *ProjectRunnersList { - if in == nil { - return nil - } - out := new(ProjectRunnersList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunnersList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in @@ -5623,224 +5855,6 @@ func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { 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 *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 { - if in == nil { - return nil - } - out := new(RunnerAccessKey) - 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerAccessKeyList) DeepCopyInto(out *RunnerAccessKeyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RunnerAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerAccessKeyList. -func (in *RunnerAccessKeyList) DeepCopy() *RunnerAccessKeyList { - if in == nil { - return nil - } - out := new(RunnerAccessKeyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerAccessKeyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerConfig) DeepCopyInto(out *RunnerConfig) { - *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 { - 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 - } - 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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfigList. -func (in *RunnerConfigList) DeepCopy() *RunnerConfigList { - if in == nil { - return nil - } - out := new(RunnerConfigList) - 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) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { - if in == nil { - return nil - } - out := new(RunnerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *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) { - *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { - if in == nil { - return nil - } - out := new(RunnerStatus) - 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 diff --git a/pkg/apis/management/v1/zz_generated.defaults.go b/pkg/apis/management/v1/zz_generated.defaults.go index f56b6b60..fd9afaf0 100644 --- a/pkg/apis/management/v1/zz_generated.defaults.go +++ b/pkg/apis/management/v1/zz_generated.defaults.go @@ -14,22 +14,508 @@ import ( // Public to allow building arbitrary schemes. // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + }) scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) }) scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) }) - scheme.AddTypeDefaultingFunc(&ProjectClusters{}, func(obj interface{}) { SetObjectDefaults_ProjectClusters(obj.(*ProjectClusters)) }) - scheme.AddTypeDefaultingFunc(&ProjectClustersList{}, func(obj interface{}) { SetObjectDefaults_ProjectClustersList(obj.(*ProjectClustersList)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunners{}, func(obj interface{}) { SetObjectDefaults_ProjectRunners(obj.(*ProjectRunners)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunnersList{}, func(obj interface{}) { SetObjectDefaults_ProjectRunnersList(obj.(*ProjectRunnersList)) }) - scheme.AddTypeDefaultingFunc(&Runner{}, func(obj interface{}) { SetObjectDefaults_Runner(obj.(*Runner)) }) - scheme.AddTypeDefaultingFunc(&RunnerList{}, func(obj interface{}) { SetObjectDefaults_RunnerList(obj.(*RunnerList)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) + }) + scheme.AddTypeDefaultingFunc(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) + scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } +func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { + if in.Spec.DevPodWorkspaceInstanceSpec.Template != nil { + if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes != nil { + if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + if in.Status.DevPodWorkspaceInstanceStatus.Instance != nil { + if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes != nil { + if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceInstance(a) + } +} + func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { + if in.Workspace != nil { + SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) + } + if in.Template != nil { + if in.Template.Spec.Template.Kubernetes != nil { + if in.Template.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + for i := range in.Template.Spec.Versions { + a := &in.Template.Spec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + } for i := range in.Pods { a := &in.Pods[i] for j := range a.Spec.Volumes { @@ -186,39 +672,11 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspa } } -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] +func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { + if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes != nil { + if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -262,8 +720,8 @@ func SetObjectDefaults_Runner(in *Runner) { } } } - for i := range in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers[i] + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { @@ -295,13 +753,178 @@ func SetObjectDefaults_Runner(in *Runner) { } } } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } } } } -func SetObjectDefaults_RunnerList(in *RunnerList) { +func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } +} + +func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { + for i := range in.DevPodWorkspaceTemplates { + a := &in.DevPodWorkspaceTemplates[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } +} + +func SetObjectDefaults_ProjectTemplatesList(in *ProjectTemplatesList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_Runner(a) + SetObjectDefaults_ProjectTemplates(a) } } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index cee865db..d21f87f2 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -23,6 +23,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apiserver/pkg/registry/generic" "k8s.io/apiserver/pkg/registry/rest" + metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) type NewRESTFunc func(factory managerfactory.SharedManagerFactory) rest.Storage @@ -320,21 +321,7 @@ var ( return NewResetAccessKeyRESTFunc(Factory) } NewResetAccessKeyRESTFunc NewRESTFunc - ManagementRunnerStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalRunner, - func() runtime.Object { return &Runner{} }, // Register versioned resource - func() runtime.Object { return &RunnerList{} }, // Register versioned resource list - NewRunnerREST, - ) - NewRunnerREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerRESTFunc(Factory) - } - NewRunnerRESTFunc NewRESTFunc - NewRunnerStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerStatusRESTFunc(Factory) - } - NewRunnerStatusRESTFunc NewRESTFunc - ManagementSelfStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + ManagementSelfStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalSelf, func() runtime.Object { return &Self{} }, // Register versioned resource func() runtime.Object { return &SelfList{} }, // Register versioned resource list @@ -676,46 +663,38 @@ var ( func() runtime.Object { return &DevPodWorkspaceInstance{} }, func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, ) - InternalDevPodDeleteOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodDeleteOptions", "delete", - func() runtime.Object { return &DevPodDeleteOptions{} }, + InternalDevPodWorkspaceInstanceCancelREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceCancel", "cancel", + func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, ) - NewDevPodDeleteOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodDeleteOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceCancelREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceCancelRESTFunc(Factory) } - NewDevPodDeleteOptionsRESTFunc NewRESTFunc - InternalDevPodStatusOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodStatusOptions", "getstatus", - func() runtime.Object { return &DevPodStatusOptions{} }, + NewDevPodWorkspaceInstanceCancelRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceLogREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceLog", "log", + func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, ) - NewDevPodStatusOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodStatusOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceLogRESTFunc(Factory) } - NewDevPodStatusOptionsRESTFunc NewRESTFunc - InternalDevPodSshOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodSshOptions", "ssh", - func() runtime.Object { return &DevPodSshOptions{} }, + NewDevPodWorkspaceInstanceLogRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceStopREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceStop", "stop", + func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, ) - NewDevPodSshOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodSshOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceStopREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceStopRESTFunc(Factory) } - NewDevPodSshOptionsRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceStateREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceState", "state", - func() runtime.Object { return &DevPodWorkspaceInstanceState{} }, + NewDevPodWorkspaceInstanceStopRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceTasksREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceTasks", "tasks", + func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, ) - NewDevPodWorkspaceInstanceStateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceStateRESTFunc(Factory) + NewDevPodWorkspaceInstanceTasksREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceTasksRESTFunc(Factory) } - NewDevPodWorkspaceInstanceStateRESTFunc NewRESTFunc - InternalDevPodStopOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodStopOptions", "stop", - func() runtime.Object { return &DevPodStopOptions{} }, - ) - NewDevPodStopOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodStopOptionsRESTFunc(Factory) - } - NewDevPodStopOptionsRESTFunc NewRESTFunc + NewDevPodWorkspaceInstanceTasksRESTFunc NewRESTFunc InternalDevPodWorkspaceInstanceTroubleshootREST = builders.NewInternalSubresource( "devpodworkspaceinstances", "DevPodWorkspaceInstanceTroubleshoot", "troubleshoot", func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, @@ -724,15 +703,15 @@ var ( return NewDevPodWorkspaceInstanceTroubleshootRESTFunc(Factory) } NewDevPodWorkspaceInstanceTroubleshootRESTFunc NewRESTFunc - InternalDevPodUpOptionsREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodUpOptions", "up", - func() runtime.Object { return &DevPodUpOptions{} }, + InternalDevPodWorkspaceInstanceUpREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceUp", "up", + func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, ) - NewDevPodUpOptionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodUpOptionsRESTFunc(Factory) + NewDevPodWorkspaceInstanceUpREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceUpRESTFunc(Factory) } - NewDevPodUpOptionsRESTFunc NewRESTFunc - InternalDevPodWorkspacePreset = builders.NewInternalResource( + NewDevPodWorkspaceInstanceUpRESTFunc NewRESTFunc + InternalDevPodWorkspacePreset = builders.NewInternalResource( "devpodworkspacepresets", "DevPodWorkspacePreset", func() runtime.Object { return &DevPodWorkspacePreset{} }, @@ -952,15 +931,7 @@ var ( return NewProjectMigrateVirtualClusterInstanceRESTFunc(Factory) } NewProjectMigrateVirtualClusterInstanceRESTFunc NewRESTFunc - InternalProjectRunnersREST = builders.NewInternalSubresource( - "projects", "ProjectRunners", "runners", - func() runtime.Object { return &ProjectRunners{} }, - ) - NewProjectRunnersREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewProjectRunnersRESTFunc(Factory) - } - NewProjectRunnersRESTFunc NewRESTFunc - InternalProjectTemplatesREST = builders.NewInternalSubresource( + InternalProjectTemplatesREST = builders.NewInternalSubresource( "projects", "ProjectTemplates", "templates", func() runtime.Object { return &ProjectTemplates{} }, ) @@ -1016,35 +987,7 @@ var ( func() runtime.Object { return &ResetAccessKey{} }, func() runtime.Object { return &ResetAccessKeyList{} }, ) - InternalRunner = builders.NewInternalResource( - "runners", - "Runner", - func() runtime.Object { return &Runner{} }, - func() runtime.Object { return &RunnerList{} }, - ) - InternalRunnerStatus = builders.NewInternalResourceStatus( - "runners", - "RunnerStatus", - func() runtime.Object { return &Runner{} }, - func() runtime.Object { return &RunnerList{} }, - ) - InternalRunnerAccessKeyREST = builders.NewInternalSubresource( - "runners", "RunnerAccessKey", "accesskey", - func() runtime.Object { return &RunnerAccessKey{} }, - ) - NewRunnerAccessKeyREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerAccessKeyRESTFunc(Factory) - } - NewRunnerAccessKeyRESTFunc NewRESTFunc - InternalRunnerConfigREST = builders.NewInternalSubresource( - "runners", "RunnerConfig", "config", - func() runtime.Object { return &RunnerConfig{} }, - ) - NewRunnerConfigREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewRunnerConfigRESTFunc(Factory) - } - NewRunnerConfigRESTFunc NewRESTFunc - InternalSelf = builders.NewInternalResource( + InternalSelf = builders.NewInternalResource( "selves", "Self", func() runtime.Object { return &Self{} }, @@ -1330,13 +1273,12 @@ var ( InternalDevPodEnvironmentTemplateStatus, InternalDevPodWorkspaceInstance, InternalDevPodWorkspaceInstanceStatus, - InternalDevPodDeleteOptionsREST, - InternalDevPodStatusOptionsREST, - InternalDevPodSshOptionsREST, - InternalDevPodWorkspaceInstanceStateREST, - InternalDevPodStopOptionsREST, + InternalDevPodWorkspaceInstanceCancelREST, + InternalDevPodWorkspaceInstanceLogREST, + InternalDevPodWorkspaceInstanceStopREST, + InternalDevPodWorkspaceInstanceTasksREST, InternalDevPodWorkspaceInstanceTroubleshootREST, - InternalDevPodUpOptionsREST, + InternalDevPodWorkspaceInstanceUpREST, InternalDevPodWorkspacePreset, InternalDevPodWorkspacePresetStatus, InternalDevPodWorkspaceTemplate, @@ -1371,7 +1313,6 @@ var ( InternalProjectMembersREST, InternalProjectMigrateSpaceInstanceREST, InternalProjectMigrateVirtualClusterInstanceREST, - InternalProjectRunnersREST, InternalProjectTemplatesREST, InternalProjectSecret, InternalProjectSecretStatus, @@ -1381,10 +1322,6 @@ var ( InternalRegisterVirtualClusterStatus, InternalResetAccessKey, InternalResetAccessKeyStatus, - InternalRunner, - InternalRunnerStatus, - InternalRunnerAccessKeyREST, - InternalRunnerConfigREST, InternalSelf, InternalSelfStatus, InternalSelfSubjectAccessReview, @@ -1449,6 +1386,8 @@ func Resource(resource string) schema.GroupResource { type AccessKeyType string type Level string +type PersistentVolumeClaimPhase string +type PodPhase string type RequestTarget string type Stage string @@ -1903,6 +1842,7 @@ type ConfigStatus struct { DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` Cloud *Cloud `json:"cloud,omitempty"` CostControl *CostControl `json:"costControl,omitempty"` + ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` } type Connector struct { @@ -1974,13 +1914,6 @@ type CurrentUserAccess struct { Verbs []string `json:"verbs,omitempty"` } -// +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 @@ -1999,63 +1932,111 @@ type DevPodEnvironmentTemplateSpec struct { type DevPodEnvironmentTemplateStatus struct { } +// +genclient +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstance struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStatusOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstanceCancel struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + TaskID string `json:"taskId,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodStopOptions struct { - metav1.TypeMeta `json:",inline"` - Options string `json:"options,omitempty"` +type DevPodWorkspaceInstanceContainerResource struct { + Name string `json:"name,omitempty"` + Resources corev1.ResourceRequirements `json:"resources,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspaceInstanceEvent struct { + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` + LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` + Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` +} -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 DevPodWorkspaceInstanceKubernetesStatus struct { + PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` + PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` } -// +genclient -// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstance struct { +type DevPodWorkspaceInstanceLog struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { + Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` + Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` + Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` + Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` +} + +type DevPodWorkspaceInstancePodStatus struct { + Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` + Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` + ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` + NodeName string `json:"nodeName,omitempty"` + Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` + ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` + ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` } type DevPodWorkspaceInstanceSpec struct { storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` } +type DevPodWorkspaceInstanceStatus struct { + storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` + SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` + Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` +} + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceState struct { +type DevPodWorkspaceInstanceStop struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - State string `json:"state,omitempty"` + Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` } -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` +type DevPodWorkspaceInstanceStopSpec struct { + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceStopStatus struct { + TaskID string `json:"taskId,omitempty"` +} + +type DevPodWorkspaceInstanceTask struct { + ID string `json:"id,omitempty"` + Type string `json:"type,omitempty"` + Status string `json:"status,omitempty"` + Result []byte `json:"result,omitempty"` + Logs []byte `json:"logs,omitempty"` + CreatedAt metav1.Time `json:"createdAt,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceTasks struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2071,6 +2052,24 @@ type DevPodWorkspaceInstanceTroubleshoot struct { Errors []string `json:"errors,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceUp struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` + Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` +} + +type DevPodWorkspaceInstanceUpSpec struct { + Debug bool `json:"debug,omitempty"` + Options string `json:"options,omitempty"` +} + +type DevPodWorkspaceInstanceUpStatus struct { + TaskID string `json:"taskId,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2172,6 +2171,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 @@ -2401,7 +2406,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 @@ -2457,14 +2461,6 @@ type ProjectMigrateVirtualClusterInstanceSource struct { Namespace string `json:"namespace,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type ProjectRunners struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Runners []Runner `json:"runners,omitempty"` -} - // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2575,41 +2571,6 @@ type ResetAccessKeyStatus struct { storagev1.AccessKeyStatus `json:",inline"` } -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type Runner struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec RunnerSpec `json:"spec,omitempty"` - Status RunnerStatus `json:"status,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerAccessKey struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - AccessKey string `json:"accessKey,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfig struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - TokenCaCert []byte `json:"tokenCaCert,omitempty"` -} - -type RunnerSpec struct { - storagev1.RunnerSpec `json:",inline"` -} - -type RunnerStatus struct { - storagev1.RunnerStatus `json:",inline"` -} - // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -4337,42 +4298,34 @@ type DevPodWorkspaceInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodDeleteOptionsList struct { +type DevPodWorkspaceInstanceCancelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodDeleteOptions `json:"items"` + Items []DevPodWorkspaceInstanceCancel `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodStatusOptionsList struct { +type DevPodWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodStatusOptions `json:"items"` + Items []DevPodWorkspaceInstanceLog `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodSshOptionsList struct { +type DevPodWorkspaceInstanceStopList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodSshOptions `json:"items"` + Items []DevPodWorkspaceInstanceStop `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStateList struct { +type DevPodWorkspaceInstanceTasksList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceState `json:"items"` -} - -// +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"` + Items []DevPodWorkspaceInstanceTasks `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -4385,10 +4338,10 @@ type DevPodWorkspaceInstanceTroubleshootList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodUpOptionsList struct { +type DevPodWorkspaceInstanceUpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodUpOptions `json:"items"` + Items []DevPodWorkspaceInstanceUp `json:"items"` } func (DevPodWorkspaceInstance) NewStatus() interface{} { @@ -6004,14 +5957,6 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type ProjectRunnersList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectRunners `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type ProjectTemplatesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -6593,141 +6538,6 @@ func (s *storageResetAccessKey) DeleteResetAccessKey(ctx context.Context, id str return sync, err } -// Runner Functions and Structs -// -// +k8s:deepcopy-gen=false -type RunnerStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type RunnerStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Runner `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerAccessKeyList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerAccessKey `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type RunnerConfigList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RunnerConfig `json:"items"` -} - -func (Runner) NewStatus() interface{} { - return RunnerStatus{} -} - -func (pc *Runner) GetStatus() interface{} { - return pc.Status -} - -func (pc *Runner) SetStatus(s interface{}) { - pc.Status = s.(RunnerStatus) -} - -func (pc *Runner) GetSpec() interface{} { - return pc.Spec -} - -func (pc *Runner) SetSpec(s interface{}) { - pc.Spec = s.(RunnerSpec) -} - -func (pc *Runner) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *Runner) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc Runner) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store Runner. -// +k8s:deepcopy-gen=false -type RunnerRegistry interface { - ListRunners(ctx context.Context, options *internalversion.ListOptions) (*RunnerList, error) - GetRunner(ctx context.Context, id string, options *metav1.GetOptions) (*Runner, error) - CreateRunner(ctx context.Context, id *Runner) (*Runner, error) - UpdateRunner(ctx context.Context, id *Runner) (*Runner, error) - DeleteRunner(ctx context.Context, id string) (bool, error) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewRunnerRegistry(sp builders.StandardStorageProvider) RunnerRegistry { - return &storageRunner{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageRunner struct { - builders.StandardStorageProvider -} - -func (s *storageRunner) ListRunners(ctx context.Context, options *internalversion.ListOptions) (*RunnerList, error) { - if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { - return nil, fmt.Errorf("field selector not supported yet") - } - st := s.GetStandardStorage() - obj, err := st.List(ctx, options) - if err != nil { - return nil, err - } - return obj.(*RunnerList), err -} - -func (s *storageRunner) GetRunner(ctx context.Context, id string, options *metav1.GetOptions) (*Runner, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*Runner), nil -} - -func (s *storageRunner) CreateRunner(ctx context.Context, object *Runner) (*Runner, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*Runner), nil -} - -func (s *storageRunner) UpdateRunner(ctx context.Context, object *Runner) (*Runner, error) { - st := s.GetStandardStorage() - obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) - if err != nil { - return nil, err - } - return obj.(*Runner), nil -} - -func (s *storageRunner) DeleteRunner(ctx context.Context, id string) (bool, error) { - st := s.GetStandardStorage() - _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) - return sync, err -} - // Self Functions and Structs // // +k8s:deepcopy-gen=false diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 05cbbc07..790f44e4 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -15,6 +15,7 @@ import ( corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" + v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -2057,6 +2058,11 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *out = new(CostControl) (*in).DeepCopyInto(*out) } + if in.ImageBuilder != nil { + in, out := &in.ImageBuilder, &out.ImageBuilder + *out = new(ImageBuilder) + (*in).DeepCopyInto(*out) + } return } @@ -2376,62 +2382,6 @@ func (in *CurrentUserAccess) DeepCopy() *CurrentUserAccess { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodDeleteOptions) DeepCopyInto(out *DevPodDeleteOptions) { - *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptions. -func (in *DevPodDeleteOptions) DeepCopy() *DevPodDeleteOptions { - if in == nil { - return nil - } - out := new(DevPodDeleteOptions) - 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) { - *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) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodDeleteOptionsList. -func (in *DevPodDeleteOptionsList) DeepCopy() *DevPodDeleteOptionsList { - if in == nil { - return nil - } - out := new(DevPodDeleteOptionsList) - 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) { *out = *in @@ -2527,24 +2477,27 @@ func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplate } // 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 *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { *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 DevPodSshOptions. -func (in *DevPodSshOptions) DeepCopy() *DevPodSshOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. +func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { if in == nil { return nil } - out := new(DevPodSshOptions) + out := new(DevPodWorkspaceInstance) 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 *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2552,30 +2505,25 @@ 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 *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodSshOptions, len(*in)) - copy(*out, *in) - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceCancel. +func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { if in == nil { return nil } - out := new(DevPodSshOptionsList) + out := new(DevPodWorkspaceInstanceCancel) 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 *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2583,24 +2531,32 @@ 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 *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { *out = *in out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceCancel, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } 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 DevPodWorkspaceInstanceCancelList. +func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { if in == nil { return nil } - out := new(DevPodStatusOptions) + out := new(DevPodWorkspaceInstanceCancelList) 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 { +func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2608,30 +2564,92 @@ func (in *DevPodStatusOptions) DeepCopyObject() runtime.Object { } // 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 *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { + *out = *in + in.Resources.DeepCopyInto(&out.Resources) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. +func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceContainerResource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { + *out = *in + in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. +func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceEvent) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { + *out = *in + if in.PodStatus != nil { + in, out := &in.PodStatus, &out.PodStatus + *out = new(DevPodWorkspaceInstancePodStatus) + (*in).DeepCopyInto(*out) + } + if in.PersistentVolumeClaimStatus != nil { + in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus + *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceKubernetesStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodStatusOptions, len(*in)) - copy(*out, *in) + *out = make([]DevPodWorkspaceInstance, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } 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 DevPodWorkspaceInstanceList. +func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodStatusOptionsList) + out := new(DevPodWorkspaceInstanceList) 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 { +func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2639,24 +2657,25 @@ func (in *DevPodStatusOptionsList) DeepCopyObject() runtime.Object { } // 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 *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { *out = *in out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 DevPodWorkspaceInstanceLog. +func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { if in == nil { return nil } - out := new(DevPodStopOptions) + out := new(DevPodWorkspaceInstanceLog) 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 *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2664,30 +2683,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 *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { *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([]DevPodWorkspaceInstanceLog, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodStopOptionsList. -func (in *DevPodStopOptionsList) DeepCopy() *DevPodStopOptionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. +func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { if in == nil { return nil } - out := new(DevPodStopOptionsList) + out := new(DevPodWorkspaceInstanceLogList) 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 *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2695,24 +2716,24 @@ 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 *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta 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 DevPodWorkspaceInstanceLogOptions. +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { if in == nil { return nil } - out := new(DevPodUpOptions) + out := new(DevPodWorkspaceInstanceLogOptions) 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 { +func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2720,58 +2741,166 @@ func (in *DevPodUpOptions) DeepCopyObject() runtime.Object { } // 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 *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { *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) + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } 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 DevPodWorkspaceInstancePersistentVolumeClaimStatus. +func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { if in == nil { return nil } - out := new(DevPodUpOptionsList) + out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) 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 +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PodCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - return nil + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerResources != nil { + in, out := &in.ContainerResources, &out.ContainerResources + *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerMetrics != nil { + in, out := &in.ContainerMetrics, &out.ContainerMetrics + *out = make([]v1beta1.ContainerMetrics, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstancePodStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { + *out = *in + in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. +func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { + *out = *in + in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) + if in.SleepModeConfig != nil { + in, out := &in.SleepModeConfig, &out.SleepModeConfig + *out = new(clusterv1.SleepModeConfig) + (*in).DeepCopyInto(*out) + } + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(DevPodWorkspaceInstanceKubernetesStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. +func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { *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 DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. +func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(DevPodWorkspaceInstanceStop) 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 *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2779,13 +2908,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 *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstance, len(*in)) + *out = make([]DevPodWorkspaceInstanceStop, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2793,18 +2922,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 DevPodWorkspaceInstanceStopList. +func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevPodWorkspaceInstanceStopList) 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 *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2812,42 +2941,91 @@ 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 *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) 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 DevPodWorkspaceInstanceStopSpec. +func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevPodWorkspaceInstanceStopSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. +func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceStopStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceState) DeepCopyInto(out *DevPodWorkspaceInstanceState) { +func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { + *out = *in + if in.Result != nil { + in, out := &in.Result, &out.Result + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Logs != nil { + in, out := &in.Logs, &out.Logs + *out = make([]byte, len(*in)) + copy(*out, *in) + } + in.CreatedAt.DeepCopyInto(&out.CreatedAt) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. +func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceTask) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanceTasks) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Tasks != nil { + in, out := &in.Tasks, &out.Tasks + *out = make([]DevPodWorkspaceInstanceTask, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceState. -func (in *DevPodWorkspaceInstanceState) DeepCopy() *DevPodWorkspaceInstanceState { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasks. +func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceState) + out := new(DevPodWorkspaceInstanceTasks) 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 *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2855,13 +3033,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 *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceState, len(*in)) + *out = make([]DevPodWorkspaceInstanceTasks, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2869,18 +3047,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 DevPodWorkspaceInstanceTasksList. +func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStateList) + out := new(DevPodWorkspaceInstanceTasksList) 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 *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2888,27 +3066,30 @@ 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 *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) - } + out.TypeMeta = in.TypeMeta 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 DevPodWorkspaceInstanceTasksOptions. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStatus) + out := new(DevPodWorkspaceInstanceTasksOptions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { *out = *in @@ -2997,6 +3178,99 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Obje return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUp. +func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUp) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceUp, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. +func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. +func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceUpStatus) DeepCopyInto(out *DevPodWorkspaceInstanceUpStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. +func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceUpStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { *out = *in @@ -3498,6 +3772,37 @@ func (in *GroupResources) DeepCopy() *GroupResources { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } + if in.Replicas != nil { + in, out := &in.Replicas, &out.Replicas + *out = new(int32) + **out = **in + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder. +func (in *ImageBuilder) DeepCopy() *ImageBuilder { + if in == nil { + return nil + } + out := new(ImageBuilder) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { *out = *in @@ -4555,13 +4860,6 @@ func (in *ProjectClusters) DeepCopyInto(out *ProjectClusters) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } @@ -4963,72 +5261,6 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunners) DeepCopyInto(out *ProjectRunners) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Runners != nil { - in, out := &in.Runners, &out.Runners - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunners. -func (in *ProjectRunners) DeepCopy() *ProjectRunners { - if in == nil { - return nil - } - out := new(ProjectRunners) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunners) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRunnersList) DeepCopyInto(out *ProjectRunnersList) { - *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]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRunnersList. -func (in *ProjectRunnersList) DeepCopy() *ProjectRunnersList { - if in == nil { - return nil - } - out := new(ProjectRunnersList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectRunnersList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in @@ -5565,224 +5797,6 @@ func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { 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 *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 { - if in == nil { - return nil - } - out := new(RunnerAccessKey) - 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerAccessKeyList) DeepCopyInto(out *RunnerAccessKeyList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RunnerAccessKey, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerAccessKeyList. -func (in *RunnerAccessKeyList) DeepCopy() *RunnerAccessKeyList { - if in == nil { - return nil - } - out := new(RunnerAccessKeyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerAccessKeyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerConfig) DeepCopyInto(out *RunnerConfig) { - *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 { - 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 - } - 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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerConfigList. -func (in *RunnerConfigList) DeepCopy() *RunnerConfigList { - if in == nil { - return nil - } - out := new(RunnerConfigList) - 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) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { - if in == nil { - return nil - } - out := new(RunnerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *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) { - *out = *in - in.RunnerStatus.DeepCopyInto(&out.RunnerStatus) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { - if in == nil { - return nil - } - out := new(RunnerStatus) - 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 diff --git a/pkg/apis/management/zz_generated.defaults.go b/pkg/apis/management/zz_generated.defaults.go index 228a30c3..632f5e31 100644 --- a/pkg/apis/management/zz_generated.defaults.go +++ b/pkg/apis/management/zz_generated.defaults.go @@ -14,22 +14,508 @@ import ( // Public to allow building arbitrary schemes. // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + }) scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) }) scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) }) - scheme.AddTypeDefaultingFunc(&ProjectClusters{}, func(obj interface{}) { SetObjectDefaults_ProjectClusters(obj.(*ProjectClusters)) }) - scheme.AddTypeDefaultingFunc(&ProjectClustersList{}, func(obj interface{}) { SetObjectDefaults_ProjectClustersList(obj.(*ProjectClustersList)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunners{}, func(obj interface{}) { SetObjectDefaults_ProjectRunners(obj.(*ProjectRunners)) }) - scheme.AddTypeDefaultingFunc(&ProjectRunnersList{}, func(obj interface{}) { SetObjectDefaults_ProjectRunnersList(obj.(*ProjectRunnersList)) }) - scheme.AddTypeDefaultingFunc(&Runner{}, func(obj interface{}) { SetObjectDefaults_Runner(obj.(*Runner)) }) - scheme.AddTypeDefaultingFunc(&RunnerList{}, func(obj interface{}) { SetObjectDefaults_RunnerList(obj.(*RunnerList)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) + }) + scheme.AddTypeDefaultingFunc(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) + scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } +func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { + if in.Spec.DevPodWorkspaceInstanceSpec.Template != nil { + if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes != nil { + if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + if in.Status.DevPodWorkspaceInstanceStatus.Instance != nil { + if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes != nil { + if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceInstance(a) + } +} + func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { + if in.Workspace != nil { + SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) + } + if in.Template != nil { + if in.Template.Spec.Template.Kubernetes != nil { + if in.Template.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + for i := range in.Template.Spec.Versions { + a := &in.Template.Spec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + } for i := range in.Pods { a := &in.Pods[i] for j := range a.Spec.Volumes { @@ -186,39 +672,11 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspa } } -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] +func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { + if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes != nil { + if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -262,8 +720,8 @@ func SetObjectDefaults_Runner(in *Runner) { } } } - for i := range in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.RunnerSpec.ClusterRef.PodTemplate.Spec.InitContainers[i] + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { @@ -295,13 +753,178 @@ func SetObjectDefaults_Runner(in *Runner) { } } } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { + a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } } } } -func SetObjectDefaults_RunnerList(in *RunnerList) { +func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } +} + +func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { + for i := range in.DevPodWorkspaceTemplates { + a := &in.DevPodWorkspaceTemplates[i] + SetObjectDefaults_DevPodWorkspaceTemplate(a) + } +} + +func SetObjectDefaults_ProjectTemplatesList(in *ProjectTemplatesList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_Runner(a) + SetObjectDefaults_ProjectTemplates(a) } } diff --git a/pkg/apis/storage/v1/accesskey_types.go b/pkg/apis/storage/v1/accesskey_types.go index 9c8d9fac..3edd54ae 100644 --- a/pkg/apis/storage/v1/accesskey_types.go +++ b/pkg/apis/storage/v1/accesskey_types.go @@ -210,6 +210,7 @@ const ( AccessKeyScopeRoleNetworkPeer AccessKeyScopeRoleName = "network-peer" AccessKeyScopeRoleLoftCLI AccessKeyScopeRoleName = "loft-cli" AccessKeyScopeRoleRunner AccessKeyScopeRoleName = "runner" + AccessKeyScopeRoleWorkspace AccessKeyScopeRoleName = "workspace" ) type AccessKeyScopeCluster struct { @@ -428,6 +429,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 4cf1d2a2..37ebf40d 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -26,6 +26,11 @@ const ( 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 diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go index c6e86c3f..2dbec131 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go @@ -27,15 +27,15 @@ var ( // DevPodWorkspaceSourceAnnotation holds the workspace source of the devpod workspace DevPodWorkspaceSourceAnnotation = "loft.sh/workspace-source" - // DevPodWorkspaceRunnerNetworkPeerAnnotation holds the workspace runner network peer name of the devpod workspace - DevPodWorkspaceRunnerEndpointAnnotation = "loft.sh/runner-endpoint" + // DevPodClientsAnnotation holds the active clients for a workspace networpeer + DevPodClientsAnnotation = "loft.sh/devpod-clients" ) var ( + DevPodPlatformOptions = "DEVPOD_PLATFORM_OPTIONS" + DevPodFlagsUp = "DEVPOD_FLAGS_UP" DevPodFlagsDelete = "DEVPOD_FLAGS_DELETE" - DevPodFlagsStatus = "DEVPOD_FLAGS_STATUS" - DevPodFlagsSsh = "DEVPOD_FLAGS_SSH" DevPodFlagsStop = "DEVPOD_FLAGS_STOP" ) @@ -107,8 +107,12 @@ type DevPodWorkspaceInstanceSpec struct { // +optional Template *DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` - // RunnerRef is the reference to the connected runner holding - // this workspace + // Target is the reference to the cluster holding this workspace + // +optional + Target WorkspaceTarget `json:"target,omitempty"` + + // Deprecated: Use TargetRef instead + // RunnerRef is the reference to the runner holding this workspace // +optional RunnerRef RunnerRef `json:"runnerRef,omitempty"` @@ -138,6 +142,48 @@ type PresetRef struct { Version string `json:"version,omitempty"` } +type WorkspaceTarget struct { + // Cluster is the reference to the cluster holding this workspace + // +optional + Cluster *WorkspaceTargetName `json:"cluster,omitempty"` + + // Cluster is the reference to the virtual cluster holding this workspace + // +optional + VirtualCluster *WorkspaceTargetName `json:"virtualCluster,omitempty"` +} + +type WorkspaceResolvedTarget struct { + // Cluster is the reference to the cluster holding this workspace + // +optional + Cluster *WorkspaceTargetNamespace `json:"cluster,omitempty"` + + // Cluster is the reference to the virtual cluster holding this workspace + // +optional + VirtualCluster *WorkspaceTargetNamespace `json:"virtualCluster,omitempty"` + + // Space is the reference to the space holding this workspace + // +optional + Space *WorkspaceTargetName `json:"space,omitempty"` +} + +func (w WorkspaceResolvedTarget) Empty() bool { + return w == WorkspaceResolvedTarget{} +} + +type WorkspaceTargetName struct { + // Name is the name of the target + Name string `json:"name"` +} + +type WorkspaceTargetNamespace struct { + // Name is the name of the object + Name string `json:"name"` + + // Namespace is the namespace within the cluster. + // +optional + Namespace string `json:"namespace,omitempty"` +} + type RunnerRef struct { // Runner is the connected runner the workspace will be created in // +optional @@ -154,6 +200,10 @@ type EnvironmentRef struct { } type DevPodWorkspaceInstanceStatus struct { + // ResolvedTarget is the resolved target of the workspace + // +optional + ResolvedTarget WorkspaceResolvedTarget `json:"resolvedTarget,omitempty"` + // LastWorkspaceStatus is the last workspace status reported by the runner. // +optional LastWorkspaceStatus WorkspaceStatus `json:"lastWorkspaceStatus,omitempty"` @@ -183,10 +233,6 @@ type DevPodWorkspaceInstanceStatus struct { // 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 { diff --git a/pkg/apis/storage/v1/devpodworkspacepreset_types.go b/pkg/apis/storage/v1/devpodworkspacepreset_types.go index 4fff5fa1..5aea86d5 100644 --- a/pkg/apis/storage/v1/devpodworkspacepreset_types.go +++ b/pkg/apis/storage/v1/devpodworkspacepreset_types.go @@ -93,10 +93,6 @@ type DevPodWorkspacePresetVersion struct { // EnvironmentRef stores reference to DevPodEnvironmentTemplate // +optional EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` - - // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment - // +optional - UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` } // DevPodWorkspacePresetStatus holds the status diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go index 5d5bdb7b..7ddbddeb 100644 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go @@ -80,8 +80,51 @@ type DevPodWorkspaceTemplateSpec struct { } type DevPodWorkspaceTemplateDefinition struct { - // Provider holds the DevPod provider configuration - Provider DevPodWorkspaceProvider `json:"provider"` + // Kubernetes holds the definition for kubernetes based workspaces + Kubernetes *DevPodWorkspaceKubernetesSpec `json:"kubernetes,omitempty"` + + // WorkspaceEnv are environment variables that should be available within the created workspace. + // +optional + WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` + + // InstanceTemplate holds the workspace instance template + // +optional + InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` + + // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace + // +optional + CredentialForwarding *CredentialForwarding `json:"credentialForwarding,omitempty"` + + // Provider holds the legacy VM provider configuration + // + // Deprecated: use fields on template instead + // +optional + Provider *DevPodWorkspaceProvider `json:"provider,omitempty"` +} + +type DevPodWorkspaceKubernetesSpec struct { + // Pod holds the definition for workspace pod. + // + // Defaults will be applied for fields that aren't specified. + // +optional + Pod *DevPodWorkspacePodTemplate `json:"pod,omitempty"` + + // VolumeClaim holds the definition for the main workspace persistent volume. + // This volume is guaranteed to exist for the lifespan of the workspace. + // + // Defaults will be applied for fields that aren't specified. + // +optional + VolumeClaim *DevPodWorkspaceVolumeClaimTemplate `json:"volumeClaim,omitempty"` + + // PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. + // Default: 10m + // +optional + PodTimeout string `json:"podTimeout,omitempty"` + + // NodeArchitecture specifies the node architecture the workspace image will be built for. + // Only necessary if you need to build workspace images on the fly in the kubernetes cluster and your cluster is mixed architecture. + // +optional + NodeArchitecure string `json:"nodeArchitecture,omitempty"` // SpaceTemplateRef is a reference to the space that should get created for this DevPod. // If this is specified, the kubernetes provider will be selected automatically. @@ -102,76 +145,207 @@ type DevPodWorkspaceTemplateDefinition struct { // If this is specified, the kubernetes provider will be selected automatically. // +optional VirtualClusterTemplate *VirtualClusterTemplateDefinition `json:"virtualClusterTemplate,omitempty"` +} - // WorkspaceEnv are environment variables that should be available within the created workspace. +// DevPodWorkspacePodTemplate is a less restrictive PodTemplate +type DevPodWorkspacePodTemplate struct { + // The pods metadata + // +kubebuilder:pruning:PreserveUnknownFields // +optional - WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` + TemplateMetadata `json:"metadata,omitempty"` - // InitEnv are environment variables that should be available during the initialization phase of the created workspace. + Spec DevPodWorkspacePodTemplateSpec `json:"spec,omitempty"` +} + +// DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec +type DevPodWorkspacePodTemplateSpec struct { + // List of volumes that can be mounted by containers belonging to the pod. // +optional - InitEnv map[string]DevPodProviderOption `json:"initEnv,omitempty"` + Volumes []corev1.Volume `json:"volumes,omitempty"` - // InstanceTemplate holds the workspace instance template + // List of initialization containers belonging to the pod. // +optional - InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` + InitContainers []corev1.Container `json:"initContainers,omitempty"` - // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this workspace + // List of containers belonging to the pod. // +optional - UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` + Containers []corev1.Container `json:"containers,omitempty"` - // UseProjectSSHCredentials specifies if the project ssh credentials should be used instead of local ones for this workspace + // Restart policy for all containers within the pod. // +optional - UseProjectSSHCredentials bool `json:"useProjectSSHCredentials,omitempty"` + RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty"` - // GitCloneStrategy specifies how git based workspace are being cloned. Can be "" (full, default), treeless, blobless or shallow + // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. // +optional - GitCloneStrategy GitCloneStrategy `json:"gitCloneStrategy,omitempty"` + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` - // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace + // Optional duration in seconds the pod may be active on the node relative to // +optional - CredentialForwarding *CredentialForwarding `json:"credentialForwarding,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` - // PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection. + // Set DNS policy for the pod. // +optional - PreventWakeUpOnConnection bool `json:"preventWakeUpOnConnection,omitempty"` -} + DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty"` -// +enum -type GitCloneStrategy string + // NodeSelector is a selector which must be true for the pod to fit on a node. + // +optional + NodeSelector map[string]string `json:"nodeSelector,omitempty"` -// WARN: Need to match https://github.com/loft-sh/devpod/pkg/git/clone.go -const ( - FullCloneStrategy GitCloneStrategy = "" - BloblessCloneStrategy GitCloneStrategy = "blobless" - TreelessCloneStrategy GitCloneStrategy = "treeless" - ShallowCloneStrategy GitCloneStrategy = "shallow" -) + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // +optional + ServiceAccountName string `json:"serviceAccountName,omitempty"` -type CredentialForwarding struct { - // Docker specifies controls for how workspaces created by this template forward docker credentials + // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. // +optional - Docker *DockerCredentialForwarding `json:"docker,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` - // Git specifies controls for how workspaces created by this template forward git credentials + // NodeName indicates in which node this pod is scheduled. // +optional - Git *GitCredentialForwarding `json:"git,omitempty"` -} + NodeName string `json:"nodeName,omitempty"` -type DockerCredentialForwarding struct { - // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace + // Host networking requested for this pod. Use the host's network namespace. // +optional - Disabled bool `json:"disabled,omitempty"` + HostNetwork bool `json:"hostNetwork,omitempty"` + + // Use the host's pid namespace. + // +optional + HostPID bool `json:"hostPID,omitempty"` + + // Use the host's ipc namespace. + // +optional + HostIPC bool `json:"hostIPC,omitempty"` + + // Share a single process namespace between all of the containers in a pod. + // +optional + ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` + + // SecurityContext holds pod-level security attributes and common container settings. + // +optional + SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` + + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // +optional + ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` + + // Specifies the hostname of the Pod + // +optional + Hostname string `json:"hostname,omitempty"` + + // If specified, the fully qualified Pod hostname will be "...svc.". + // +optional + Subdomain string `json:"subdomain,omitempty"` + + // If specified, the pod's scheduling constraints + // +optional + Affinity *corev1.Affinity `json:"affinity,omitempty"` + + // If specified, the pod will be dispatched by specified scheduler. + // If not specified, the pod will be dispatched by default scheduler. + // +optional + SchedulerName string `json:"schedulerName,omitempty"` + + // If specified, the pod's tolerations. + // +optional + Tolerations []corev1.Toleration `json:"tolerations,omitempty"` + + // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts + // +optional + HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` + + // If specified, indicates the pod's priority. + // +optional + PriorityClassName string `json:"priorityClassName,omitempty"` + + // +optional + Priority *int32 `json:"priority,omitempty"` + + // Specifies the DNS parameters of a pod. + // +optional + DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"` + + // If specified, all readiness gates will be evaluated for pod readiness. + // +optional + ReadinessGates []corev1.PodReadinessGate `json:"readinessGates,omitempty"` + + // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod + // +optional + RuntimeClassName *string `json:"runtimeClassName,omitempty"` + + // EnableServiceLinks indicates whether information about services should be injected into pod's + // environment variables, matching the syntax of Docker links. + // +optional + EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` + + // PreemptionPolicy is the Policy for preempting pods with lower priority. + // +optional + PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"` + + // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. + // +optional + Overhead corev1.ResourceList `json:"overhead,omitempty"` + + // TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. + // +optional + TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` + + // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). + // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). + // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. + // +optional + SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"` + + // Specifies the OS of the containers in the pod. + // +optional + OS *corev1.PodOS `json:"os,omitempty"` + + // Use the host's user namespace. + // +optional + HostUsers *bool `json:"hostUsers,omitempty"` + + // SchedulingGates is an opaque list of values that if specified will block scheduling the pod. + // If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the + // scheduler will not attempt to schedule the pod. + // +optional + SchedulingGates []corev1.PodSchedulingGate `json:"schedulingGates,omitempty"` + + // ResourceClaims defines which ResourceClaims must be allocated + // and reserved before the Pod is allowed to start. The resources + // will be made available to those containers which consume them + // by name. + // +optional + ResourceClaims []corev1.PodResourceClaim `json:"resourceClaims,omitempty"` + + // Resources is the total amount of CPU and Memory resources required by all + // containers in the pod. It supports specifying Requests and Limits for + // "cpu" and "memory" resource names only. ResourceClaims are not supported. + // +optional + Resources *corev1.ResourceRequirements `json:"resources,omitempty"` } -type GitCredentialForwarding struct { - // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace +type DevPodWorkspaceVolumeClaimTemplate struct { + // The pods metadata + // +kubebuilder:pruning:PreserveUnknownFields // +optional - Disabled bool `json:"disabled,omitempty"` + TemplateMetadata `json:"metadata,omitempty"` + + Spec corev1.PersistentVolumeClaimSpec `json:"spec,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 DevPodWorkspaceProvider struct { // Name is the name of the provider. This can also be an url. - Name string `json:"name"` + // +optional + Name string `json:"name,omitempty"` // Options are the provider option values // +optional @@ -183,7 +357,7 @@ type DevPodWorkspaceProvider struct { } type DevPodWorkspaceInstanceTemplateDefinition struct { - // The virtual cluster instance metadata + // The workspace instance metadata // +kubebuilder:pruning:PreserveUnknownFields // +optional TemplateMetadata `json:"metadata,omitempty"` @@ -234,6 +408,28 @@ type DevPodWorkspaceTemplateVersion struct { Version string `json:"version,omitempty"` } +type CredentialForwarding struct { + // Docker specifies controls for how workspaces created by this template forward docker credentials + // +optional + Docker *DockerCredentialForwarding `json:"docker,omitempty"` + + // Git specifies controls for how workspaces created by this template forward git credentials + // +optional + Git *GitCredentialForwarding `json:"git,omitempty"` +} + +type DockerCredentialForwarding struct { + // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace + // +optional + Disabled bool `json:"disabled,omitempty"` +} + +type GitCredentialForwarding struct { + // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace + // +optional + Disabled bool `json:"disabled,omitempty"` +} + // DevPodWorkspaceTemplateStatus holds the status type DevPodWorkspaceTemplateStatus struct { } diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index 1cca19b9..e46e333a 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -161,6 +161,10 @@ type NamespacePattern struct { // VirtualCluster holds the namespace pattern to use for virtual cluster instances // +optional VirtualCluster string `json:"virtualCluster,omitempty"` + + // DevPodWorkspace holds the namespace pattern to use for DevPod workspaces + // +optional + DevPodWorkspace string `json:"devPodWorkspace,omitempty"` } type Quotas struct { @@ -516,34 +520,35 @@ type DevPodProjectSpec struct { // +optional Git *GitProjectSpec `json:"git,omitempty"` - // SSH defines additional ssh related settings like private keys, to be - // specified as base64 encoded strings. - // +optional - SSH *SSHProjectSpec `json:"ssh,omitempty"` - // FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected // +optional FallbackImage string `json:"fallbackImage,omitempty"` + + // RegistryPattern specifies a template pattern to use for building images on the fly. + // Requires the platform pods to be authenticated against the registry. + // +optional + RegistryPattern string `json:"registryPattern,omitempty"` } type GitProjectSpec struct { - // Token defines the token to use for authentication. + // HTTP defines additional http related settings like credentials, to be + // specified as base64 encoded strings. // +optional - Token string `json:"token,omitempty"` + HTTP *GitProjectCredentials `json:"http,omitempty"` - // TokenSecretRef defines the project secret to use for token authentication. - // Will be used if `Token` is not provided. + // SSH defines additional ssh related settings like private keys, to be + // specified as base64 encoded strings. // +optional - TokenProjectSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"` + SSH *GitProjectCredentials `json:"ssh,omitempty"` } -type SSHProjectSpec struct { - // Token defines the private ssh key to use for authentication, +type GitProjectCredentials struct { + // Token defines the credentials to use for authentication, // this is a base64 encoded string. // +optional Token string `json:"token,omitempty"` - // TokenSecretRef defines the project secret to use as private ssh key for authentication. + // TokenSecretRef defines the project secret to use as credentials for authentication. // Will be used if `Token` is not provided. // +optional TokenProjectSecretRef *corev1.SecretKeySelector `json:"tokenSecretRef,omitempty"` diff --git a/pkg/apis/storage/v1/runner_types.go b/pkg/apis/storage/v1/runner_types.go deleted file mode 100644 index ec9ae497..00000000 --- a/pkg/apis/storage/v1/runner_types.go +++ /dev/null @@ -1,258 +0,0 @@ -package v1 - -import ( - agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -var RunnerConditions = []agentstoragev1.ConditionType{ - RunnerDeployed, -} - -const ( - RunnerDeployed agentstoragev1.ConditionType = "Deployed" - - // BuiltinRunnerName is the name for the control plane runner - BuiltinRunnerName = "local" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// Runner holds the runner information -// +k8s:openapi-gen=true -type Runner struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec RunnerSpec `json:"spec,omitempty"` - Status RunnerStatus `json:"status,omitempty"` -} - -func (a *Runner) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *Runner) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *Runner) GetOwner() *UserOrTeam { - return a.Spec.Owner -} - -func (a *Runner) SetOwner(userOrTeam *UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *Runner) GetAccess() []Access { - return a.Spec.Access -} - -func (a *Runner) SetAccess(access []Access) { - a.Spec.Access = access -} - -type RunnerSpec struct { - // The display name shown in the UI - // +optional - DisplayName string `json:"displayName,omitempty"` - - // Description describes a cluster access object - // +optional - Description string `json:"description,omitempty"` - - // NetworkPeerName is the network peer name used to connect directly to the runner - // +optional - NetworkPeerName string `json:"networkPeerName,omitempty"` - - // Endpoint is the hostname used to connect directly to the runner - // +optional - Endpoint string `json:"endpoint,omitempty"` - - // If ClusterRef is defined, Loft will schedule the runner on the given - // cluster. - // +optional - ClusterRef *RunnerClusterRef `json:"clusterRef,omitempty"` - - // Owner holds the owner of this object - // +optional - Owner *UserOrTeam `json:"owner,omitempty"` - - // If unusable is true, no DevPod workspaces can be scheduled on this runner. - // +optional - Unusable bool `json:"unusable,omitempty"` - - // Access holds the access rights for users and teams - // +optional - Access []Access `json:"access,omitempty"` -} - -type RunnerClusterRef struct { - // Cluster is the connected cluster the space will be created in - // +optional - Cluster string `json:"cluster,omitempty"` - - // Namespace is the namespace inside the connected cluster holding the space - // +optional - Namespace string `json:"namespace,omitempty"` - - // PersistentVolumeClaimTemplate holds additional options for the persistent volume claim - // +optional - PersistentVolumeClaimTemplate *RunnerPersistentVolumeClaimTemplate `json:"persistentVolumeClaimTemplate,omitempty"` - - // PodTemplate holds additional options for the runner pod - // +optional - PodTemplate *RunnerPodTemplate `json:"podTemplate,omitempty"` - - // ServiceTemplate holds additional options for the service - // +optional - ServiceTemplate *RunnerServiceTemplate `json:"serviceTemplate,omitempty"` -} - -type RunnerPodTemplate struct { - // Metadata holds the template metadata - // +optional - Metadata TemplateMetadata `json:"metadata,omitempty"` - - // Spec holds the template spec - // +optional - Spec RunnerPodTemplateSpec `json:"spec,omitempty"` -} - -type RunnerPodTemplateSpec struct { - // Runner pod image to use other than default - // +optional - Image string `json:"image,omitempty"` - - // Resources requirements - // +optional - Resources corev1.ResourceRequirements `json:"resource,omitempty"` - - // List of sources to populate environment variables in the container. - // The keys defined within a source must be a C_IDENTIFIER. All invalid keys - // will be reported as an event when the container is starting. When a key exists in multiple - // sources, the value associated with the last source will take precedence. - // Values defined by an Env with a duplicate key will take precedence. - // Cannot be updated. - // +optional - EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` - - // List of environment variables to set in the container. - // Cannot be updated. - // +optional - Env []corev1.EnvVar `json:"env,omitempty"` - - // Set the NodeSelector for the Runner Pod - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty"` - - // Set the Affinity for the Runner Pod - // +optional - Affinity *corev1.Affinity `json:"affinity,omitempty"` - - // Set the Tolerations for the Runner Pod - // +optional - Tolerations []corev1.Toleration `json:"tolerations,omitempty"` - - // Set Volume Mounts for the Runner Pod - // +optional - VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` - - // Set Volumes for the Runner Pod - // +optional - Volumes []corev1.Volume `json:"volumes,omitempty"` - - // Set up Init Containers for the Runner - // +optional - InitContainers []corev1.Container `json:"initContainers,omitempty"` - - // Set host aliases for the Runner Pod - // +optional - HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` -} - -type RunnerPersistentVolumeClaimTemplate struct { - // Metadata holds the template metadata - // +optional - Metadata TemplateMetadata `json:"metadata,omitempty"` - - // Spec holds the template spec - // +optional - Spec RunnerPersistentVolumeClaimTemplateSpec `json:"spec,omitempty"` -} - -type RunnerPersistentVolumeClaimTemplateSpec struct { - // accessModes contains the desired access modes the volume should have. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - // +optional - AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` - - // storageClassName is the name of the StorageClass required by the claim. - // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - // +optional - StorageClassName *string `json:"storageClassName,omitempty"` - - // storageSize is the size of the storage to reserve for the pvc - // +optional - StorageSize string `json:"storageSize,omitempty"` -} - -type RunnerServiceTemplate struct { - // Metadata holds the template metadata - // +optional - Metadata TemplateMetadata `json:"metadata,omitempty"` - - // Spec holds the template spec - // +optional - Spec RunnerServiceTemplateSpec `json:"spec,omitempty"` -} - -type RunnerServiceTemplateSpec struct { - // type determines how the Service is exposed. Defaults to ClusterIP - // +optional - Type corev1.ServiceType `json:"type,omitempty"` -} - -type RunnerStatus struct { - // Phase describes the current phase the space instance is in - // +optional - Phase RunnerStatusPhase `json:"phase,omitempty"` - - // Reason describes the reason in machine-readable form - // +optional - Reason string `json:"reason,omitempty"` - - // Message describes the reason in human-readable form - // +optional - Message string `json:"message,omitempty"` - - // Conditions holds several conditions the virtual cluster might be in - // +optional - Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` -} - -// RunnerStatusPhase describes the phase of a cluster -type RunnerStatusPhase string - -// These are the valid admin account types -const ( - RunnerStatusPhaseInitializing RunnerStatusPhase = "" - RunnerStatusPhaseInitialized RunnerStatusPhase = "Initialized" - RunnerStatusPhaseFailed RunnerStatusPhase = "Failed" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// RunnerList contains a list of Runner -type RunnerList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Runner `json:"items"` -} - -func init() { - SchemeBuilder.Register(&Runner{}, &RunnerList{}) -} diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index f6c13ca6..f5f9715d 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -1621,11 +1621,6 @@ func (in *DevPodProjectSpec) DeepCopyInto(out *DevPodProjectSpec) { *out = new(GitProjectSpec) (*in).DeepCopyInto(*out) } - if in.SSH != nil { - in, out := &in.SSH, &out.SSH - *out = new(SSHProjectSpec) - (*in).DeepCopyInto(*out) - } return } @@ -1791,6 +1786,7 @@ func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstance *out = new(DevPodWorkspaceTemplateDefinition) (*in).DeepCopyInto(*out) } + in.Target.DeepCopyInto(&out.Target) out.RunnerRef = in.RunnerRef if in.Access != nil { in, out := &in.Access, &out.Access @@ -1815,6 +1811,7 @@ func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { *out = *in + in.ResolvedTarget.DeepCopyInto(&out.ResolvedTarget) if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions *out = make(storagev1.Conditions, len(*in)) @@ -1827,11 +1824,6 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan *out = new(DevPodWorkspaceTemplateDefinition) (*in).DeepCopyInto(*out) } - if in.ClusterRef != nil { - in, out := &in.ClusterRef, &out.ClusterRef - *out = new(ClusterRef) - **out = **in - } return } @@ -1862,6 +1854,239 @@ func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopy() *DevPodWorkspace return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceKubernetesSpec) DeepCopyInto(out *DevPodWorkspaceKubernetesSpec) { + *out = *in + if in.Pod != nil { + in, out := &in.Pod, &out.Pod + *out = new(DevPodWorkspacePodTemplate) + (*in).DeepCopyInto(*out) + } + if in.VolumeClaim != nil { + in, out := &in.VolumeClaim, &out.VolumeClaim + *out = new(DevPodWorkspaceVolumeClaimTemplate) + (*in).DeepCopyInto(*out) + } + if in.SpaceTemplateRef != nil { + in, out := &in.SpaceTemplateRef, &out.SpaceTemplateRef + *out = new(TemplateRef) + **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) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceKubernetesSpec. +func (in *DevPodWorkspaceKubernetesSpec) DeepCopy() *DevPodWorkspaceKubernetesSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceKubernetesSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePodTemplate) DeepCopyInto(out *DevPodWorkspacePodTemplate) { + *out = *in + in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePodTemplate. +func (in *DevPodWorkspacePodTemplate) DeepCopy() *DevPodWorkspacePodTemplate { + if in == nil { + return nil + } + out := new(DevPodWorkspacePodTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTemplateSpec) { + *out = *in + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]corev1.Volume, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.InitContainers != nil { + in, out := &in.InitContainers, &out.InitContainers + *out = make([]corev1.Container, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]corev1.Container, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.TerminationGracePeriodSeconds != nil { + in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds + *out = new(int64) + **out = **in + } + if in.ActiveDeadlineSeconds != nil { + in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds + *out = new(int64) + **out = **in + } + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.AutomountServiceAccountToken != nil { + in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken + *out = new(bool) + **out = **in + } + if in.ShareProcessNamespace != nil { + in, out := &in.ShareProcessNamespace, &out.ShareProcessNamespace + *out = new(bool) + **out = **in + } + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(corev1.PodSecurityContext) + (*in).DeepCopyInto(*out) + } + if in.ImagePullSecrets != nil { + in, out := &in.ImagePullSecrets, &out.ImagePullSecrets + *out = make([]corev1.LocalObjectReference, len(*in)) + copy(*out, *in) + } + if in.Affinity != nil { + in, out := &in.Affinity, &out.Affinity + *out = new(corev1.Affinity) + (*in).DeepCopyInto(*out) + } + if in.Tolerations != nil { + in, out := &in.Tolerations, &out.Tolerations + *out = make([]corev1.Toleration, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.HostAliases != nil { + in, out := &in.HostAliases, &out.HostAliases + *out = make([]corev1.HostAlias, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Priority != nil { + in, out := &in.Priority, &out.Priority + *out = new(int32) + **out = **in + } + if in.DNSConfig != nil { + in, out := &in.DNSConfig, &out.DNSConfig + *out = new(corev1.PodDNSConfig) + (*in).DeepCopyInto(*out) + } + if in.ReadinessGates != nil { + in, out := &in.ReadinessGates, &out.ReadinessGates + *out = make([]corev1.PodReadinessGate, len(*in)) + copy(*out, *in) + } + if in.RuntimeClassName != nil { + in, out := &in.RuntimeClassName, &out.RuntimeClassName + *out = new(string) + **out = **in + } + if in.EnableServiceLinks != nil { + in, out := &in.EnableServiceLinks, &out.EnableServiceLinks + *out = new(bool) + **out = **in + } + if in.PreemptionPolicy != nil { + in, out := &in.PreemptionPolicy, &out.PreemptionPolicy + *out = new(corev1.PreemptionPolicy) + **out = **in + } + if in.Overhead != nil { + in, out := &in.Overhead, &out.Overhead + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.TopologySpreadConstraints != nil { + in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints + *out = make([]corev1.TopologySpreadConstraint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.SetHostnameAsFQDN != nil { + in, out := &in.SetHostnameAsFQDN, &out.SetHostnameAsFQDN + *out = new(bool) + **out = **in + } + if in.OS != nil { + in, out := &in.OS, &out.OS + *out = new(corev1.PodOS) + **out = **in + } + if in.HostUsers != nil { + in, out := &in.HostUsers, &out.HostUsers + *out = new(bool) + **out = **in + } + if in.SchedulingGates != nil { + in, out := &in.SchedulingGates, &out.SchedulingGates + *out = make([]corev1.PodSchedulingGate, len(*in)) + copy(*out, *in) + } + if in.ResourceClaims != nil { + in, out := &in.ResourceClaims, &out.ResourceClaims + *out = make([]corev1.PodResourceClaim, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = new(corev1.ResourceRequirements) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePodTemplateSpec. +func (in *DevPodWorkspacePodTemplateSpec) DeepCopy() *DevPodWorkspacePodTemplateSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspacePodTemplateSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { *out = *in @@ -2097,25 +2322,9 @@ func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTemplateDefinition) { *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) + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(DevPodWorkspaceKubernetesSpec) (*in).DeepCopyInto(*out) } if in.WorkspaceEnv != nil { @@ -2125,19 +2334,17 @@ func (in *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTe (*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) (*in).DeepCopyInto(*out) } + if in.Provider != nil { + in, out := &in.Provider, &out.Provider + *out = new(DevPodWorkspaceProvider) + (*in).DeepCopyInto(*out) + } return } @@ -2267,6 +2474,24 @@ func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVer return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopyInto(out *DevPodWorkspaceVolumeClaimTemplate) { + *out = *in + in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimTemplate. +func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopy() *DevPodWorkspaceVolumeClaimTemplate { + if in == nil { + return nil + } + out := new(DevPodWorkspaceVolumeClaimTemplate) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DockerCredentialForwarding) DeepCopyInto(out *DockerCredentialForwarding) { *out = *in @@ -2348,7 +2573,7 @@ func (in *GitEnvironmentTemplate) DeepCopy() *GitEnvironmentTemplate { } // 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 *GitProjectCredentials) DeepCopyInto(out *GitProjectCredentials) { *out = *in if in.TokenProjectSecretRef != nil { in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef @@ -2358,6 +2583,32 @@ func (in *GitProjectSpec) DeepCopyInto(out *GitProjectSpec) { return } +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectCredentials. +func (in *GitProjectCredentials) DeepCopy() *GitProjectCredentials { + if in == nil { + return nil + } + out := new(GitProjectCredentials) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GitProjectSpec) DeepCopyInto(out *GitProjectSpec) { + *out = *in + if in.HTTP != nil { + in, out := &in.HTTP, &out.HTTP + *out = new(GitProjectCredentials) + (*in).DeepCopyInto(*out) + } + if in.SSH != nil { + in, out := &in.SSH, &out.SSH + *out = new(GitProjectCredentials) + (*in).DeepCopyInto(*out) + } + return +} + // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectSpec. func (in *GitProjectSpec) DeepCopy() *GitProjectSpec { if in == nil { @@ -3148,577 +3399,234 @@ func (in *QuotaStatusProject) DeepCopyInto(out *QuotaStatusProject) { *out = make(map[string]QuotaStatusProjectCluster, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusProject. -func (in *QuotaStatusProject) DeepCopy() *QuotaStatusProject { - if in == nil { - return nil - } - out := new(QuotaStatusProject) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *QuotaStatusProjectCluster) DeepCopyInto(out *QuotaStatusProjectCluster) { - *out = *in - if in.Used != nil { - in, out := &in.Used, &out.Used - *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 QuotaStatusProjectCluster. -func (in *QuotaStatusProjectCluster) DeepCopy() *QuotaStatusProjectCluster { - if in == nil { - return nil - } - out := new(QuotaStatusProjectCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *QuotaStatusUser) DeepCopyInto(out *QuotaStatusUser) { - *out = *in - if in.Limit != nil { - in, out := &in.Limit, &out.Limit - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - in.Used.DeepCopyInto(&out.Used) - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make(map[string]QuotaStatusUserUsed, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUser. -func (in *QuotaStatusUser) DeepCopy() *QuotaStatusUser { - if in == nil { - return nil - } - out := new(QuotaStatusUser) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *QuotaStatusUserUsed) DeepCopyInto(out *QuotaStatusUserUsed) { - *out = *in - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make(map[string]map[string]string, len(*in)) - for key, val := range *in { - var outVal map[string]string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - (*out)[key] = outVal - } - } - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make(map[string]map[string]string, len(*in)) - for key, val := range *in { - var outVal map[string]string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUserUsed. -func (in *QuotaStatusUserUsed) DeepCopy() *QuotaStatusUserUsed { - if in == nil { - return nil - } - out := new(QuotaStatusUserUsed) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Quotas) DeepCopyInto(out *Quotas) { - *out = *in - if in.Project != nil { - in, out := &in.Project, &out.Project - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.User != nil { - in, out := &in.User, &out.User - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Quotas. -func (in *Quotas) DeepCopy() *Quotas { - if in == nil { - return nil - } - out := new(Quotas) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RancherIntegrationSpec) DeepCopyInto(out *RancherIntegrationSpec) { - *out = *in - out.ProjectRef = in.ProjectRef - in.ImportVirtualClusters.DeepCopyInto(&out.ImportVirtualClusters) - in.SyncMembers.DeepCopyInto(&out.SyncMembers) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherIntegrationSpec. -func (in *RancherIntegrationSpec) DeepCopy() *RancherIntegrationSpec { - if in == nil { - return nil - } - out := new(RancherIntegrationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RancherProjectRef) DeepCopyInto(out *RancherProjectRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherProjectRef. -func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { - if in == nil { - return nil - } - out := new(RancherProjectRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequirePreset) DeepCopyInto(out *RequirePreset) { - *out = *in - return -} - -// 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(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 *RequireTemplate) DeepCopyInto(out *RequireTemplate) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequireTemplate. -func (in *RequireTemplate) DeepCopy() *RequireTemplate { - if in == nil { - return nil - } - out := new(RequireTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Runner) DeepCopyInto(out *Runner) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runner. -func (in *Runner) DeepCopy() *Runner { - if in == nil { - return nil - } - out := new(Runner) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Runner) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerClusterRef) DeepCopyInto(out *RunnerClusterRef) { - *out = *in - if in.PersistentVolumeClaimTemplate != nil { - in, out := &in.PersistentVolumeClaimTemplate, &out.PersistentVolumeClaimTemplate - *out = new(RunnerPersistentVolumeClaimTemplate) - (*in).DeepCopyInto(*out) - } - if in.PodTemplate != nil { - in, out := &in.PodTemplate, &out.PodTemplate - *out = new(RunnerPodTemplate) - (*in).DeepCopyInto(*out) - } - if in.ServiceTemplate != nil { - in, out := &in.ServiceTemplate, &out.ServiceTemplate - *out = new(RunnerServiceTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerClusterRef. -func (in *RunnerClusterRef) DeepCopy() *RunnerClusterRef { - if in == nil { - return nil - } - out := new(RunnerClusterRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerList) DeepCopyInto(out *RunnerList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Runner, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerList. -func (in *RunnerList) DeepCopy() *RunnerList { - if in == nil { - return nil - } - out := new(RunnerList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RunnerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerPersistentVolumeClaimTemplate) DeepCopyInto(out *RunnerPersistentVolumeClaimTemplate) { - *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPersistentVolumeClaimTemplate. -func (in *RunnerPersistentVolumeClaimTemplate) DeepCopy() *RunnerPersistentVolumeClaimTemplate { - if in == nil { - return nil - } - out := new(RunnerPersistentVolumeClaimTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerPersistentVolumeClaimTemplateSpec) DeepCopyInto(out *RunnerPersistentVolumeClaimTemplateSpec) { - *out = *in - if in.AccessModes != nil { - in, out := &in.AccessModes, &out.AccessModes - *out = make([]corev1.PersistentVolumeAccessMode, len(*in)) - copy(*out, *in) - } - if in.StorageClassName != nil { - in, out := &in.StorageClassName, &out.StorageClassName - *out = new(string) - **out = **in + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPersistentVolumeClaimTemplateSpec. -func (in *RunnerPersistentVolumeClaimTemplateSpec) DeepCopy() *RunnerPersistentVolumeClaimTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusProject. +func (in *QuotaStatusProject) DeepCopy() *QuotaStatusProject { if in == nil { return nil } - out := new(RunnerPersistentVolumeClaimTemplateSpec) + out := new(QuotaStatusProject) 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 *QuotaStatusProjectCluster) DeepCopyInto(out *QuotaStatusProjectCluster) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - in.Spec.DeepCopyInto(&out.Spec) + if in.Used != nil { + in, out := &in.Used, &out.Used + *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 RunnerPodTemplate. -func (in *RunnerPodTemplate) DeepCopy() *RunnerPodTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusProjectCluster. +func (in *QuotaStatusProjectCluster) DeepCopy() *QuotaStatusProjectCluster { if in == nil { return nil } - out := new(RunnerPodTemplate) + out := new(QuotaStatusProjectCluster) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerPodTemplateSpec) DeepCopyInto(out *RunnerPodTemplateSpec) { +func (in *QuotaStatusUser) DeepCopyInto(out *QuotaStatusUser) { *out = *in - in.Resources.DeepCopyInto(&out.Resources) - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]corev1.EnvFromSource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]corev1.EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector + if in.Limit != nil { + in, out := &in.Limit, &out.Limit *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]) + in.Used.DeepCopyInto(&out.Used) + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make(map[string]QuotaStatusUserUsed, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() } } - 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]) - } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUser. +func (in *QuotaStatusUser) DeepCopy() *QuotaStatusUser { + if in == nil { + return nil } - 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]) + out := new(QuotaStatusUser) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QuotaStatusUserUsed) DeepCopyInto(out *QuotaStatusUserUsed) { + *out = *in + if in.Users != nil { + in, out := &in.Users, &out.Users + *out = make(map[string]map[string]string, len(*in)) + for key, val := range *in { + var outVal map[string]string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + (*out)[key] = outVal } } - if in.HostAliases != nil { - in, out := &in.HostAliases, &out.HostAliases - *out = make([]corev1.HostAlias, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if in.Teams != nil { + in, out := &in.Teams, &out.Teams + *out = make(map[string]map[string]string, len(*in)) + for key, val := range *in { + var outVal map[string]string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + (*out)[key] = outVal } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerPodTemplateSpec. -func (in *RunnerPodTemplateSpec) DeepCopy() *RunnerPodTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaStatusUserUsed. +func (in *QuotaStatusUserUsed) DeepCopy() *QuotaStatusUserUsed { if in == nil { return nil } - out := new(RunnerPodTemplateSpec) + out := new(QuotaStatusUserUsed) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerRef) DeepCopyInto(out *RunnerRef) { +func (in *Quotas) DeepCopyInto(out *Quotas) { *out = *in + if in.Project != nil { + in, out := &in.Project, &out.Project + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.User != nil { + in, out := &in.User, &out.User + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerRef. -func (in *RunnerRef) DeepCopy() *RunnerRef { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Quotas. +func (in *Quotas) DeepCopy() *Quotas { if in == nil { return nil } - out := new(RunnerRef) + out := new(Quotas) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerServiceTemplate) DeepCopyInto(out *RunnerServiceTemplate) { +func (in *RancherIntegrationSpec) DeepCopyInto(out *RancherIntegrationSpec) { *out = *in - in.Metadata.DeepCopyInto(&out.Metadata) - out.Spec = in.Spec + out.ProjectRef = in.ProjectRef + in.ImportVirtualClusters.DeepCopyInto(&out.ImportVirtualClusters) + in.SyncMembers.DeepCopyInto(&out.SyncMembers) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerServiceTemplate. -func (in *RunnerServiceTemplate) DeepCopy() *RunnerServiceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherIntegrationSpec. +func (in *RancherIntegrationSpec) DeepCopy() *RancherIntegrationSpec { if in == nil { return nil } - out := new(RunnerServiceTemplate) + out := new(RancherIntegrationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerServiceTemplateSpec) DeepCopyInto(out *RunnerServiceTemplateSpec) { +func (in *RancherProjectRef) DeepCopyInto(out *RancherProjectRef) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerServiceTemplateSpec. -func (in *RunnerServiceTemplateSpec) DeepCopy() *RunnerServiceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherProjectRef. +func (in *RancherProjectRef) DeepCopy() *RancherProjectRef { if in == nil { return nil } - out := new(RunnerServiceTemplateSpec) + out := new(RancherProjectRef) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerSpec) DeepCopyInto(out *RunnerSpec) { +func (in *RequirePreset) DeepCopyInto(out *RequirePreset) { *out = *in - if in.ClusterRef != nil { - in, out := &in.ClusterRef, &out.ClusterRef - *out = new(RunnerClusterRef) - (*in).DeepCopyInto(*out) - } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerSpec. -func (in *RunnerSpec) DeepCopy() *RunnerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequirePreset. +func (in *RequirePreset) DeepCopy() *RequirePreset { if in == nil { return nil } - out := new(RunnerSpec) + out := new(RequirePreset) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RunnerStatus) DeepCopyInto(out *RunnerStatus) { +func (in *RequireTemplate) DeepCopyInto(out *RequireTemplate) { *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(storagev1.Conditions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerStatus. -func (in *RunnerStatus) DeepCopy() *RunnerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequireTemplate. +func (in *RequireTemplate) DeepCopy() *RequireTemplate { if in == nil { return nil } - out := new(RunnerStatus) + out := new(RequireTemplate) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SSHProjectSpec) DeepCopyInto(out *SSHProjectSpec) { +func (in *RunnerRef) DeepCopyInto(out *RunnerRef) { *out = *in - if in.TokenProjectSecretRef != nil { - in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHProjectSpec. -func (in *SSHProjectSpec) DeepCopy() *SSHProjectSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerRef. +func (in *RunnerRef) DeepCopy() *RunnerRef { if in == nil { return nil } - out := new(SSHProjectSpec) + out := new(RunnerRef) in.DeepCopyInto(out) return out } @@ -5499,6 +5407,37 @@ func (in *WorkspaceRef) DeepCopy() *WorkspaceRef { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceResolvedTarget) DeepCopyInto(out *WorkspaceResolvedTarget) { + *out = *in + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = new(WorkspaceTargetNamespace) + **out = **in + } + if in.VirtualCluster != nil { + in, out := &in.VirtualCluster, &out.VirtualCluster + *out = new(WorkspaceTargetNamespace) + **out = **in + } + if in.Space != nil { + in, out := &in.Space, &out.Space + *out = new(WorkspaceTargetName) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceResolvedTarget. +func (in *WorkspaceResolvedTarget) DeepCopy() *WorkspaceResolvedTarget { + if in == nil { + return nil + } + out := new(WorkspaceResolvedTarget) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkspaceStatusResult) DeepCopyInto(out *WorkspaceStatusResult) { *out = *in @@ -5514,3 +5453,61 @@ func (in *WorkspaceStatusResult) DeepCopy() *WorkspaceStatusResult { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceTarget) DeepCopyInto(out *WorkspaceTarget) { + *out = *in + if in.Cluster != nil { + in, out := &in.Cluster, &out.Cluster + *out = new(WorkspaceTargetName) + **out = **in + } + if in.VirtualCluster != nil { + in, out := &in.VirtualCluster, &out.VirtualCluster + *out = new(WorkspaceTargetName) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTarget. +func (in *WorkspaceTarget) DeepCopy() *WorkspaceTarget { + if in == nil { + return nil + } + out := new(WorkspaceTarget) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceTargetName) DeepCopyInto(out *WorkspaceTargetName) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTargetName. +func (in *WorkspaceTargetName) DeepCopy() *WorkspaceTargetName { + if in == nil { + return nil + } + out := new(WorkspaceTargetName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *WorkspaceTargetNamespace) DeepCopyInto(out *WorkspaceTargetNamespace) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTargetNamespace. +func (in *WorkspaceTargetNamespace) DeepCopy() *WorkspaceTargetNamespace { + if in == nil { + return nil + } + out := new(WorkspaceTargetNamespace) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/apis/storage/v1/zz_generated.defaults.go b/pkg/apis/storage/v1/zz_generated.defaults.go index 659f5d1c..9cf29650 100644 --- a/pkg/apis/storage/v1/zz_generated.defaults.go +++ b/pkg/apis/storage/v1/zz_generated.defaults.go @@ -14,16 +14,266 @@ import ( // Public to allow building arbitrary schemes. // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { - scheme.AddTypeDefaultingFunc(&Runner{}, func(obj interface{}) { SetObjectDefaults_Runner(obj.(*Runner)) }) - scheme.AddTypeDefaultingFunc(&RunnerList{}, func(obj interface{}) { SetObjectDefaults_RunnerList(obj.(*RunnerList)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) + scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { + SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) + }) return nil } -func SetObjectDefaults_Runner(in *Runner) { - if in.Spec.ClusterRef != nil { - if in.Spec.ClusterRef.PodTemplate != nil { - for i := range in.Spec.ClusterRef.PodTemplate.Spec.Volumes { - a := &in.Spec.ClusterRef.PodTemplate.Spec.Volumes[i] +func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { + if in.Spec.Template != nil { + if in.Spec.Template.Kubernetes != nil { + if in.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } + if in.Status.Instance != nil { + if in.Status.Instance.Kubernetes != nil { + if in.Status.Instance.Kubernetes.Pod != nil { + for i := range in.Status.Instance.Kubernetes.Pod.Spec.Volumes { + a := &in.Status.Instance.Kubernetes.Pod.Spec.Volumes[i] + if a.VolumeSource.ISCSI != nil { + if a.VolumeSource.ISCSI.ISCSIInterface == "" { + a.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if a.VolumeSource.RBD != nil { + if a.VolumeSource.RBD.RBDPool == "" { + a.VolumeSource.RBD.RBDPool = "rbd" + } + if a.VolumeSource.RBD.RadosUser == "" { + a.VolumeSource.RBD.RadosUser = "admin" + } + if a.VolumeSource.RBD.Keyring == "" { + a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if a.VolumeSource.AzureDisk != nil { + if a.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if a.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + a.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if a.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if a.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + a.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if a.VolumeSource.ScaleIO != nil { + if a.VolumeSource.ScaleIO.StorageMode == "" { + a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if a.VolumeSource.ScaleIO.FSType == "" { + a.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for i := range in.Status.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Status.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.Instance.Kubernetes.Pod.Spec.Containers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } +} + +func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { + for i := range in.Items { + a := &in.Items[i] + SetObjectDefaults_DevPodWorkspaceInstance(a) + } +} + +func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { + if in.Spec.Template.Kubernetes != nil { + if in.Spec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -67,8 +317,41 @@ func SetObjectDefaults_Runner(in *Runner) { } } } - for i := range in.Spec.ClusterRef.PodTemplate.Spec.InitContainers { - a := &in.Spec.ClusterRef.PodTemplate.Spec.InitContainers[i] + for i := range in.Spec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for j := range a.Ports { + b := &a.Ports[j] + if b.Protocol == "" { + b.Protocol = "TCP" + } + } + if a.LivenessProbe != nil { + if a.LivenessProbe.ProbeHandler.GRPC != nil { + if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.ReadinessProbe != nil { + if a.ReadinessProbe.ProbeHandler.GRPC != nil { + if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if a.StartupProbe != nil { + if a.StartupProbe.ProbeHandler.GRPC != nil { + if a.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for i := range in.Spec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { @@ -102,11 +385,129 @@ func SetObjectDefaults_Runner(in *Runner) { } } } + for i := range in.Spec.Versions { + a := &in.Spec.Versions[i] + if a.Template.Kubernetes != nil { + if a.Template.Kubernetes.Pod != nil { + for j := range a.Template.Kubernetes.Pod.Spec.Volumes { + b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] + if b.VolumeSource.ISCSI != nil { + if b.VolumeSource.ISCSI.ISCSIInterface == "" { + b.VolumeSource.ISCSI.ISCSIInterface = "default" + } + } + if b.VolumeSource.RBD != nil { + if b.VolumeSource.RBD.RBDPool == "" { + b.VolumeSource.RBD.RBDPool = "rbd" + } + if b.VolumeSource.RBD.RadosUser == "" { + b.VolumeSource.RBD.RadosUser = "admin" + } + if b.VolumeSource.RBD.Keyring == "" { + b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" + } + } + if b.VolumeSource.AzureDisk != nil { + if b.VolumeSource.AzureDisk.CachingMode == nil { + ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) + b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 + } + if b.VolumeSource.AzureDisk.FSType == nil { + var ptrVar1 string = "ext4" + b.VolumeSource.AzureDisk.FSType = &ptrVar1 + } + if b.VolumeSource.AzureDisk.ReadOnly == nil { + var ptrVar1 bool = false + b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 + } + if b.VolumeSource.AzureDisk.Kind == nil { + ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) + b.VolumeSource.AzureDisk.Kind = &ptrVar1 + } + } + if b.VolumeSource.ScaleIO != nil { + if b.VolumeSource.ScaleIO.StorageMode == "" { + b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" + } + if b.VolumeSource.ScaleIO.FSType == "" { + b.VolumeSource.ScaleIO.FSType = "xfs" + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { + b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + for j := range a.Template.Kubernetes.Pod.Spec.Containers { + b := &a.Template.Kubernetes.Pod.Spec.Containers[j] + for k := range b.Ports { + c := &b.Ports[k] + if c.Protocol == "" { + c.Protocol = "TCP" + } + } + if b.LivenessProbe != nil { + if b.LivenessProbe.ProbeHandler.GRPC != nil { + if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.ReadinessProbe != nil { + if b.ReadinessProbe.ProbeHandler.GRPC != nil { + if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + if b.StartupProbe != nil { + if b.StartupProbe.ProbeHandler.GRPC != nil { + if b.StartupProbe.ProbeHandler.GRPC.Service == nil { + var ptrVar1 string = "" + b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 + } + } + } + } + } + } + } } -func SetObjectDefaults_RunnerList(in *RunnerList) { +func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_Runner(a) + SetObjectDefaults_DevPodWorkspaceTemplate(a) } } diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index bbb593cc..2567f667 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -64,7 +64,6 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "RedirectToken", "RegisterVirtualCluster", "ResetAccessKey", - "Runner", "Self", "SelfSubjectAccessReview", "SpaceTemplate", diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go index ec7becb8..9014a035 100644 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go @@ -29,9 +29,10 @@ type DevPodWorkspaceInstanceInterface interface { List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceInstanceList, error) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceInstance, err error) - GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevPodWorkspaceInstanceState, error) - SetState(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceState *managementv1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceState, error) + Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *managementv1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceUp, error) + Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *managementv1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceStop, error) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevPodWorkspaceInstanceTroubleshoot, error) + Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *managementv1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceCancel, error) DevPodWorkspaceInstanceExpansion } @@ -55,30 +56,31 @@ func newDevPodWorkspaceInstances(c *ManagementV1Client, namespace string) *devPo } } -// GetState takes name of the devPodWorkspaceInstance, and returns the corresponding managementv1.DevPodWorkspaceInstanceState object, and an error if there is any. -func (c *devPodWorkspaceInstances) GetState(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *managementv1.DevPodWorkspaceInstanceState, err error) { - result = &managementv1.DevPodWorkspaceInstanceState{} - err = c.GetClient().Get(). +// Up takes the representation of a devPodWorkspaceInstanceUp and creates it. Returns the server's representation of the devPodWorkspaceInstanceUp, and an error, if there is any. +func (c *devPodWorkspaceInstances) Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *managementv1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceUp, err error) { + result = &managementv1.DevPodWorkspaceInstanceUp{} + err = c.GetClient().Post(). Namespace(c.GetNamespace()). Resource("devpodworkspaceinstances"). Name(devPodWorkspaceInstanceName). - SubResource("state"). - VersionedParams(&options, scheme.ParameterCodec). + SubResource("up"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(devPodWorkspaceInstanceUp). 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 *managementv1.DevPodWorkspaceInstanceState, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceState, err error) { - result = &managementv1.DevPodWorkspaceInstanceState{} +// Stop takes the representation of a devPodWorkspaceInstanceStop and creates it. Returns the server's representation of the devPodWorkspaceInstanceStop, and an error, if there is any. +func (c *devPodWorkspaceInstances) Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *managementv1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceStop, err error) { + result = &managementv1.DevPodWorkspaceInstanceStop{} err = c.GetClient().Post(). Namespace(c.GetNamespace()). Resource("devpodworkspaceinstances"). Name(devPodWorkspaceInstanceName). - SubResource("state"). + SubResource("stop"). VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceState). + Body(devPodWorkspaceInstanceStop). Do(ctx). Into(result) return @@ -97,3 +99,18 @@ func (c *devPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorks Into(result) return } + +// Cancel takes the representation of a devPodWorkspaceInstanceCancel and creates it. Returns the server's representation of the devPodWorkspaceInstanceCancel, and an error, if there is any. +func (c *devPodWorkspaceInstances) Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *managementv1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceCancel, err error) { + result = &managementv1.DevPodWorkspaceInstanceCancel{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("devpodworkspaceinstances"). + Name(devPodWorkspaceInstanceName). + SubResource("cancel"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(devPodWorkspaceInstanceCancel). + Do(ctx). + Into(result) + return +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go index 841877e8..e483763e 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go @@ -39,28 +39,28 @@ func newFakeDevPodWorkspaceInstances(fake *FakeManagementV1, namespace string) m } } -// 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{} +// Up takes the representation of a devPodWorkspaceInstanceUp and creates it. Returns the server's representation of the devPodWorkspaceInstanceUp, and an error, if there is any. +func (c *fakeDevPodWorkspaceInstances) Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *v1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceUp, err error) { + emptyResult := &v1.DevPodWorkspaceInstanceUp{} obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "state", devPodWorkspaceInstanceName, options), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "up", c.Namespace(), devPodWorkspaceInstanceUp, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.DevPodWorkspaceInstanceState), err + return obj.(*v1.DevPodWorkspaceInstanceUp), 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{} +// Stop takes the representation of a devPodWorkspaceInstanceStop and creates it. Returns the server's representation of the devPodWorkspaceInstanceStop, and an error, if there is any. +func (c *fakeDevPodWorkspaceInstances) Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *v1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceStop, err error) { + emptyResult := &v1.DevPodWorkspaceInstanceStop{} obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "state", c.Namespace(), devPodWorkspaceInstanceState, opts), emptyResult) + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "stop", c.Namespace(), devPodWorkspaceInstanceStop, opts), emptyResult) if obj == nil { return emptyResult, err } - return obj.(*v1.DevPodWorkspaceInstanceState), err + return obj.(*v1.DevPodWorkspaceInstanceStop), err } // Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstanceTroubleshoot object, and an error if there is any. @@ -74,3 +74,15 @@ func (c *fakeDevPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodW } return obj.(*v1.DevPodWorkspaceInstanceTroubleshoot), err } + +// Cancel takes the representation of a devPodWorkspaceInstanceCancel and creates it. Returns the server's representation of the devPodWorkspaceInstanceCancel, and an error, if there is any. +func (c *fakeDevPodWorkspaceInstances) Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *v1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceCancel, err error) { + emptyResult := &v1.DevPodWorkspaceInstanceCancel{} + obj, err := c.Fake. + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "cancel", c.Namespace(), devPodWorkspaceInstanceCancel, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevPodWorkspaceInstanceCancel), err +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go index cf5a08a2..1125258b 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 @@ -120,10 +120,6 @@ func (c *FakeManagementV1) ResetAccessKeys() v1.ResetAccessKeyInterface { return newFakeResetAccessKeys(c) } -func (c *FakeManagementV1) Runners() v1.RunnerInterface { - return newFakeRunners(c) -} - func (c *FakeManagementV1) Selves() v1.SelfInterface { return newFakeSelves(c) } 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 8dae8d4b..639cdde1 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_project.go @@ -57,17 +57,6 @@ func (c *fakeProjects) ListTemplates(ctx context.Context, projectName string, op 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(c.Resource(), "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) { emptyResult := &v1.ProjectClusters{} 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 455da765..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_runner.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - 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" - gentype "k8s.io/client-go/gentype" - testing "k8s.io/client-go/testing" -) - -// fakeRunners implements RunnerInterface -type fakeRunners struct { - *gentype.FakeClientWithList[*v1.Runner, *v1.RunnerList] - Fake *FakeManagementV1 -} - -func newFakeRunners(fake *FakeManagementV1) managementv1.RunnerInterface { - return &fakeRunners{ - gentype.NewFakeClientWithList[*v1.Runner, *v1.RunnerList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("runners"), - v1.SchemeGroupVersion.WithKind("Runner"), - func() *v1.Runner { return &v1.Runner{} }, - func() *v1.RunnerList { return &v1.RunnerList{} }, - func(dst, src *v1.RunnerList) { dst.ListMeta = src.ListMeta }, - func(list *v1.RunnerList) []*v1.Runner { return gentype.ToPointerSlice(list.Items) }, - func(list *v1.RunnerList, items []*v1.Runner) { list.Items = gentype.FromPointerSlice(items) }, - ), - fake, - } -} - -// 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(c.Resource(), "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(c.Resource(), "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_user.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go index 122e00d7..c39e16ab 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_user.go @@ -46,6 +46,17 @@ func (c *fakeUsers) GetProfile(ctx context.Context, userName string, options met return obj.(*v1.UserProfile), err } +// 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.NewRootCreateSubresourceActionWithOptions(c.Resource(), userName, "profile", userProfile, opts), emptyResult) + if obj == nil { + return emptyResult, err + } + return obj.(*v1.UserProfile), err +} + // 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) { emptyResult := &v1.UserClusters{} diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index 3b276a34..08a7340b 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -56,8 +56,6 @@ type RegisterVirtualClusterExpansion interface{} type ResetAccessKeyExpansion interface{} -type RunnerExpansion interface{} - type SelfExpansion interface{} type SelfSubjectAccessReviewExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index da4dfd4b..2f009bb6 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -39,7 +39,6 @@ type ManagementV1Interface interface { RedirectTokensGetter RegisterVirtualClustersGetter ResetAccessKeysGetter - RunnersGetter SelvesGetter SelfSubjectAccessReviewsGetter SharedSecretsGetter @@ -168,10 +167,6 @@ func (c *ManagementV1Client) ResetAccessKeys() ResetAccessKeyInterface { return newResetAccessKeys(c) } -func (c *ManagementV1Client) Runners() RunnerInterface { - return newRunners(c) -} - func (c *ManagementV1Client) Selves() SelfInterface { return newSelves(c) } diff --git a/pkg/clientset/versioned/typed/management/v1/project.go b/pkg/clientset/versioned/typed/management/v1/project.go index d32f7335..95a80660 100644 --- a/pkg/clientset/versioned/typed/management/v1/project.go +++ b/pkg/clientset/versioned/typed/management/v1/project.go @@ -33,7 +33,6 @@ type ProjectInterface interface { 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) - ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (*managementv1.ProjectRunners, 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) @@ -87,19 +86,6 @@ func (c *projects) ListTemplates(ctx context.Context, projectName string, option return } -// ListRunners takes name of the project, and returns the corresponding managementv1.ProjectRunners object, and an error if there is any. -func (c *projects) ListRunners(ctx context.Context, projectName string, options metav1.GetOptions) (result *managementv1.ProjectRunners, err error) { - result = &managementv1.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 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{} 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 fcf8e970..00000000 --- a/pkg/clientset/versioned/typed/management/v1/runner.go +++ /dev/null @@ -1,83 +0,0 @@ -// 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" -) - -// 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 *managementv1.Runner, opts metav1.CreateOptions) (*managementv1.Runner, error) - Update(ctx context.Context, runner *managementv1.Runner, opts metav1.UpdateOptions) (*managementv1.Runner, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, runner *managementv1.Runner, opts metav1.UpdateOptions) (*managementv1.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) (*managementv1.Runner, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.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 *managementv1.Runner, err error) - GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (*managementv1.RunnerConfig, error) - GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (*managementv1.RunnerAccessKey, error) - - RunnerExpansion -} - -// runners implements RunnerInterface -type runners struct { - *gentype.ClientWithList[*managementv1.Runner, *managementv1.RunnerList] -} - -// newRunners returns a Runners -func newRunners(c *ManagementV1Client) *runners { - return &runners{ - gentype.NewClientWithList[*managementv1.Runner, *managementv1.RunnerList]( - "runners", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.Runner { return &managementv1.Runner{} }, - func() *managementv1.RunnerList { return &managementv1.RunnerList{} }, - ), - } -} - -// GetConfig takes name of the runner, and returns the corresponding managementv1.RunnerConfig object, and an error if there is any. -func (c *runners) GetConfig(ctx context.Context, runnerName string, options metav1.GetOptions) (result *managementv1.RunnerConfig, err error) { - result = &managementv1.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 managementv1.RunnerAccessKey object, and an error if there is any. -func (c *runners) GetAccessKey(ctx context.Context, runnerName string, options metav1.GetOptions) (result *managementv1.RunnerAccessKey, err error) { - result = &managementv1.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/user.go b/pkg/clientset/versioned/typed/management/v1/user.go index da24f6b0..e3ef1727 100644 --- a/pkg/clientset/versioned/typed/management/v1/user.go +++ b/pkg/clientset/versioned/typed/management/v1/user.go @@ -32,6 +32,7 @@ type UserInterface interface { 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.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) @@ -70,6 +71,20 @@ func (c *users) GetProfile(ctx context.Context, userName string, options metav1. return } +// 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{} 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 0c750ba1..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_runner.go +++ /dev/null @@ -1,32 +0,0 @@ -// 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" -) - -// fakeRunners implements RunnerInterface -type fakeRunners struct { - *gentype.FakeClientWithList[*v1.Runner, *v1.RunnerList] - Fake *FakeStorageV1 -} - -func newFakeRunners(fake *FakeStorageV1) storagev1.RunnerInterface { - return &fakeRunners{ - gentype.NewFakeClientWithList[*v1.Runner, *v1.RunnerList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("runners"), - v1.SchemeGroupVersion.WithKind("Runner"), - func() *v1.Runner { return &v1.Runner{} }, - func() *v1.RunnerList { return &v1.RunnerList{} }, - func(dst, src *v1.RunnerList) { dst.ListMeta = src.ListMeta }, - func(list *v1.RunnerList) []*v1.Runner { return gentype.ToPointerSlice(list.Items) }, - func(list *v1.RunnerList, items []*v1.Runner) { 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 557040ea..340e6f83 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 @@ -56,10 +56,6 @@ func (c *FakeStorageV1) Projects() v1.ProjectInterface { return newFakeProjects(c) } -func (c *FakeStorageV1) Runners() v1.RunnerInterface { - return newFakeRunners(c) -} - func (c *FakeStorageV1) SharedSecrets(namespace string) v1.SharedSecretInterface { return newFakeSharedSecrets(c, namespace) } diff --git a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go index 68e8095a..f9278164 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -24,8 +24,6 @@ type NetworkPeerExpansion interface{} type ProjectExpansion interface{} -type RunnerExpansion interface{} - type SharedSecretExpansion interface{} type SpaceInstanceExpansion interface{} 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 a75823a2..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/runner.go +++ /dev/null @@ -1,54 +0,0 @@ -// 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" -) - -// 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 *storagev1.Runner, opts metav1.CreateOptions) (*storagev1.Runner, error) - Update(ctx context.Context, runner *storagev1.Runner, opts metav1.UpdateOptions) (*storagev1.Runner, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, runner *storagev1.Runner, opts metav1.UpdateOptions) (*storagev1.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) (*storagev1.Runner, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.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 *storagev1.Runner, err error) - RunnerExpansion -} - -// runners implements RunnerInterface -type runners struct { - *gentype.ClientWithList[*storagev1.Runner, *storagev1.RunnerList] -} - -// newRunners returns a Runners -func newRunners(c *StorageV1Client) *runners { - return &runners{ - gentype.NewClientWithList[*storagev1.Runner, *storagev1.RunnerList]( - "runners", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.Runner { return &storagev1.Runner{} }, - func() *storagev1.RunnerList { return &storagev1.RunnerList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index 83951f3b..618c696b 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -23,7 +23,6 @@ type StorageV1Interface interface { DevPodWorkspaceTemplatesGetter NetworkPeersGetter ProjectsGetter - RunnersGetter SharedSecretsGetter SpaceInstancesGetter SpaceTemplatesGetter @@ -83,10 +82,6 @@ func (c *StorageV1Client) Projects() ProjectInterface { return newProjects(c) } -func (c *StorageV1Client) Runners() RunnerInterface { - return newRunners(c) -} - func (c *StorageV1Client) SharedSecrets(namespace string) SharedSecretInterface { return newSharedSecrets(c, namespace) } diff --git a/pkg/devpod/options.go b/pkg/devpod/options.go new file mode 100644 index 00000000..078aa3c8 --- /dev/null +++ b/pkg/devpod/options.go @@ -0,0 +1,24 @@ +package devpod + +type CloneOptions struct { + // Repository is the repository to clone + Repository string `json:"repository,omitempty"` + + // Branch is the branch to use + Branch string `json:"branch,omitempty"` + + // Commit is the commit SHA to checkout + Commit string `json:"commit,omitempty"` + + // PRReference is the pull request reference to checkout + PRReference string `json:"prReference,omitempty"` + + // SubPath is the subpath in the repo to use + SubPath string `json:"subPath,omitempty"` + + // CredentialsHelper is the credentials helper to use for the clone + CredentialsHelper string `json:"credentialsHelper,omitempty"` + + // ExtraEnv is the extra environment variables to use for the clone + ExtraEnv []string `json:"extraEnv,omitempty"` +} diff --git a/pkg/devpod/platformoptions.go b/pkg/devpod/platformoptions.go new file mode 100644 index 00000000..1c21d7e0 --- /dev/null +++ b/pkg/devpod/platformoptions.go @@ -0,0 +1,69 @@ +package devpod + +type PlatformOptions struct { + // Enabled is true if platform mode is enabled. Be careful with this option as this is only enabled + // when executed on the platform side and not if a platform workspace is used locally. + Enabled bool `json:"enabled,omitempty"` + + // connection options + // AccessKey is used by the workspace daemon to authenticate itself + AccessKey string `json:"accessKey,omitempty"` + // UserAccessKey can be used as the workspace owner + UserAccessKey string `json:"userAccessKey,omitempty"` + WorkspaceHost string `json:"workspaceHost,omitempty"` + PlatformHost string `json:"platformHost,omitempty"` + RunnerSocket string `json:"runnerSocket,omitempty"` + + // environment template options + EnvironmentTemplate string `json:"environmentTemplate,omitempty"` + EnvironmentTemplateVersion string `json:"environmentTemplateVersion,omitempty"` + + // Kubernetes holds configuration for workspaces that need information about their kubernetes environment, i.e. + // the ones running in virtual clusters or spaces + Kubernetes *Kubernetes `json:"kubernetes,omitempty"` + + // credentials for the workspace + Credentials PlatformWorkspaceCredentials `json:"credentials,omitempty"` + + // Remote builds + Build *PlatformBuildOptions `json:"build,omitempty"` +} + +type PlatformWorkspaceCredentials struct { + GitHttp []PlatformGitHttpCredentials `json:"gitHttp,omitempty"` + GitSsh []PlatformGitSshCredentials `json:"gitSsh,omitempty"` + Docker []PlatformDockerCredentials `json:"docker,omitempty"` +} + +type PlatformGitHttpCredentials struct { + Host string `json:"host,omitempty"` + User string `json:"user,omitempty"` + Password string `json:"password,omitempty"` + Path string `json:"path,omitempty"` +} + +type PlatformGitSshCredentials struct { + Key string `json:"key,omitempty"` +} + +type PlatformDockerCredentials struct { + Host string `json:"host,omitempty"` + User string `json:"user,omitempty"` + Password string `json:"password,omitempty"` +} + +type PlatformBuildOptions struct { + Repository string `json:"repository,omitempty"` + RemoteAddress string `json:"remoteAddress,omitempty"` + + // mTLS + CertCA string `json:"certCa,omitempty"` + CertKey string `json:"certKey,omitempty"` + Cert string `json:"cert,omitempty"` +} + +type Kubernetes struct { + SpaceName string `json:"spaceName,omitempty"` + VirtualClusterName string `json:"virtualClusterName,omitempty"` + Namespace string `json:"namespace,omitempty"` +} diff --git a/pkg/devpod/runner.pb.go b/pkg/devpod/runner.pb.go new file mode 100644 index 00000000..51e2a1b7 --- /dev/null +++ b/pkg/devpod/runner.pb.go @@ -0,0 +1,214 @@ +// protoc -I . runner.proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v5.29.1 +// source: runner.proto + +package devpod + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CloneRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TargetPath string `protobuf:"bytes,1,opt,name=targetPath,proto3" json:"targetPath,omitempty"` + Options string `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` +} + +func (x *CloneRequest) Reset() { + *x = CloneRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_runner_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloneRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloneRequest) ProtoMessage() {} + +func (x *CloneRequest) ProtoReflect() protoreflect.Message { + mi := &file_runner_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloneRequest.ProtoReflect.Descriptor instead. +func (*CloneRequest) Descriptor() ([]byte, []int) { + return file_runner_proto_rawDescGZIP(), []int{0} +} + +func (x *CloneRequest) GetTargetPath() string { + if x != nil { + return x.TargetPath + } + return "" +} + +func (x *CloneRequest) GetOptions() string { + if x != nil { + return x.Options + } + return "" +} + +type CloneResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloneResponse) Reset() { + *x = CloneResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_runner_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloneResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloneResponse) ProtoMessage() {} + +func (x *CloneResponse) ProtoReflect() protoreflect.Message { + mi := &file_runner_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloneResponse.ProtoReflect.Descriptor instead. +func (*CloneResponse) Descriptor() ([]byte, []int) { + return file_runner_proto_rawDescGZIP(), []int{1} +} + +var File_runner_proto protoreflect.FileDescriptor + +var file_runner_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, + 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x22, 0x48, 0x0a, 0x0c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x50, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x32, 0x40, 0x0a, 0x06, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x05, 0x43, + 0x6c, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x2e, 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x6c, + 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x64, 0x65, 0x76, + 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6c, 0x6f, 0x66, 0x74, 0x2d, 0x73, 0x68, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x34, + 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_runner_proto_rawDescOnce sync.Once + file_runner_proto_rawDescData = file_runner_proto_rawDesc +) + +func file_runner_proto_rawDescGZIP() []byte { + file_runner_proto_rawDescOnce.Do(func() { + file_runner_proto_rawDescData = protoimpl.X.CompressGZIP(file_runner_proto_rawDescData) + }) + return file_runner_proto_rawDescData +} + +var file_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_runner_proto_goTypes = []interface{}{ + (*CloneRequest)(nil), // 0: devpod.CloneRequest + (*CloneResponse)(nil), // 1: devpod.CloneResponse +} +var file_runner_proto_depIdxs = []int32{ + 0, // 0: devpod.Runner.Clone:input_type -> devpod.CloneRequest + 1, // 1: devpod.Runner.Clone:output_type -> devpod.CloneResponse + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_runner_proto_init() } +func file_runner_proto_init() { + if File_runner_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_runner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_runner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloneResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_runner_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_runner_proto_goTypes, + DependencyIndexes: file_runner_proto_depIdxs, + MessageInfos: file_runner_proto_msgTypes, + }.Build() + File_runner_proto = out.File + file_runner_proto_rawDesc = nil + file_runner_proto_goTypes = nil + file_runner_proto_depIdxs = nil +} diff --git a/pkg/devpod/runner.proto b/pkg/devpod/runner.proto new file mode 100644 index 00000000..30b65f44 --- /dev/null +++ b/pkg/devpod/runner.proto @@ -0,0 +1,17 @@ +// protoc -I . runner.proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative +syntax = "proto3"; + +option go_package = "github.com/loft-sh/api/v4/pkg/devpod"; + +package devpod; + +service Runner { + rpc Clone(CloneRequest) returns (CloneResponse) {} +} + +message CloneRequest { + string targetPath = 1; + string options = 2; +} + +message CloneResponse {} diff --git a/pkg/devpod/runner_grpc.pb.go b/pkg/devpod/runner_grpc.pb.go new file mode 100644 index 00000000..dac7f0d8 --- /dev/null +++ b/pkg/devpod/runner_grpc.pb.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v5.29.1 +// source: runner.proto + +package devpod + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// RunnerClient is the client API for Runner service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type RunnerClient interface { + Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) +} + +type runnerClient struct { + cc grpc.ClientConnInterface +} + +func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient { + return &runnerClient{cc} +} + +func (c *runnerClient) Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) { + out := new(CloneResponse) + err := c.cc.Invoke(ctx, "/devpod.Runner/Clone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RunnerServer is the server API for Runner service. +// All implementations must embed UnimplementedRunnerServer +// for forward compatibility +type RunnerServer interface { + Clone(context.Context, *CloneRequest) (*CloneResponse, error) + mustEmbedUnimplementedRunnerServer() +} + +// UnimplementedRunnerServer must be embedded to have forward compatible implementations. +type UnimplementedRunnerServer struct { +} + +func (UnimplementedRunnerServer) Clone(context.Context, *CloneRequest) (*CloneResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Clone not implemented") +} +func (UnimplementedRunnerServer) mustEmbedUnimplementedRunnerServer() {} + +// UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to RunnerServer will +// result in compilation errors. +type UnsafeRunnerServer interface { + mustEmbedUnimplementedRunnerServer() +} + +func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer) { + s.RegisterService(&Runner_ServiceDesc, srv) +} + +func _Runner_Clone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloneRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RunnerServer).Clone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/devpod.Runner/Clone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RunnerServer).Clone(ctx, req.(*CloneRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Runner_ServiceDesc is the grpc.ServiceDesc for Runner service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Runner_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "devpod.Runner", + HandlerType: (*RunnerServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Clone", + Handler: _Runner_Clone_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "runner.proto", +} diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 0ce442ce..f94ec69c 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -93,8 +93,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().RegisterVirtualClusters().Informer()}, nil case v1.SchemeGroupVersion.WithResource("resetaccesskeys"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().ResetAccessKeys().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("runners"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Runners().Informer()}, nil case v1.SchemeGroupVersion.WithResource("selves"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Selves().Informer()}, nil case v1.SchemeGroupVersion.WithResource("selfsubjectaccessreviews"): @@ -145,8 +143,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NetworkPeers().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("projects"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().Projects().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("runners"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().Runners().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("sharedsecrets"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().SharedSecrets().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("spaceinstances"): diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index a759d9cd..32e96d72 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -62,8 +62,6 @@ type Interface interface { RegisterVirtualClusters() RegisterVirtualClusterInformer // ResetAccessKeys returns a ResetAccessKeyInformer. ResetAccessKeys() ResetAccessKeyInformer - // Runners returns a RunnerInformer. - Runners() RunnerInformer // Selves returns a SelfInformer. Selves() SelfInformer // SelfSubjectAccessReviews returns a SelfSubjectAccessReviewInformer. @@ -238,11 +236,6 @@ func (v *version) ResetAccessKeys() ResetAccessKeyInformer { return &resetAccessKeyInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// Runners returns a RunnerInformer. -func (v *version) Runners() RunnerInformer { - return &runnerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // Selves returns a SelfInformer. func (v *version) Selves() SelfInformer { return &selfInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/management/v1/runner.go b/pkg/informers/externalversions/management/v1/runner.go deleted file mode 100644 index 4444f097..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 "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" -) - -// RunnerInformer provides access to a shared informer and lister for -// Runners. -type RunnerInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.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) - }, - }, - &apismanagementv1.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(&apismanagementv1.Runner{}, f.defaultInformer) -} - -func (f *runnerInformer) Lister() managementv1.RunnerLister { - return managementv1.NewRunnerLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index 1c2b075e..010bc213 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -30,8 +30,6 @@ type Interface interface { NetworkPeers() NetworkPeerInformer // Projects returns a ProjectInformer. Projects() ProjectInformer - // Runners returns a RunnerInformer. - Runners() RunnerInformer // SharedSecrets returns a SharedSecretInformer. SharedSecrets() SharedSecretInformer // SpaceInstances returns a SpaceInstanceInformer. @@ -116,11 +114,6 @@ func (v *version) Projects() ProjectInformer { return &projectInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// Runners returns a RunnerInformer. -func (v *version) Runners() RunnerInformer { - return &runnerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // SharedSecrets returns a SharedSecretInformer. func (v *version) SharedSecrets() SharedSecretInformer { return &sharedSecretInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/storage/v1/runner.go b/pkg/informers/externalversions/storage/v1/runner.go deleted file mode 100644 index 337def07..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 "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" -) - -// RunnerInformer provides access to a shared informer and lister for -// Runners. -type RunnerInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.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) - }, - }, - &apisstoragev1.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(&apisstoragev1.Runner{}, f.defaultInformer) -} - -func (f *runnerInformer) Lister() storagev1.RunnerLister { - return storagev1.NewRunnerLister(f.Informer().GetIndexer()) -} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index c2fb934b..6717d07a 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -118,10 +118,6 @@ type RegisterVirtualClusterListerExpansion interface{} // ResetAccessKeyLister. type ResetAccessKeyListerExpansion interface{} -// RunnerListerExpansion allows custom methods to be added to -// RunnerLister. -type RunnerListerExpansion interface{} - // SelfListerExpansion allows custom methods to be added to // SelfLister. type SelfListerExpansion interface{} diff --git a/pkg/listers/management/v1/runner.go b/pkg/listers/management/v1/runner.go deleted file mode 100644 index ba8e509d..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 ( - 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" -) - -// 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 []*managementv1.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) (*managementv1.Runner, error) - RunnerListerExpansion -} - -// runnerLister implements the RunnerLister interface. -type runnerLister struct { - listers.ResourceIndexer[*managementv1.Runner] -} - -// NewRunnerLister returns a new RunnerLister. -func NewRunnerLister(indexer cache.Indexer) RunnerLister { - return &runnerLister{listers.New[*managementv1.Runner](indexer, managementv1.Resource("runner"))} -} diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index dd70675a..6940e290 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -50,10 +50,6 @@ type NetworkPeerListerExpansion interface{} // ProjectLister. type ProjectListerExpansion interface{} -// RunnerListerExpansion allows custom methods to be added to -// RunnerLister. -type RunnerListerExpansion interface{} - // SharedSecretListerExpansion allows custom methods to be added to // SharedSecretLister. type SharedSecretListerExpansion interface{} diff --git a/pkg/listers/storage/v1/runner.go b/pkg/listers/storage/v1/runner.go deleted file mode 100644 index 7c9c9f4a..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 ( - 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" -) - -// 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 []*storagev1.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) (*storagev1.Runner, error) - RunnerListerExpansion -} - -// runnerLister implements the RunnerLister interface. -type runnerLister struct { - listers.ResourceIndexer[*storagev1.Runner] -} - -// NewRunnerLister returns a new RunnerLister. -func NewRunnerLister(indexer cache.Indexer) RunnerLister { - return &runnerLister{listers.New[*storagev1.Runner](indexer, storagev1.Resource("runner"))} -} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 1e64f485..d5a250d2 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -16,1372 +16,1375 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.CostControl": schema_pkg_apis_management_v1_CostControl(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess": schema_pkg_apis_management_v1_CurrentUserAccess(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.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.ObjectNames": schema_pkg_apis_management_v1_ObjectNames(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.UserDetailedPermissions": schema_pkg_apis_management_v1_UserDetailedPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissionsList": schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles": schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam": schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships": schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles": schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(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.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.Storage": schema_pkg_apis_storage_v1_Storage(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), - "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), - "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), - "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), - "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), - "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), - "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), - "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), - "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), - "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), - "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), - "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), - "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), - "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), - "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), - "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), - "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), - "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), - "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), - "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), - "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), - "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), - "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), - "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), - "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), - "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), - "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), - "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), - "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), - "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), - "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), - "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), - "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), - "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), - "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), - "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), - "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), - "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), - "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), - "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), - "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), - "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), - "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), - "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), - "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), - "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), - "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), - "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), - "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), - "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), - "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), - "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), - "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), - "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), - "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), - "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), - "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), - "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), - "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), - "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), - "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), - "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), - "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), - "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), - "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), - "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), - "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), - "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), - "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), - "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), - "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), - "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), - "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), - "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), - "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), - "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), - "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), - "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), - "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), - "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), - "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), - "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), - "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), - "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), - "k8s.io/api/core/v1.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(ref), - "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), - "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), - "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), - "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), - "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), - "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), - "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), - "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), - "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), - "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), - "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), - "k8s.io/api/core/v1.ClusterTrustBundleProjection": schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), - "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), - "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), - "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), - "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), - "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), - "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), - "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), - "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), - "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), - "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), - "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), - "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), - "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), - "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), - "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), - "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), - "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), - "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), - "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), - "k8s.io/api/core/v1.ContainerUser": schema_k8sio_api_core_v1_ContainerUser(ref), - "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), - "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), - "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), - "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), - "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), - "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), - "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), - "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), - "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), - "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), - "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), - "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), - "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), - "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), - "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), - "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), - "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), - "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), - "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), - "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), - "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), - "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), - "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), - "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), - "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), - "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), - "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), - "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), - "k8s.io/api/core/v1.HostIP": schema_k8sio_api_core_v1_HostIP(ref), - "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), - "k8s.io/api/core/v1.ImageVolumeSource": schema_k8sio_api_core_v1_ImageVolumeSource(ref), - "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), - "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), - "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), - "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), - "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), - "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), - "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), - "k8s.io/api/core/v1.LinuxContainerUser": schema_k8sio_api_core_v1_LinuxContainerUser(ref), - "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), - "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), - "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), - "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), - "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), - "k8s.io/api/core/v1.ModifyVolumeStatus": schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), - "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), - "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), - "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), - "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), - "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), - "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), - "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), - "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), - "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), - "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), - "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), - "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), - "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), - "k8s.io/api/core/v1.NodeFeatures": schema_k8sio_api_core_v1_NodeFeatures(ref), - "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), - "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), - "k8s.io/api/core/v1.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), - "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), - "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), - "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), - "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), - "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), - "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), - "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), - "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), - "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), - "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), - "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), - "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), - "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), - "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), - "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), - "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), - "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), - "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), - "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), - "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), - "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), - "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), - "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), - "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), - "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), - "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), - "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), - "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), - "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), - "k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), - "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), - "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), - "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), - "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), - "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), - "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), - "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), - "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), - "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), - "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), - "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), - "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), - "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), - "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), - "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), - "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), - "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), - "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), - "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), - "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), - "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), - "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), - "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), - "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), - "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), - "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), - "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), - "k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref), - "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), - "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), - "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), - "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), - "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), - "k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref), - "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), - "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), - "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), - "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), - "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), - "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), - "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), - "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), - "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), - "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), - "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), - "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), - "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), - "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), - "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), - "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), - "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), - "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), - "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), - "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), - "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), - "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), - "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), - "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), - "k8s.io/api/core/v1.SleepAction": schema_k8sio_api_core_v1_SleepAction(ref), - "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), - "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), - "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), - "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), - "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), - "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), - "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), - "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), - "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), - "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), - "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), - "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), - "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), - "k8s.io/api/core/v1.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(ref), - "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), - "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), - "k8s.io/api/core/v1.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), - "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), - "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), - "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), - "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), - "k8s.io/api/events/v1beta1.Event": schema_k8sio_api_events_v1beta1_Event(ref), - "k8s.io/api/events/v1beta1.EventList": schema_k8sio_api_events_v1beta1_EventList(ref), - "k8s.io/api/events/v1beta1.EventSeries": schema_k8sio_api_events_v1beta1_EventSeries(ref), - "k8s.io/api/extensions/v1beta1.DaemonSet": schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetCondition": schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetList": schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetSpec": schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetStatus": schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy": schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/extensions/v1beta1.Deployment": schema_k8sio_api_extensions_v1beta1_Deployment(ref), - "k8s.io/api/extensions/v1beta1.DeploymentCondition": schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), - "k8s.io/api/extensions/v1beta1.DeploymentList": schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), - "k8s.io/api/extensions/v1beta1.DeploymentRollback": schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), - "k8s.io/api/extensions/v1beta1.DeploymentSpec": schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStatus": schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStrategy": schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressPath": schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IPBlock": schema_k8sio_api_extensions_v1beta1_IPBlock(ref), - "k8s.io/api/extensions/v1beta1.Ingress": schema_k8sio_api_extensions_v1beta1_Ingress(ref), - "k8s.io/api/extensions/v1beta1.IngressBackend": schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), - "k8s.io/api/extensions/v1beta1.IngressList": schema_k8sio_api_extensions_v1beta1_IngressList(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressPortStatus": schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressRule": schema_k8sio_api_extensions_v1beta1_IngressRule(ref), - "k8s.io/api/extensions/v1beta1.IngressRuleValue": schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IngressSpec": schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), - "k8s.io/api/extensions/v1beta1.IngressStatus": schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressTLS": schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicy": schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyList": schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPort": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicySpec": schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSet": schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetCondition": schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetList": schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetSpec": schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetStatus": schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), - "k8s.io/api/extensions/v1beta1.RollbackConfig": schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet": schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment": schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/extensions/v1beta1.Scale": schema_k8sio_api_extensions_v1beta1_Scale(ref), - "k8s.io/api/extensions/v1beta1.ScaleSpec": schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), - "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), - "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), - "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), - "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), - "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), - "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), - "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), - "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), - "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), - "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), - "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), - "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), - "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), - "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), - "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), - "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), - "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), - "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), - "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), - "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), - "k8s.io/api/networking/v1beta1.IPAddressList": schema_k8sio_api_networking_v1beta1_IPAddressList(ref), - "k8s.io/api/networking/v1beta1.IPAddressSpec": schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), - "k8s.io/api/networking/v1beta1.Ingress": schema_k8sio_api_networking_v1beta1_Ingress(ref), - "k8s.io/api/networking/v1beta1.IngressBackend": schema_k8sio_api_networking_v1beta1_IngressBackend(ref), - "k8s.io/api/networking/v1beta1.IngressClass": schema_k8sio_api_networking_v1beta1_IngressClass(ref), - "k8s.io/api/networking/v1beta1.IngressClassList": schema_k8sio_api_networking_v1beta1_IngressClassList(ref), - "k8s.io/api/networking/v1beta1.IngressClassParametersReference": schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1beta1.IngressClassSpec": schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), - "k8s.io/api/networking/v1beta1.IngressList": schema_k8sio_api_networking_v1beta1_IngressList(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1beta1.IngressPortStatus": schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), - "k8s.io/api/networking/v1beta1.IngressRule": schema_k8sio_api_networking_v1beta1_IngressRule(ref), - "k8s.io/api/networking/v1beta1.IngressRuleValue": schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IngressSpec": schema_k8sio_api_networking_v1beta1_IngressSpec(ref), - "k8s.io/api/networking/v1beta1.IngressStatus": schema_k8sio_api_networking_v1beta1_IngressStatus(ref), - "k8s.io/api/networking/v1beta1.IngressTLS": schema_k8sio_api_networking_v1beta1_IngressTLS(ref), - "k8s.io/api/networking/v1beta1.ParentReference": schema_k8sio_api_networking_v1beta1_ParentReference(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDR": schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRList": schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRSpec": schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRStatus": schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), - "k8s.io/api/node/v1alpha1.Overhead": schema_k8sio_api_node_v1alpha1_Overhead(ref), - "k8s.io/api/node/v1alpha1.RuntimeClass": schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassList": schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassSpec": schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), - "k8s.io/api/node/v1alpha1.Scheduling": schema_k8sio_api_node_v1alpha1_Scheduling(ref), - "k8s.io/api/node/v1beta1.Overhead": schema_k8sio_api_node_v1beta1_Overhead(ref), - "k8s.io/api/node/v1beta1.RuntimeClass": schema_k8sio_api_node_v1beta1_RuntimeClass(ref), - "k8s.io/api/node/v1beta1.RuntimeClassList": schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), - "k8s.io/api/node/v1beta1.Scheduling": schema_k8sio_api_node_v1beta1_Scheduling(ref), - "k8s.io/api/policy/v1beta1.Eviction": schema_k8sio_api_policy_v1beta1_Eviction(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudget": schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetList": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), - "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), - "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), - "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), - "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), - "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), - "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), - "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), - "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), - "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), - "k8s.io/api/rbac/v1alpha1.AggregationRule": schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRole": schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1alpha1.PolicyRule": schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), - "k8s.io/api/rbac/v1alpha1.Role": schema_k8sio_api_rbac_v1alpha1_Role(ref), - "k8s.io/api/rbac/v1alpha1.RoleBinding": schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.RoleBindingList": schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.RoleList": schema_k8sio_api_rbac_v1alpha1_RoleList(ref), - "k8s.io/api/rbac/v1alpha1.RoleRef": schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), - "k8s.io/api/rbac/v1alpha1.Subject": schema_k8sio_api_rbac_v1alpha1_Subject(ref), - "k8s.io/api/rbac/v1beta1.AggregationRule": schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), - "k8s.io/api/rbac/v1beta1.ClusterRole": schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBinding": schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleList": schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1beta1.PolicyRule": schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), - "k8s.io/api/rbac/v1beta1.Role": schema_k8sio_api_rbac_v1beta1_Role(ref), - "k8s.io/api/rbac/v1beta1.RoleBinding": schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), - "k8s.io/api/rbac/v1beta1.RoleBindingList": schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.RoleList": schema_k8sio_api_rbac_v1beta1_RoleList(ref), - "k8s.io/api/rbac/v1beta1.RoleRef": schema_k8sio_api_rbac_v1beta1_RoleRef(ref), - "k8s.io/api/rbac/v1beta1.Subject": schema_k8sio_api_rbac_v1beta1_Subject(ref), - "k8s.io/api/scheduling/v1.PriorityClass": schema_k8sio_api_scheduling_v1_PriorityClass(ref), - "k8s.io/api/scheduling/v1.PriorityClassList": schema_k8sio_api_scheduling_v1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClass": schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClassList": schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClass": schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClassList": schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), - "k8s.io/api/storage/v1.CSIDriver": schema_k8sio_api_storage_v1_CSIDriver(ref), - "k8s.io/api/storage/v1.CSIDriverList": schema_k8sio_api_storage_v1_CSIDriverList(ref), - "k8s.io/api/storage/v1.CSIDriverSpec": schema_k8sio_api_storage_v1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1.CSINode": schema_k8sio_api_storage_v1_CSINode(ref), - "k8s.io/api/storage/v1.CSINodeDriver": schema_k8sio_api_storage_v1_CSINodeDriver(ref), - "k8s.io/api/storage/v1.CSINodeList": schema_k8sio_api_storage_v1_CSINodeList(ref), - "k8s.io/api/storage/v1.CSINodeSpec": schema_k8sio_api_storage_v1_CSINodeSpec(ref), - "k8s.io/api/storage/v1.CSIStorageCapacity": schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1.CSIStorageCapacityList": schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1.StorageClass": schema_k8sio_api_storage_v1_StorageClass(ref), - "k8s.io/api/storage/v1.StorageClassList": schema_k8sio_api_storage_v1_StorageClassList(ref), - "k8s.io/api/storage/v1.TokenRequest": schema_k8sio_api_storage_v1_TokenRequest(ref), - "k8s.io/api/storage/v1.VolumeAttachment": schema_k8sio_api_storage_v1_VolumeAttachment(ref), - "k8s.io/api/storage/v1.VolumeAttachmentList": schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSource": schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1.VolumeError": schema_k8sio_api_storage_v1_VolumeError(ref), - "k8s.io/api/storage/v1.VolumeNodeResources": schema_k8sio_api_storage_v1_VolumeNodeResources(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacity": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacityList": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachment": schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentList": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClass": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClassList": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1alpha1.VolumeError": schema_k8sio_api_storage_v1alpha1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.CSIDriver": schema_k8sio_api_storage_v1beta1_CSIDriver(ref), - "k8s.io/api/storage/v1beta1.CSIDriverList": schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), - "k8s.io/api/storage/v1beta1.CSIDriverSpec": schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1beta1.CSINode": schema_k8sio_api_storage_v1beta1_CSINode(ref), - "k8s.io/api/storage/v1beta1.CSINodeDriver": schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), - "k8s.io/api/storage/v1beta1.CSINodeList": schema_k8sio_api_storage_v1beta1_CSINodeList(ref), - "k8s.io/api/storage/v1beta1.CSINodeSpec": schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacity": schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacityList": schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1beta1.StorageClass": schema_k8sio_api_storage_v1beta1_StorageClass(ref), - "k8s.io/api/storage/v1beta1.StorageClassList": schema_k8sio_api_storage_v1beta1_StorageClassList(ref), - "k8s.io/api/storage/v1beta1.TokenRequest": schema_k8sio_api_storage_v1beta1_TokenRequest(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachment": schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentList": schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSource": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClass": schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClassList": schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1beta1.VolumeError": schema_k8sio_api_storage_v1beta1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.VolumeNodeResources": schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), - "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref), - "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement": schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster": schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredential": schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess": schema_pkg_apis_management_v1_CurrentUserAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceContainerResource": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceContainerResource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceKubernetesStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceKubernetesStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePodStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstancePodStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.ObjectNames": schema_pkg_apis_management_v1_ObjectNames(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.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.UserDetailedPermissions": schema_pkg_apis_management_v1_UserDetailedPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissionsList": schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles": schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam": schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships": schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles": schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(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.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), + "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), + "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), + "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), + "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), + "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), + "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), + "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), + "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), + "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), + "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), + "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), + "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), + "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), + "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), + "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), + "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), + "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), + "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), + "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), + "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), + "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), + "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), + "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), + "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), + "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), + "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), + "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), + "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), + "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), + "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), + "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), + "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), + "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), + "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), + "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), + "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), + "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), + "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), + "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), + "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), + "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), + "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), + "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), + "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), + "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), + "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), + "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), + "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), + "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), + "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), + "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), + "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), + "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), + "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), + "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), + "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), + "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), + "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), + "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), + "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), + "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), + "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), + "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), + "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), + "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), + "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), + "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), + "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), + "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), + "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), + "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), + "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), + "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), + "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), + "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), + "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), + "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), + "k8s.io/api/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), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics": schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics": schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetricsList": schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics": schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetricsList": schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), } } @@ -8547,11 +8550,17 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl"), }, }, + "imageBuilder": { + SchemaProps: spec.SchemaProps{ + Description: "ImageBuilder holds the settings related to the image builder", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, } } @@ -9014,11 +9023,12 @@ func schema_pkg_apis_management_v1_CurrentUserAccess(ref common.ReferenceCallbac } } -func schema_pkg_apis_management_v1_DevPodDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9034,20 +9044,33 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptions(ref common.ReferenceCallb Format: "", }, }, - "options": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus"), }, }, }, }, }, + 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_DevPodDeleteOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9080,7 +9103,7 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), }, }, }, @@ -9091,15 +9114,95 @@ func schema_pkg_apis_management_v1_DevPodDeleteOptionsList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodDeleteOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information", + Description: "DevPodEnvironmentTemplateSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes the environment 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"), + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access to the DevPod machine instance object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod environments", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"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"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodEnvironmentTemplateStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9125,24 +9228,65 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.Referenc "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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"), + }, + }, + "taskId": { + SchemaProps: spec.SchemaProps{ + Description: "TaskID is the id of the task that should get cancelled", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9175,7 +9319,7 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel"), }, }, }, @@ -9186,91 +9330,106 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceContainerResource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Name is the name of the container", Type: []string{"string"}, Format: "", }, }, - "description": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the environment template", - Type: []string{"string"}, - Format: "", + Description: "Resources is the resources of the container", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, - "owner": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "message": { 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: "A human-readable description of the status of this operation.", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "lastTimestamp": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod environments", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + Description: "The time at which the most recent occurrence of this event was recorded.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "versions": { + "type": { 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: "Type of this event (Normal, Warning), new types could be added in the future", + 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.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceKubernetesStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podStatus": { + SchemaProps: spec.SchemaProps{ + Description: "PodStatus is the status of the pod that is running the workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePodStatus"), + }, + }, + "persistentVolumeClaimStatus": { + SchemaProps: spec.SchemaProps{ + Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus"), + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePodStatus"}, } } -func schema_pkg_apis_management_v1_DevPodSshOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9290,20 +9449,69 @@ func schema_pkg_apis_management_v1_DevPodSshOptions(ref common.ReferenceCallback Format: "", }, }, - "options": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.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.DevPodWorkspaceInstance"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodSshOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9336,7 +9544,7 @@ func schema_pkg_apis_management_v1_DevPodSshOptionsList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog"), }, }, }, @@ -9347,11 +9555,11 @@ func schema_pkg_apis_management_v1_DevPodSshOptionsList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodSshOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9371,256 +9579,442 @@ func schema_pkg_apis_management_v1_DevPodStatusOptions(ref common.ReferenceCallb Format: "", }, }, - "options": { + "taskID": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "TaskID is the id of the task that is running", Type: []string{"string"}, Format: "", }, }, + "follow": { + SchemaProps: spec.SchemaProps{ + Description: "Follow the log stream of the task. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, } } -func schema_pkg_apis_management_v1_DevPodStatusOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(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 represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Bound", "Lost", "Pending"}, }, }, - "apiVersion": { + "capacity": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "capacity represents the actual resources of the underlying volume.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "metadata": { + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), + }, + }, + }, }, }, - "items": { + "events": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStatusOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_DevPodStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstancePodStatus(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: "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "apiVersion": { + "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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PodCondition"), + }, + }, + }, }, }, - "options": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "A human readable message indicating details about why the pod is in this condition.", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodStopOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "initContainerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "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"), + }, + }, + }, + }, + }, + "containerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + }, + }, + }, + }, + }, + "nodeName": { + SchemaProps: spec.SchemaProps{ + Description: "NodeName is the name of the node that is running the workspace", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "events": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent"), + }, + }, + }, }, }, - "items": { + "containerResources": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "ContainerResources are the resources of the containers that are running the workspace", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceContainerResource"), + }, + }, + }, + }, + }, + "containerMetrics": { + SchemaProps: spec.SchemaProps{ + Description: "ContainerMetrics are the metrics of the pod that is running the workspace", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodStopOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceContainerResource", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, } } -func schema_pkg_apis_management_v1_DevPodUpOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspaceInstanceSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes a DevPod machine instance", Type: []string{"string"}, Format: "", }, }, - "webMode": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "WebMode executes the up command directly.", - Type: []string{"boolean"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "cliMode": { + "presetRef": { SchemaProps: spec.SchemaProps{ - Description: "CLIMode executes the up command directly.", - Type: []string{"boolean"}, - Format: "", + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), }, }, - "debug": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Debug includes debug logs.", - Type: []string{"boolean"}, - Format: "", + Description: "TemplateRef holds the DevPod machine template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - "options": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target is the reference to the cluster holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), + }, + }, + "runnerRef": { + SchemaProps: spec.SchemaProps{ + Description: "Deprecated: Use TargetRef instead RunnerRef is the reference to the runner holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access to the DevPod machine instance object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "preventWakeUpOnConnection": { + SchemaProps: spec.SchemaProps{ + Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, } } -func schema_pkg_apis_management_v1_DevPodUpOptionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspaceInstanceStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "resolvedTarget": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ResolvedTarget is the resolved target of the workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"), + }, + }, + "lastWorkspaceStatus": { + SchemaProps: spec.SchemaProps{ + Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", Type: []string{"string"}, Format: "", }, }, - "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 DevPod machine instance is in", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "reason": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "message": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the DevPod machine might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions"), + 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: "", + }, + }, + "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"), + }, + }, + "kubernetes": { + SchemaProps: spec.SchemaProps{ + Description: "Kubernetes is the status of the workspace on kubernetes", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceKubernetesStatus"), + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodUpOptions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/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/management/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9645,24 +10039,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9695,7 +10089,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop"), }, }, }, @@ -9706,105 +10100,104 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "options": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Options are the options to pass.", Type: []string{"string"}, Format: "", }, }, - "description": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "taskId": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", + Description: "TaskID is the id of the task that is running", 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"), - }, - }, - "presetRef": { - SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "id": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Description: "ID is the id of the task", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "type": { 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: "Type is the type of the task", + Type: []string{"string"}, + Format: "", }, }, - "runnerRef": { + "status": { 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: "Status is the status of the task", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "result": { 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: "Result is the result of the task", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - "access": { + "logs": { 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: "Logs is the compressed logs of the task", + Type: []string{"string"}, + Format: "byte", }, }, - "preventWakeUpOnConnection": { + "createdAt": { 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: "CreatedAt is the timestamp when the task was created", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9830,22 +10223,28 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceState(ref common.Refer Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "state": { + "tasks": { SchemaProps: spec.SchemaProps{ - Description: "State holds the workspaces state as given by 'devpod export'", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9878,7 +10277,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks"), }, }, }, @@ -9889,89 +10288,40 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStateList(ref common.R }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceState", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastWorkspaceStatus": { - SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", - }, - }, - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "message": { + "taskID": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Description: "TaskID is the id of the task that is running", 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"}, } } @@ -10119,6 +10469,145 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref c } } +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(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"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(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.DevPodWorkspaceInstanceUp"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "debug": { + SchemaProps: spec.SchemaProps{ + Description: "Debug includes debug logs.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "options": { + SchemaProps: spec.SchemaProps{ + Description: "Options are the options to pass.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "taskId": { + SchemaProps: spec.SchemaProps{ + Description: "TaskID is the id of the task that is running", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -11141,6 +11630,40 @@ func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) } } +func schema_pkg_apis_management_v1_ImageBuilder(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled specifies whether the remote image builder should be available. If it's not available building ad-hoc images from a devcontainer.json is not supported", + Type: []string{"boolean"}, + Format: "", + }, + }, + "replicas": { + SchemaProps: spec.SchemaProps{ + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources are compute resource required by the buildkit containers", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -12912,25 +13435,11 @@ func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) }, }, }, - "runners": { - SchemaProps: spec.SchemaProps{ - Description: "Runners holds all the allowed runners", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), - }, - }, - }, - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -13519,102 +14028,6 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(re } } -func schema_pkg_apis_management_v1_ProjectRunners(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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"), - }, - }, - "runners": { - SchemaProps: spec.SchemaProps{ - Description: "Runners holds all the allowed runners", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_ProjectRunnersList(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.ProjectRunners"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRunners", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -14756,407 +15169,6 @@ func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCall } } -func schema_pkg_apis_management_v1_Runner(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Runner holds the Runner information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerStatus"), - }, - }, - }, - }, - }, - 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"}, - } -} - -func schema_pkg_apis_management_v1_RunnerAccessKey(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"}, - 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"), - }, - }, - "accessKey": { - SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the runner", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_RunnerAccessKeyList(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.RunnerAccessKey"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_RunnerConfig(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"}, - 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"), - }, - }, - "tokenCaCert": { - SchemaProps: spec.SchemaProps{ - Description: "TokenCaCert is the certificate authority the Loft tokens will be signed with", - Type: []string{"string"}, - Format: "byte", - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_RunnerConfigList(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.RunnerConfig"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RunnerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_RunnerList(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.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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RunnerSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", - }, - }, - "networkPeerName": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerName is the network peer name used to connect directly to the runner", - Type: []string{"string"}, - Format: "", - }, - }, - "endpoint": { - SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the hostname used to connect directly to the runner", - Type: []string{"string"}, - Format: "", - }, - }, - "clusterRef": { - SchemaProps: spec.SchemaProps{ - Description: "If ClusterRef is defined, Loft will schedule the runner on the given cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef"), - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "unusable": { - SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_RunnerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RunnerStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, - } -} - func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -20277,10 +20289,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": { @@ -22919,399 +22931,864 @@ func schema_pkg_apis_storage_v1_DevPodProjectSpec(ref common.ReferenceCallback) 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"), + Description: "Git defines additional git related settings like credentials", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec"), + }, + }, + "fallbackImage": { + 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: "", + }, + }, + "registryPattern": { + SchemaProps: spec.SchemaProps{ + Description: "RegistryPattern specifies a template pattern to use for building images on the fly. Requires the platform pods to be authenticated against the registry.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodProviderOption(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "value": { + SchemaProps: spec.SchemaProps{ + Description: "Value of this option.", + Type: []string{"string"}, + Format: "", + }, + }, + "valueFrom": { + 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"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "projectSecretRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectSecretRef is the project secret to use for this value.", + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + }, + }, + "sharedSecretRef": { + SchemaProps: spec.SchemaProps{ + Description: "SharedSecretRef is the shared secret to use for this value.", + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.SecretKeySelector"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "github": { + SchemaProps: spec.SchemaProps{ + Description: "Github source for the provider", + Type: []string{"string"}, + Format: "", + }, + }, + "file": { + SchemaProps: spec.SchemaProps{ + Description: "File source for the provider", + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL where the provider was downloaded from", + 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": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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 { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + }, + }, + }, + }, + }, + }, + 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 { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes a DevPod machine instance", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "presetRef": { + SchemaProps: spec.SchemaProps{ + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), + }, + }, + "templateRef": { + SchemaProps: spec.SchemaProps{ + Description: "TemplateRef holds the DevPod machine template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target is the reference to the cluster holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), + }, + }, + "runnerRef": { + SchemaProps: spec.SchemaProps{ + Description: "Deprecated: Use TargetRef instead RunnerRef is the reference to the runner holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Type: []string{"string"}, + Format: "", + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access to the DevPod machine instance object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "preventWakeUpOnConnection": { + SchemaProps: spec.SchemaProps{ + Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resolvedTarget": { + SchemaProps: spec.SchemaProps{ + Description: "ResolvedTarget is the resolved target of the workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"), + }, + }, + "lastWorkspaceStatus": { + SchemaProps: spec.SchemaProps{ + Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", + Type: []string{"string"}, + Format: "", + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase describes the current phase the DevPod machine instance is in", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the DevPod machine might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "instance": { + SchemaProps: spec.SchemaProps{ + Description: "Instance is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation ignores reconciliation for this object", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "The workspace instance metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pod": { + SchemaProps: spec.SchemaProps{ + Description: "Pod holds the definition for workspace pod.\n\nDefaults will be applied for fields that aren't specified.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate"), + }, + }, + "volumeClaim": { + SchemaProps: spec.SchemaProps{ + Description: "VolumeClaim holds the definition for the main workspace persistent volume. This volume is guaranteed to exist for the lifespan of the workspace.\n\nDefaults will be applied for fields that aren't specified.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate"), + }, + }, + "podTimeout": { + SchemaProps: spec.SchemaProps{ + Description: "PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. Default: 10m", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeArchitecture": { + SchemaProps: spec.SchemaProps{ + Description: "NodeArchitecture specifies the node architecture the workspace image will be built for. Only necessary if you need to build workspace images on the fly in the kubernetes cluster and your cluster is mixed architecture.", + Type: []string{"string"}, + Format: "", + }, + }, + "spaceTemplateRef": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplateRef is a reference to the space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "spaceTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplate is the inline template for a space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "ssh": { + "virtualClusterTemplateRef": { SchemaProps: spec.SchemaProps{ - Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec"), + Description: "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"), }, }, - "fallbackImage": { + "virtualClusterTemplate": { 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: "VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSHProjectSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_DevPodProviderOption(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspacePodTemplate is a less restrictive PodTemplate", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "value": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Value of this option.", - Type: []string{"string"}, - Format: "", + Description: "The pods metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "valueFrom": { + "spec": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "projectSecretRef": { + "volumes": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef is the project secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "List of volumes that can be mounted by containers belonging to the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Volume"), + }, + }, + }, }, }, - "sharedSecretRef": { + "initContainers": { SchemaProps: spec.SchemaProps{ - Description: "SharedSecretRef is the shared secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "List of initialization containers belonging to the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Container"), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "github": { + "containers": { SchemaProps: spec.SchemaProps{ - Description: "Github source for the provider", - Type: []string{"string"}, - Format: "", + Description: "List of containers belonging to the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Container"), + }, + }, + }, }, }, - "file": { + "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "File source for the provider", + Description: "Restart policy for all containers within the pod.\n\nPossible enum values:\n - `\"Always\"`\n - `\"Never\"`\n - `\"OnFailure\"`", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Always", "Never", "OnFailure"}, }, }, - "url": { + "terminationGracePeriodSeconds": { SchemaProps: spec.SchemaProps{ - Description: "URL where the provider was downloaded from", + Description: "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "activeDeadlineSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "Optional duration in seconds the pod may be active on the node relative to", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "dnsPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "Set DNS policy for the pod.\n\nPossible enum values:\n - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings.\n - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}, }, }, - }, - }, - }, - } -} - -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": { + "nodeSelector": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "NodeSelector is a selector which must be true for the pod to fit on a node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serviceAccountName": { + SchemaProps: spec.SchemaProps{ + Description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "automountServiceAccountToken": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "nodeName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "NodeName indicates in which node this pod is scheduled.", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "hostNetwork": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + Description: "Host networking requested for this pod. Use the host's network namespace.", + Type: []string{"boolean"}, + Format: "", }, }, - "status": { + "hostPID": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + Description: "Use the host's pid namespace.", + Type: []string{"boolean"}, + 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "hostIPC": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "Use the host's ipc namespace.", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "shareProcessNamespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "Share a single process namespace between all of the containers in a pod.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "securityContext": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "SecurityContext holds pod-level security attributes and common container settings.", + Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), }, }, - "items": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), }, }, }, }, }, - }, - 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "hostname": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Specifies the hostname of the Pod", Type: []string{"string"}, Format: "", }, }, - "description": { + "subdomain": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", + Description: "If specified, the fully qualified Pod hostname will be \"...svc.\".", Type: []string{"string"}, Format: "", }, }, - "owner": { + "affinity": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "If specified, the pod's scheduling constraints", + Ref: ref("k8s.io/api/core/v1.Affinity"), }, }, - "presetRef": { + "schedulerName": { SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), + Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + Type: []string{"string"}, + Format: "", }, }, - "templateRef": { + "tolerations": { 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: "If specified, the pod's tolerations.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Toleration"), + }, + }, + }, }, }, - "environmentRef": { + "hostAliases": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.HostAlias"), + }, + }, + }, }, }, - "template": { + "priorityClassName": { 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: "If specified, indicates the pod's priority.", + Type: []string{"string"}, + Format: "", }, }, - "runnerRef": { + "priority": { 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"), + Type: []string{"integer"}, + Format: "int32", }, }, - "parameters": { + "dnsConfig": { 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: "Specifies the DNS parameters of a pod.", + Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), }, }, - "access": { + "readinessGates": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", + Description: "If specified, all readiness gates will be evaluated for pod readiness.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), }, }, }, }, }, - "preventWakeUpOnConnection": { - SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "lastWorkspaceStatus": { + "runtimeClassName": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", + Description: "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod", Type: []string{"string"}, Format: "", }, }, - "phase": { + "enableServiceLinks": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, + Description: "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.", + Type: []string{"boolean"}, Format: "", }, }, - "reason": { + "preemptionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Description: "PreemptionPolicy is the Policy for preempting pods with lower priority.\n\nPossible enum values:\n - `\"Never\"` means that pod never preempts other pods with lower priority.\n - `\"PreemptLowerPriority\"` means that pod can preempt other pods with lower priority.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Never", "PreemptLowerPriority"}, }, }, - "message": { + "overhead": { 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: "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "conditions": { + "topologySpreadConstraints": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", + Description: "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), }, }, }, }, }, - "instance": { + "setHostnameAsFQDN": { 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: "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.", + Type: []string{"boolean"}, + Format: "", }, }, - "ignoreReconciliation": { + "os": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", + Description: "Specifies the OS of the containers in the pod.", + Ref: ref("k8s.io/api/core/v1.PodOS"), + }, + }, + "hostUsers": { + SchemaProps: spec.SchemaProps{ + Description: "Use the host's user namespace.", Type: []string{"boolean"}, Format: "", }, }, - "clusterRef": { + "schedulingGates": { 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: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PodSchedulingGate"), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { + "resourceClaims": { SchemaProps: spec.SchemaProps{ - Description: "The virtual cluster instance metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PodResourceClaim"), + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -23560,13 +24037,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref common.Referenc Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "useProjectGitCredentials": { - 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: "", - }, - }, }, }, }, @@ -23584,7 +24054,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall "name": { SchemaProps: spec.SchemaProps{ Description: "Name is the name of the provider. This can also be an url.", - Default: "", Type: []string{"string"}, Format: "", }, @@ -23620,7 +24089,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall }, }, }, - Required: []string{"name"}, }, }, Dependencies: []string{ @@ -23681,35 +24149,10 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "provider": { - SchemaProps: spec.SchemaProps{ - Description: "Provider holds the DevPod provider configuration", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), - }, - }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateRef is a reference to the space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "spaceTemplate": { + "kubernetes": { SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate is the inline template for a space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "virtualClusterTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateRef is a reference to the virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "virtualClusterTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "Kubernetes holds the definition for kubernetes based workspaces", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec"), }, }, "workspaceEnv": { @@ -23727,21 +24170,6 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref }, }, }, - "initEnv": { - SchemaProps: spec.SchemaProps{ - Description: "InitEnv are environment variables that should be available during the initialization phase of the created workspace.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, - }, - }, "instanceTemplate": { SchemaProps: spec.SchemaProps{ Description: "InstanceTemplate holds the workspace instance template", @@ -23749,47 +24177,23 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition"), }, }, - "useProjectGitCredentials": { - SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - "useProjectSSHCredentials": { - SchemaProps: spec.SchemaProps{ - Description: "UseProjectSSHCredentials specifies if the project ssh credentials should be used instead of local ones for this workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - "gitCloneStrategy": { - SchemaProps: spec.SchemaProps{ - Description: "GitCloneStrategy specifies how git based workspace are being cloned. Can be \"\" (full, default), treeless, blobless or shallow\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"", "blobless", "shallow", "treeless"}, - }, - }, "credentialForwarding": { SchemaProps: spec.SchemaProps{ Description: "CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace", Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding"), }, }, - "preventWakeUpOnConnection": { + "provider": { SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", + Description: "Provider holds the legacy VM provider configuration\n\nDeprecated: use fields on template instead", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), }, }, }, - Required: []string{"provider"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"}, } } @@ -23979,6 +24383,33 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.Refere } } +func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "The pods metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata", "k8s.io/api/core/v1.PersistentVolumeClaimSpec"}, + } +} + func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24142,7 +24573,7 @@ func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallb } } -func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_GitProjectCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -24150,14 +24581,14 @@ func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) com Properties: map[string]spec.Schema{ "token": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the token to use for authentication.", + Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", Type: []string{"string"}, Format: "", }, }, "tokenSecretRef": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use for token authentication. Will be used if `Token` is not provided.", + Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), }, }, @@ -24169,6 +24600,32 @@ func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) com } } +func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "http": { + SchemaProps: spec.SchemaProps{ + Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + }, + }, + "ssh": { + SchemaProps: spec.SchemaProps{ + Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"}, + } +} + func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24947,6 +25404,13 @@ func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) c Format: "", }, }, + "devPodWorkspace": { + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspace holds the namespace pattern to use for DevPod workspaces", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -25623,786 +26087,242 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common }, "requireTemplate": { SchemaProps: spec.SchemaProps{ - Description: "RequireTemplate configures if a template is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), - }, - }, - "requirePreset": { - SchemaProps: spec.SchemaProps{ - Description: "RequirePreset configures if a preset is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), - }, - }, - "members": { - SchemaProps: spec.SchemaProps{ - Description: "Members are the users and teams that are part of this project", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), - }, - }, - }, - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "namespacePattern": { - SchemaProps: spec.SchemaProps{ - Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), - }, - }, - "argoCD": { - SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), - }, - }, - "vault": { - SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), - }, - }, - "rancher": { - SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), - }, - }, - "devPod": { - SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, - } -} - -func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "quotas": { - SchemaProps: spec.SchemaProps{ - Description: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "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"), - }, - }, - "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"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"}, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "limit": { - SchemaProps: spec.SchemaProps{ - Description: "Limit is the amount limited, copied from spec.quotas.project", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "used": { - SchemaProps: spec.SchemaProps{ - Description: "Used is the amount currently used across all clusters", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "clusters": { - SchemaProps: spec.SchemaProps{ - Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "used": { - SchemaProps: spec.SchemaProps{ - Description: "Used is the amount currently used. Maps resource name, such as pods, to their used amount.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "limit": { - SchemaProps: spec.SchemaProps{ - Description: "Limit is the amount limited per user / team", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "used": { - SchemaProps: spec.SchemaProps{ - Description: "Used is the used amount per user / team", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), - }, - }, - "clusters": { - SchemaProps: spec.SchemaProps{ - Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"}, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "users": { - SchemaProps: spec.SchemaProps{ - Description: "Users is a mapping of users to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, - "teams": { - SchemaProps: spec.SchemaProps{ - Description: "Teams is a mapping of teams to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_Quotas(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "project": { - SchemaProps: spec.SchemaProps{ - Description: "Project holds the quotas for the whole project", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "User holds the quotas per user / team", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the Rancher Project Integration is enabled for this project.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "projectRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProjectRef defines references to rancher project, required for syncMembers and syncVirtualClusters.syncMembers", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef"), - }, - }, - "importVirtualClusters": { - SchemaProps: spec.SchemaProps{ - Description: "ImportVirtualClusters defines settings to import virtual clusters to Rancher on creation", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec"), - }, - }, - "syncMembers": { - SchemaProps: spec.SchemaProps{ - Description: "SyncMembers defines settings to sync Rancher project members to the loft project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"}, - } -} - -func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster defines the Rancher cluster ID Needs to be the same id within Loft", - Type: []string{"string"}, - Format: "", - }, - }, - "project": { - SchemaProps: spec.SchemaProps{ - Description: "Project defines the Rancher project ID", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RequirePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "If true, all users within the project will not be allowed to create a new instance without a preset. By default, all users are allowed to create a new instance without a preset.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "If true, all users within the project will be allowed to create a new instance without a template. By default, only admins are allowed to create a new instance without a template.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_Runner(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Runner holds the runner information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + 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"), }, }, - "metadata": { + "requirePreset": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), }, }, - "spec": { + "members": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerSpec"), + Description: "Members are the users and teams that are part of this project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), + }, + }, + }, }, }, - "status": { + "access": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerStatus"), + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { + "namespacePattern": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", - Type: []string{"string"}, - Format: "", + 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"), }, }, - "namespace": { + "argoCD": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding the space", - Type: []string{"string"}, - Format: "", + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), }, }, - "persistentVolumeClaimTemplate": { + "vault": { 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"), + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), }, }, - "podTemplate": { + "rancher": { 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"), + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), }, }, - "serviceTemplate": { + "devPod": { SchemaProps: spec.SchemaProps{ - Description: "ServiceTemplate holds additional options for the service", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate"), + Description: "DevPod holds DevPod specific configuration for project", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplate"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } -func schema_pkg_apis_storage_v1_RunnerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RunnerList contains a list of Runner", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { + "quotas": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Quotas holds the quota status", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Runner", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds the template metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Project is the quota status for the whole project", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject"), }, }, - "spec": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Spec holds the template spec", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec"), + Description: "User is the quota status for each user / team. An example status could look like this: status:\n quotas:\n user:\n limit:\n pods: \"10\"\n spaces: \"5\"\n users:\n admin:\n used:\n spaces: \"3\" # <- calculated in our apiserver\n pods: \"8\" # <- the sum calculated from clusters\n clusters:\n cluster-1: # <- populated by agent from cluster-1\n users:\n admin:\n pods: \"3\"\n cluster-2:\n users:\n admin:\n pods: \"5\"", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPersistentVolumeClaimTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser"}, } } -func schema_pkg_apis_storage_v1_RunnerPersistentVolumeClaimTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accessModes": { + "limit": { SchemaProps: spec.SchemaProps{ - Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Limit is the amount limited, copied from spec.quotas.project", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", Type: []string{"string"}, Format: "", - Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, }, }, }, }, }, - "storageClassName": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", - Type: []string{"string"}, - Format: "", + Description: "Used is the amount currently used across all clusters", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "storageSize": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "storageSize is the size of the storage to reserve for the pvc", - Type: []string{"string"}, - Format: "", + Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, } } -func schema_pkg_apis_storage_v1_RunnerPodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata holds the template metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), - }, - }, - "spec": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Spec holds the template spec", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplateSpec"), + Description: "Used is the amount currently used. Maps resource name, such as pods, to their used amount.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerPodTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "image": { - SchemaProps: spec.SchemaProps{ - Description: "Runner pod image to use other than default", - Type: []string{"string"}, - Format: "", - }, - }, - "resource": { - SchemaProps: spec.SchemaProps{ - Description: "Resources requirements", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), - }, - }, - "envFrom": { - SchemaProps: spec.SchemaProps{ - Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvFromSource"), - }, - }, - }, - }, - }, - "env": { - SchemaProps: spec.SchemaProps{ - Description: "List of environment variables to set in the container. Cannot be updated.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), - }, - }, - }, - }, - }, - "nodeSelector": { + "limit": { SchemaProps: spec.SchemaProps{ - Description: "Set the NodeSelector for the Runner Pod", + Description: "Limit is the amount limited per user / team", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -26416,77 +26336,129 @@ func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallba }, }, }, - "affinity": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Set the Affinity for the Runner Pod", - Ref: ref("k8s.io/api/core/v1.Affinity"), + Description: "Used is the used amount per user / team", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), }, }, - "tolerations": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Set the Tolerations for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Toleration"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"), }, }, }, }, }, - "volumeMounts": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed"}, + } +} + +func schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "users": { SchemaProps: spec.SchemaProps{ - Description: "Set Volume Mounts for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Users is a mapping of users to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - "volumes": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Set Volumes for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Teams is a mapping of teams to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Volume"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - "initContainers": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_Quotas(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "project": { SchemaProps: spec.SchemaProps{ - Description: "Set up Init Containers for the Runner", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Project holds the quotas for the whole project", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Container"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "hostAliases": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Set host aliases for the Runner Pod", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "User holds the quotas per user / team", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HostAlias"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -26495,70 +26467,69 @@ func schema_pkg_apis_storage_v1_RunnerPodTemplateSpec(ref common.ReferenceCallba }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.Volume", "k8s.io/api/core/v1.VolumeMount"}, } } -func schema_pkg_apis_storage_v1_RunnerRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "runner": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Runner is the connected runner the workspace will be created in", - Type: []string{"string"}, + Description: "Enabled indicates if the Rancher Project Integration is enabled for this project.", + Type: []string{"boolean"}, Format: "", }, }, - }, - }, - }, - } -} - -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": { + "projectRef": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds the template metadata", + 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.TemplateMetadata"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef"), }, }, - "spec": { + "importVirtualClusters": { + SchemaProps: spec.SchemaProps{ + Description: "ImportVirtualClusters defines settings to import virtual clusters to Rancher on creation", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec"), + }, + }, + "syncMembers": { SchemaProps: spec.SchemaProps{ - Description: "Spec holds the template spec", + 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.RunnerServiceTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerServiceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec"}, } } -func schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "cluster": { 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.", + Description: "Cluster defines the Rancher cluster ID Needs to be the same id within Loft", + Type: []string{"string"}, + Format: "", + }, + }, + "project": { + SchemaProps: spec.SchemaProps{ + Description: "Project defines the Rancher project ID", Type: []string{"string"}, Format: "", - Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, }, }, }, @@ -26567,154 +26538,60 @@ func schema_pkg_apis_storage_v1_RunnerServiceTemplateSpec(ref common.ReferenceCa } } -func schema_pkg_apis_storage_v1_RunnerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RequirePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", - }, - }, - "networkPeerName": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerName is the network peer name used to connect directly to the runner", - Type: []string{"string"}, - Format: "", - }, - }, - "endpoint": { - SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the hostname used to connect directly to the runner", - Type: []string{"string"}, - Format: "", - }, - }, - "clusterRef": { - SchemaProps: spec.SchemaProps{ - Description: "If ClusterRef is defined, Loft will schedule the runner on the given cluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef"), - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "unusable": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no DevPod workspaces can be scheduled on this runner.", + 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: "", }, }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_RunnerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - 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: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_SSHProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "token": { + "runner": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the private ssh key to use for authentication, this is a base64 encoded string.", + Description: "Runner is the connected runner the workspace will be created in", Type: []string{"string"}, Format: "", }, }, - "tokenSecretRef": { - SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use as private ssh key for authentication. Will be used if `Token` is not provided.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), - }, - }, }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, } } @@ -29905,6 +29782,38 @@ func schema_pkg_apis_storage_v1_WorkspaceRef(ref common.ReferenceCallback) commo } } +func schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster is the reference to the cluster holding this workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"), + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster is the reference to the virtual cluster holding this workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"), + }, + }, + "space": { + SchemaProps: spec.SchemaProps{ + Description: "Space is the reference to the space holding this workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"}, + } +} + func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -29941,6 +29850,81 @@ func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallba } } +func schema_pkg_apis_storage_v1_WorkspaceTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster is the reference to the cluster holding this workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster is the reference to the virtual cluster holding this workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"}, + } +} + +func schema_pkg_apis_storage_v1_WorkspaceTargetName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the target", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the object", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace within the cluster.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + func schema_pkg_apis_ui_v1_NavBarButton(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -31014,10 +30998,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31179,10 +31162,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31281,10 +31263,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32682,10 +32663,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -71193,3 +71173,272 @@ func schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref commo "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } + +func schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerMetrics sets resource usage metrics of a container.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Container name corresponding to the one from pod.spec.containers.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "usage": { + SchemaProps: spec.SchemaProps{ + Description: "The memory usage is the memory working set.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + }, + Required: []string{"name", "usage"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeMetrics sets resource usage metrics of a node.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "window": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "usage": { + SchemaProps: spec.SchemaProps{ + Description: "The memory usage is the memory working set.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + }, + Required: []string{"timestamp", "window", "usage"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeMetricsList is a list of NodeMetrics.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "List of node metrics.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics"}, + } +} + +func schema_pkg_apis_metrics_v1beta1_PodMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodMetrics sets resource usage metrics of a pod.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "timestamp": { + SchemaProps: spec.SchemaProps{ + Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "window": { + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), + }, + }, + "containers": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Metrics for all containers are collected within the same time window.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), + }, + }, + }, + }, + }, + }, + Required: []string{"timestamp", "window", "containers"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, + } +} + +func schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodMetricsList is a list of PodMetrics.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "List of pod metrics.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics"}, + } +} diff --git a/pkg/product/strings.go b/pkg/product/strings.go index a04d9e09..0bfeeadc 100644 --- a/pkg/product/strings.go +++ b/pkg/product/strings.go @@ -12,7 +12,7 @@ func LoginCmd() string { case licenseapi.DevPodPro: return "devpod login" case licenseapi.VClusterPro: - return "vcluster login" + return "vcluster platform login" case licenseapi.Loft: } diff --git a/pkg/token/token.go b/pkg/token/token.go index c4915f9f..57030d90 100644 --- a/pkg/token/token.go +++ b/pkg/token/token.go @@ -1,6 +1,9 @@ package token -import storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + "k8s.io/apiserver/pkg/authentication/user" +) type PrivateClaims struct { Loft Loft `json:"loft.sh,omitempty"` @@ -17,6 +20,8 @@ type Loft struct { Kind string `json:"kind,omitempty"` // The generation of the token Gen int64 `json:"gen,omitempty"` + // The requester name of the token + OriginalRequester *user.DefaultInfo `json:"originalRequester,omitempty"` // The scope of the token if there is any Scope *storagev1.AccessKeyScope `json:"scope,omitempty"` } From 411fc052887580cc10a209e07a192494bf6ed8cd Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Tue, 1 Apr 2025 04:52:34 +0000 Subject: [PATCH 17/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 +- pkg/apis/management/install/install.go | 1 + .../install/zz_generated.api.register.go | 1 + pkg/apis/management/types.go | 10 + .../devpodworkspaceinstance_download_types.go | 13 + ...podworkspaceinstance_troubleshoot_types.go | 4 + .../v1/devpodworkspaceinstance_types.go | 140 +- pkg/apis/management/v1/options.go | 12 + .../v1/zz_generated.api.register.go | 15 + .../management/v1/zz_generated.conversion.go | 208 +- .../management/v1/zz_generated.deepcopy.go | 178 +- .../management/zz_generated.api.register.go | 70 +- pkg/apis/management/zz_generated.deepcopy.go | 178 +- .../v1/devpodworkspaceinstance_types.go | 143 + .../v1/devpodworkspacetemplate_types.go | 134 +- pkg/apis/storage/v1/zz_generated.deepcopy.go | 349 +- pkg/devpod/platformoptions.go | 17 +- pkg/openapi/zz_generated.openapi.go | 4110 ++++++++++------- 19 files changed, 3229 insertions(+), 2360 deletions(-) create mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_download_types.go diff --git a/go.mod b/go.mod index 6736162a..5f937194 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 - github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.1 + github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.25 github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.35.1 diff --git a/go.sum b/go.sum index 05735da8..b29c7bf0 100644 --- a/go.sum +++ b/go.sum @@ -107,8 +107,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 h1:om1MqUdW84ZQc0GMGGgFfPI6xpTbrF+6DwKVq+76R44= github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.1 h1:npDLSFyLIyqHtzSb3O9s8E5mpt3S7KGvQb+tepGYc8I= -github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.1/go.mod h1:UteiUdc6QeGt2uXIo5K5qlReRa366GbPY5QdDuPyFCs= +github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.25 h1:ZmHUIWlss9SUvMwxwI10lq5sirvyvaScomFDgT7pNys= +github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.25/go.mod h1:UteiUdc6QeGt2uXIo5K5qlReRa366GbPY5QdDuPyFCs= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 9d1b32c5..12486343 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -29,6 +29,7 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserQuotasOptions{}, &management.DevPodWorkspaceInstanceLogOptions{}, &management.DevPodWorkspaceInstanceTasksOptions{}, + &management.DevPodWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index e6d42c63..74272258 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -55,6 +55,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.DevPodWorkspaceInstance{}, &management.DevPodWorkspaceInstanceList{}, &management.DevPodWorkspaceInstanceCancel{}, + &management.DevPodWorkspaceInstanceDownload{}, &management.DevPodWorkspaceInstanceLog{}, &management.DevPodWorkspaceInstanceStop{}, &management.DevPodWorkspaceInstanceTasks{}, diff --git a/pkg/apis/management/types.go b/pkg/apis/management/types.go index ba1ecc35..6167c8fb 100644 --- a/pkg/apis/management/types.go +++ b/pkg/apis/management/types.go @@ -152,3 +152,13 @@ type DevPodWorkspaceInstanceTasksOptions struct { // +optional TaskID string `json:"taskID,omitempty"` } + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceDownloadOptions struct { + metav1.TypeMeta `json:",inline"` + + // Path is the path to download + // +optional + Path string `json:"path,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go new file mode 100644 index 00000000..9bef5512 --- /dev/null +++ b/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go @@ -0,0 +1,13 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type DevPodWorkspaceInstanceDownload struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go index 33edb58a..ad55ee35 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go @@ -34,6 +34,10 @@ type DevPodWorkspaceInstanceTroubleshoot struct { // +optional PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` + // Netmaps is a list of netmaps that are linked to the workspace. + // +optional + Netmaps []string `json:"netmaps,omitempty"` + // Errors is a list of errors that occurred while trying to collect // informations for troubleshooting. // +optional diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go index 504ec55f..6335b465 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/management/v1/devpodworkspaceinstance_types.go @@ -4,9 +4,7 @@ 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" - corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // +genclient @@ -26,6 +24,7 @@ import ( // +subresource:request=DevPodWorkspaceInstanceLog,path=log,kind=DevPodWorkspaceInstanceLog,rest=DevPodWorkspaceInstanceLogREST // +subresource:request=DevPodWorkspaceInstanceTasks,path=tasks,kind=DevPodWorkspaceInstanceTasks,rest=DevPodWorkspaceInstanceTasksREST // +subresource:request=DevPodWorkspaceInstanceCancel,path=cancel,kind=DevPodWorkspaceInstanceCancel,rest=DevPodWorkspaceInstanceCancelREST +// +subresource:request=DevPodWorkspaceInstanceDownload,path=download,kind=DevPodWorkspaceInstanceDownload,rest=DevPodWorkspaceInstanceDownloadREST type DevPodWorkspaceInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -47,143 +46,6 @@ type DevPodWorkspaceInstanceStatus struct { // in the front end. // +optional SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` - - // Kubernetes is the status of the workspace on kubernetes - // +optional - Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` -} - -type DevPodWorkspaceInstanceKubernetesStatus struct { - // PodStatus is the status of the pod that is running the workspace - // +optional - PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` - - // PersistentVolumeClaimStatus is the pvc that is used to store the workspace - // +optional - PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` -} - -type DevPodWorkspaceInstancePodStatus struct { - // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. - // The conditions array, the reason and message fields, and the individual container status - // arrays contain more detail about the pod's status. - // There are five possible phase values: - // - // Pending: The pod has been accepted by the Kubernetes system, but one or more of the - // container images has not been created. This includes time before being scheduled as - // well as time spent downloading images over the network, which could take a while. - // Running: The pod has been bound to a node, and all of the containers have been created. - // At least one container is still running, or is in the process of starting or restarting. - // Succeeded: All containers in the pod have terminated in success, and will not be restarted. - // Failed: All containers in the pod have terminated, and at least one container has - // terminated in failure. The container either exited with non-zero status or was terminated - // by the system. - // Unknown: For some reason the state of the pod could not be obtained, typically due to an - // error in communicating with the host of the pod. - // - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - // +optional - Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` - // Current service state of pod. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` - // A human readable message indicating details about why the pod is in this condition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - // A brief CamelCase message indicating details about why the pod is in this state. - // e.g. 'Evicted' - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // Statuses of init containers in this pod. The most recent successful non-restartable - // init container will have ready = true, the most recently started container will have - // startTime set. - // Each init container in the pod should have at most one status in this list, - // and all statuses should be for containers in the pod. - // However this is not enforced. - // If a status for a non-existent container is present in the list, or the list has duplicate names, - // the behavior of various Kubernetes components is not defined and those statuses might be - // ignored. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status - // +listType=atomic - InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` - // Statuses of containers in this pod. - // Each container in the pod should have at most one status in this list, - // and all statuses should be for containers in the pod. - // However this is not enforced. - // If a status for a non-existent container is present in the list, or the list has duplicate names, - // the behavior of various Kubernetes components is not defined and those statuses might be - // ignored. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - // +optional - // +listType=atomic - ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` - // NodeName is the name of the node that is running the workspace - // +optional - NodeName string `json:"nodeName,omitempty"` - // Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running. - // +optional - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` - // ContainerResources are the resources of the containers that are running the workspace - // +optional - ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` - // ContainerMetrics are the metrics of the pod that is running the workspace - // +optional - ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` -} - -type DevPodWorkspaceInstanceContainerResource struct { - // Name is the name of the container - // +optional - Name string `json:"name,omitempty"` - // Resources is the resources of the container - // +optional - Resources corev1.ResourceRequirements `json:"resources,omitempty"` -} - -type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { - // phase represents the current phase of PersistentVolumeClaim. - // +optional - Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` - // capacity represents the actual resources of the underlying volume. - // +optional - Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` - // conditions is the current Condition of persistent volume claim. If underlying persistent volume is being - // resized then the Condition will be set to 'Resizing'. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` - // Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound. - // +optional - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` -} - -type DevPodWorkspaceInstanceEvent struct { - // This should be a short, machine understandable string that gives the reason - // for the transition into the object's current status. - // TODO: provide exact specification for format. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` - - // A human-readable description of the status of this operation. - // TODO: decide on maximum length. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` - - // The time at which the most recent occurrence of this event was recorded. - // +optional - LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` - - // Type of this event (Normal, Warning), new types could be added in the future - // +optional - Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` } func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { diff --git a/pkg/apis/management/v1/options.go b/pkg/apis/management/v1/options.go index 94ac46e2..11692ea1 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -170,6 +170,17 @@ type DevPodWorkspaceInstanceTasksOptions struct { TaskID string `json:"taskID,omitempty"` } +// +k8s:conversion-gen:explicit-from=net/url.Values +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevPodWorkspaceInstanceDownloadOptions struct { + metav1.TypeMeta `json:",inline"` + + // Path is the path to download + // +optional + Path string `json:"path,omitempty"` +} + func InstallOptions(scheme *runtime.Scheme) error { return addKnownOptionsTypes(scheme) } @@ -186,6 +197,7 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &BackupApplyOptions{}, &DevPodWorkspaceInstanceLogOptions{}, &DevPodWorkspaceInstanceTasksOptions{}, + &DevPodWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 1b24746e..ce1c7d66 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -46,6 +46,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &DevPodWorkspaceInstance{}, &DevPodWorkspaceInstanceList{}, &DevPodWorkspaceInstanceCancel{}, + &DevPodWorkspaceInstanceDownload{}, &DevPodWorkspaceInstanceLog{}, &DevPodWorkspaceInstanceStop{}, &DevPodWorkspaceInstanceTasks{}, @@ -220,6 +221,12 @@ var ( nil, management.NewDevPodWorkspaceInstanceCancelREST, ), + builders.NewApiResourceWithStorage( + management.InternalDevPodWorkspaceInstanceDownloadREST, + func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, // Register versioned resource + nil, + management.NewDevPodWorkspaceInstanceDownloadREST, + ), builders.NewApiResourceWithStorage( management.InternalDevPodWorkspaceInstanceLogREST, func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, // Register versioned resource @@ -625,6 +632,14 @@ type DevPodWorkspaceInstanceCancelList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspaceInstanceDownloadList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceDownload `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 9b6e1429..9d6e5b75 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -21,7 +21,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" - v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) func init() { @@ -971,33 +970,33 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceContainerResource)(nil), (*management.DevPodWorkspaceInstanceContainerResource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(a.(*DevPodWorkspaceInstanceContainerResource), b.(*management.DevPodWorkspaceInstanceContainerResource), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownload)(nil), (*management.DevPodWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(a.(*DevPodWorkspaceInstanceDownload), b.(*management.DevPodWorkspaceInstanceDownload), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceContainerResource)(nil), (*DevPodWorkspaceInstanceContainerResource)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(a.(*management.DevPodWorkspaceInstanceContainerResource), b.(*DevPodWorkspaceInstanceContainerResource), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownload)(nil), (*DevPodWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(a.(*management.DevPodWorkspaceInstanceDownload), b.(*DevPodWorkspaceInstanceDownload), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceEvent)(nil), (*management.DevPodWorkspaceInstanceEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(a.(*DevPodWorkspaceInstanceEvent), b.(*management.DevPodWorkspaceInstanceEvent), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownloadList)(nil), (*management.DevPodWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(a.(*DevPodWorkspaceInstanceDownloadList), b.(*management.DevPodWorkspaceInstanceDownloadList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceEvent)(nil), (*DevPodWorkspaceInstanceEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(a.(*management.DevPodWorkspaceInstanceEvent), b.(*DevPodWorkspaceInstanceEvent), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownloadList)(nil), (*DevPodWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(a.(*management.DevPodWorkspaceInstanceDownloadList), b.(*DevPodWorkspaceInstanceDownloadList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceKubernetesStatus)(nil), (*management.DevPodWorkspaceInstanceKubernetesStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(a.(*DevPodWorkspaceInstanceKubernetesStatus), b.(*management.DevPodWorkspaceInstanceKubernetesStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownloadOptions)(nil), (*management.DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(a.(*DevPodWorkspaceInstanceDownloadOptions), b.(*management.DevPodWorkspaceInstanceDownloadOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceKubernetesStatus)(nil), (*DevPodWorkspaceInstanceKubernetesStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(a.(*management.DevPodWorkspaceInstanceKubernetesStatus), b.(*DevPodWorkspaceInstanceKubernetesStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownloadOptions)(nil), (*DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(a.(*management.DevPodWorkspaceInstanceDownloadOptions), b.(*DevPodWorkspaceInstanceDownloadOptions), scope) }); err != nil { return err } @@ -1041,26 +1040,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), (*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(a.(*DevPodWorkspaceInstancePersistentVolumeClaimStatus), b.(*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), (*DevPodWorkspaceInstancePersistentVolumeClaimStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(a.(*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus), b.(*DevPodWorkspaceInstancePersistentVolumeClaimStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstancePodStatus)(nil), (*management.DevPodWorkspaceInstancePodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(a.(*DevPodWorkspaceInstancePodStatus), b.(*management.DevPodWorkspaceInstancePodStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstancePodStatus)(nil), (*DevPodWorkspaceInstancePodStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(a.(*management.DevPodWorkspaceInstancePodStatus), b.(*DevPodWorkspaceInstancePodStatus), 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) }); err != nil { @@ -3146,6 +3125,11 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceDownloadOptions), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceLogOptions), scope) }); err != nil { @@ -5613,74 +5597,84 @@ func Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceI return autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(in *DevPodWorkspaceInstanceContainerResource, out *management.DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { - out.Name = in.Name - out.Resources = in.Resources +func autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta return nil } -// Convert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(in *DevPodWorkspaceInstanceContainerResource, out *management.DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceContainerResource_To_management_DevPodWorkspaceInstanceContainerResource(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(in *management.DevPodWorkspaceInstanceContainerResource, out *DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { - out.Name = in.Name - out.Resources = in.Resources +func autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta return nil } -// Convert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(in *management.DevPodWorkspaceInstanceContainerResource, out *DevPodWorkspaceInstanceContainerResource, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceContainerResource_To_v1_DevPodWorkspaceInstanceContainerResource(in, out, s) +// Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(in *DevPodWorkspaceInstanceEvent, out *management.DevPodWorkspaceInstanceEvent, s conversion.Scope) error { - out.Reason = in.Reason - out.Message = in.Message - out.LastTimestamp = in.LastTimestamp - out.Type = in.Type +func autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevPodWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(in *DevPodWorkspaceInstanceEvent, out *management.DevPodWorkspaceInstanceEvent, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceEvent_To_management_DevPodWorkspaceInstanceEvent(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(in *management.DevPodWorkspaceInstanceEvent, out *DevPodWorkspaceInstanceEvent, s conversion.Scope) error { - out.Reason = in.Reason - out.Message = in.Message - out.LastTimestamp = in.LastTimestamp - out.Type = in.Type +func autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevPodWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in, out, s) +} + +func autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + out.Path = in.Path return nil } -// Convert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(in *management.DevPodWorkspaceInstanceEvent, out *DevPodWorkspaceInstanceEvent, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceEvent_To_v1_DevPodWorkspaceInstanceEvent(in, out, s) +// Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. +func Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + return autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(in *DevPodWorkspaceInstanceKubernetesStatus, out *management.DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { - out.PodStatus = (*management.DevPodWorkspaceInstancePodStatus)(unsafe.Pointer(in.PodStatus)) - out.PersistentVolumeClaimStatus = (*management.DevPodWorkspaceInstancePersistentVolumeClaimStatus)(unsafe.Pointer(in.PersistentVolumeClaimStatus)) +func autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + out.Path = in.Path return nil } -// Convert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(in *DevPodWorkspaceInstanceKubernetesStatus, out *management.DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceKubernetesStatus_To_management_DevPodWorkspaceInstanceKubernetesStatus(in, out, s) +// Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. +func Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + return autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(in *management.DevPodWorkspaceInstanceKubernetesStatus, out *DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { - out.PodStatus = (*DevPodWorkspaceInstancePodStatus)(unsafe.Pointer(in.PodStatus)) - out.PersistentVolumeClaimStatus = (*DevPodWorkspaceInstancePersistentVolumeClaimStatus)(unsafe.Pointer(in.PersistentVolumeClaimStatus)) +func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + // WARNING: Field TypeMeta does not have json tag, skipping. + + if values, ok := map[string][]string(*in)["path"]; ok && len(values) > 0 { + if err := runtime.Convert_Slice_string_To_string(&values, &out.Path, s); err != nil { + return err + } + } else { + out.Path = "" + } return nil } -// Convert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(in *management.DevPodWorkspaceInstanceKubernetesStatus, out *DevPodWorkspaceInstanceKubernetesStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceKubernetesStatus_To_v1_DevPodWorkspaceInstanceKubernetesStatus(in, out, s) +// Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in, out, s) } func autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { @@ -5794,70 +5788,6 @@ func Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { - out.Phase = corev1.PersistentVolumeClaimPhase(in.Phase) - out.Capacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.Capacity)) - out.Conditions = *(*[]corev1.PersistentVolumeClaimCondition)(unsafe.Pointer(&in.Conditions)) - out.Events = *(*[]management.DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { - out.Phase = corev1.PersistentVolumeClaimPhase(in.Phase) - out.Capacity = *(*corev1.ResourceList)(unsafe.Pointer(&in.Capacity)) - out.Conditions = *(*[]corev1.PersistentVolumeClaimCondition)(unsafe.Pointer(&in.Conditions)) - out.Events = *(*[]DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) - return nil -} - -// Convert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in *management.DevPodWorkspaceInstancePersistentVolumeClaimStatus, out *DevPodWorkspaceInstancePersistentVolumeClaimStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstancePersistentVolumeClaimStatus_To_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(in *DevPodWorkspaceInstancePodStatus, out *management.DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { - out.Phase = corev1.PodPhase(in.Phase) - out.Conditions = *(*[]corev1.PodCondition)(unsafe.Pointer(&in.Conditions)) - out.Message = in.Message - out.Reason = in.Reason - out.InitContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) - out.ContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) - out.NodeName = in.NodeName - out.Events = *(*[]management.DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) - out.ContainerResources = *(*[]management.DevPodWorkspaceInstanceContainerResource)(unsafe.Pointer(&in.ContainerResources)) - out.ContainerMetrics = *(*[]v1beta1.ContainerMetrics)(unsafe.Pointer(&in.ContainerMetrics)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(in *DevPodWorkspaceInstancePodStatus, out *management.DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstancePodStatus_To_management_DevPodWorkspaceInstancePodStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(in *management.DevPodWorkspaceInstancePodStatus, out *DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { - out.Phase = corev1.PodPhase(in.Phase) - out.Conditions = *(*[]corev1.PodCondition)(unsafe.Pointer(&in.Conditions)) - out.Message = in.Message - out.Reason = in.Reason - out.InitContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.InitContainerStatuses)) - out.ContainerStatuses = *(*[]corev1.ContainerStatus)(unsafe.Pointer(&in.ContainerStatuses)) - out.NodeName = in.NodeName - out.Events = *(*[]DevPodWorkspaceInstanceEvent)(unsafe.Pointer(&in.Events)) - out.ContainerResources = *(*[]DevPodWorkspaceInstanceContainerResource)(unsafe.Pointer(&in.ContainerResources)) - out.ContainerMetrics = *(*[]v1beta1.ContainerMetrics)(unsafe.Pointer(&in.ContainerMetrics)) - return nil -} - -// Convert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(in *management.DevPodWorkspaceInstancePodStatus, out *DevPodWorkspaceInstancePodStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstancePodStatus_To_v1_DevPodWorkspaceInstancePodStatus(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 @@ -5881,7 +5811,6 @@ func Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanc 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)) - out.Kubernetes = (*management.DevPodWorkspaceInstanceKubernetesStatus)(unsafe.Pointer(in.Kubernetes)) return nil } @@ -5893,7 +5822,6 @@ func Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInsta 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)) - out.Kubernetes = (*DevPodWorkspaceInstanceKubernetesStatus)(unsafe.Pointer(in.Kubernetes)) return nil } @@ -6115,6 +6043,7 @@ func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWork out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) + out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) return nil } @@ -6131,6 +6060,7 @@ func autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWork out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) + out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) return nil } diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index a07b6493..b1908956 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -15,7 +15,6 @@ import ( corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" - v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -2589,65 +2588,89 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { +func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { *out = *in - in.Resources.DeepCopyInto(&out.Resources) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. +func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceContainerResource) + out := new(DevPodWorkspaceInstanceDownload) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { *out = *in - in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. -func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceEvent) + out := new(DevPodWorkspaceInstanceDownloadList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { *out = *in - if in.PodStatus != nil { - in, out := &in.PodStatus, &out.PodStatus - *out = new(DevPodWorkspaceInstancePodStatus) - (*in).DeepCopyInto(*out) - } - if in.PersistentVolumeClaimStatus != nil { - in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus - *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) - (*in).DeepCopyInto(*out) - } + out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadOptions. +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceKubernetesStatus) + out := new(DevPodWorkspaceInstanceDownloadOptions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != 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) { *out = *in @@ -2765,101 +2788,6 @@ func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { - *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(corev1.ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePersistentVolumeClaimStatus. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]corev1.PodCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainerStatuses != nil { - in, out := &in.InitContainerStatuses, &out.InitContainerStatuses - *out = make([]corev1.ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerStatuses != nil { - in, out := &in.ContainerStatuses, &out.ContainerStatuses - *out = make([]corev1.ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerResources != nil { - in, out := &in.ContainerResources, &out.ContainerResources - *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerMetrics != nil { - in, out := &in.ContainerMetrics, &out.ContainerMetrics - *out = make([]v1beta1.ContainerMetrics, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstancePodStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { *out = *in @@ -2886,11 +2814,6 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan *out = new(clusterv1.SleepModeConfig) (*in).DeepCopyInto(*out) } - if in.Kubernetes != nil { - in, out := &in.Kubernetes, &out.Kubernetes - *out = new(DevPodWorkspaceInstanceKubernetesStatus) - (*in).DeepCopyInto(*out) - } return } @@ -3144,6 +3067,11 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspace (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Netmaps != nil { + in, out := &in.Netmaps, &out.Netmaps + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Errors != nil { in, out := &in.Errors, &out.Errors *out = make([]string, len(*in)) diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index d21f87f2..1172339a 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -23,7 +23,6 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apiserver/pkg/registry/generic" "k8s.io/apiserver/pkg/registry/rest" - metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) type NewRESTFunc func(factory managerfactory.SharedManagerFactory) rest.Storage @@ -670,8 +669,16 @@ var ( NewDevPodWorkspaceInstanceCancelREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDevPodWorkspaceInstanceCancelRESTFunc(Factory) } - NewDevPodWorkspaceInstanceCancelRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceLogREST = builders.NewInternalSubresource( + NewDevPodWorkspaceInstanceCancelRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceDownloadREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevPodWorkspaceInstanceDownload", "download", + func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, + ) + NewDevPodWorkspaceInstanceDownloadREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevPodWorkspaceInstanceDownloadRESTFunc(Factory) + } + NewDevPodWorkspaceInstanceDownloadRESTFunc NewRESTFunc + InternalDevPodWorkspaceInstanceLogREST = builders.NewInternalSubresource( "devpodworkspaceinstances", "DevPodWorkspaceInstanceLog", "log", func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, ) @@ -1274,6 +1281,7 @@ var ( InternalDevPodWorkspaceInstance, InternalDevPodWorkspaceInstanceStatus, InternalDevPodWorkspaceInstanceCancelREST, + InternalDevPodWorkspaceInstanceDownloadREST, InternalDevPodWorkspaceInstanceLogREST, InternalDevPodWorkspaceInstanceStopREST, InternalDevPodWorkspaceInstanceTasksREST, @@ -1386,8 +1394,6 @@ func Resource(resource string) schema.GroupResource { type AccessKeyType string type Level string -type PersistentVolumeClaimPhase string -type PodPhase string type RequestTarget string type Stage string @@ -1951,21 +1957,11 @@ type DevPodWorkspaceInstanceCancel struct { TaskID string `json:"taskId,omitempty"` } -type DevPodWorkspaceInstanceContainerResource struct { - Name string `json:"name,omitempty"` - Resources corev1.ResourceRequirements `json:"resources,omitempty"` -} - -type DevPodWorkspaceInstanceEvent struct { - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` - Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` - LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` - Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` -} +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceKubernetesStatus struct { - PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` - PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` +type DevPodWorkspaceInstanceDownload struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -1975,34 +1971,13 @@ type DevPodWorkspaceInstanceLog struct { metav1.ObjectMeta `json:"metadata,omitempty"` } -type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { - Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` - Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` - Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` -} - -type DevPodWorkspaceInstancePodStatus struct { - Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` - Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` - ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` - NodeName string `json:"nodeName,omitempty"` - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` - ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` - ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` -} - type DevPodWorkspaceInstanceSpec struct { storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` } type DevPodWorkspaceInstanceStatus struct { storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` - Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` + SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2049,6 +2024,7 @@ type DevPodWorkspaceInstanceTroubleshoot struct { Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` Pods []corev1.Pod `json:"pods,omitempty"` PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` + Netmaps []string `json:"netmaps,omitempty"` Errors []string `json:"errors,omitempty"` } @@ -2221,7 +2197,7 @@ type KioskStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2335,7 +2311,7 @@ type ObjectNames struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type OwnedAccessKey struct { @@ -4306,6 +4282,14 @@ type DevPodWorkspaceInstanceCancelList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DevPodWorkspaceInstanceDownloadList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevPodWorkspaceInstanceDownload `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 790f44e4..0629addd 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -15,7 +15,6 @@ import ( corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" runtime "k8s.io/apimachinery/pkg/runtime" - v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -2564,65 +2563,89 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { +func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { *out = *in - in.Resources.DeepCopyInto(&out.Resources) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. +func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceContainerResource) + out := new(DevPodWorkspaceInstanceDownload) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { *out = *in - in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. -func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceEvent) + out := new(DevPodWorkspaceInstanceDownloadList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { *out = *in - if in.PodStatus != nil { - in, out := &in.PodStatus, &out.PodStatus - *out = new(DevPodWorkspaceInstancePodStatus) - (*in).DeepCopyInto(*out) - } - if in.PersistentVolumeClaimStatus != nil { - in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus - *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) - (*in).DeepCopyInto(*out) - } + out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadOptions. +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceKubernetesStatus) + out := new(DevPodWorkspaceInstanceDownloadOptions) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != 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) { *out = *in @@ -2740,101 +2763,6 @@ func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { - *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(corev1.ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePersistentVolumeClaimStatus. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]corev1.PodCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainerStatuses != nil { - in, out := &in.InitContainerStatuses, &out.InitContainerStatuses - *out = make([]corev1.ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerStatuses != nil { - in, out := &in.ContainerStatuses, &out.ContainerStatuses - *out = make([]corev1.ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerResources != nil { - in, out := &in.ContainerResources, &out.ContainerResources - *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerMetrics != nil { - in, out := &in.ContainerMetrics, &out.ContainerMetrics - *out = make([]v1beta1.ContainerMetrics, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstancePodStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { *out = *in @@ -2861,11 +2789,6 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan *out = new(clusterv1.SleepModeConfig) (*in).DeepCopyInto(*out) } - if in.Kubernetes != nil { - in, out := &in.Kubernetes, &out.Kubernetes - *out = new(DevPodWorkspaceInstanceKubernetesStatus) - (*in).DeepCopyInto(*out) - } return } @@ -3119,6 +3042,11 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspace (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Netmaps != nil { + in, out := &in.Netmaps, &out.Netmaps + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Errors != nil { in, out := &in.Errors, &out.Errors *out = make([]string, len(*in)) diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go index 2dbec131..603dd475 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go @@ -2,7 +2,9 @@ package v1 import ( agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) var ( @@ -233,6 +235,147 @@ type DevPodWorkspaceInstanceStatus struct { // IgnoreReconciliation ignores reconciliation for this object // +optional IgnoreReconciliation bool `json:"ignoreReconciliation,omitempty"` + + // Kubernetes is the status of the workspace on kubernetes + // +optional + Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` +} + +type DevPodWorkspaceInstanceKubernetesStatus struct { + // Last time the condition transitioned from one status to another. + // +required + LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` + + // PodStatus is the status of the pod that is running the workspace + // +optional + PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` + + // PersistentVolumeClaimStatus is the pvc that is used to store the workspace + // +optional + PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` +} + +type DevPodWorkspaceInstancePodStatus struct { + // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. + // The conditions array, the reason and message fields, and the individual container status + // arrays contain more detail about the pod's status. + // There are five possible phase values: + // + // Pending: The pod has been accepted by the Kubernetes system, but one or more of the + // container images has not been created. This includes time before being scheduled as + // well as time spent downloading images over the network, which could take a while. + // Running: The pod has been bound to a node, and all of the containers have been created. + // At least one container is still running, or is in the process of starting or restarting. + // Succeeded: All containers in the pod have terminated in success, and will not be restarted. + // Failed: All containers in the pod have terminated, and at least one container has + // terminated in failure. The container either exited with non-zero status or was terminated + // by the system. + // Unknown: For some reason the state of the pod could not be obtained, typically due to an + // error in communicating with the host of the pod. + // + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + // +optional + Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` + // Current service state of pod. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` + // A human readable message indicating details about why the pod is in this condition. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` + // A brief CamelCase message indicating details about why the pod is in this state. + // e.g. 'Evicted' + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` + // Statuses of init containers in this pod. The most recent successful non-restartable + // init container will have ready = true, the most recently started container will have + // startTime set. + // Each init container in the pod should have at most one status in this list, + // and all statuses should be for containers in the pod. + // However this is not enforced. + // If a status for a non-existent container is present in the list, or the list has duplicate names, + // the behavior of various Kubernetes components is not defined and those statuses might be + // ignored. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status + // +listType=atomic + InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` + // Statuses of containers in this pod. + // Each container in the pod should have at most one status in this list, + // and all statuses should be for containers in the pod. + // However this is not enforced. + // If a status for a non-existent container is present in the list, or the list has duplicate names, + // the behavior of various Kubernetes components is not defined and those statuses might be + // ignored. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + // +optional + // +listType=atomic + ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` + // NodeName is the name of the node that is running the workspace + // +optional + NodeName string `json:"nodeName,omitempty"` + // Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running. + // +optional + Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` + // ContainerResources are the resources of the containers that are running the workspace + // +optional + ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` + // ContainerMetrics are the metrics of the pod that is running the workspace + // +optional + ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` +} + +type DevPodWorkspaceInstanceContainerResource struct { + // Name is the name of the container + // +optional + Name string `json:"name,omitempty"` + // Resources is the resources of the container + // +optional + Resources corev1.ResourceRequirements `json:"resources,omitempty"` +} + +type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { + // phase represents the current phase of PersistentVolumeClaim. + // +optional + Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` + // capacity represents the actual resources of the underlying volume. + // +optional + Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` + // conditions is the current Condition of persistent volume claim. If underlying persistent volume is being + // resized then the Condition will be set to 'Resizing'. + // +optional + // +patchMergeKey=type + // +patchStrategy=merge + // +listType=map + // +listMapKey=type + Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` + // Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound. + // +optional + Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` +} + +type DevPodWorkspaceInstanceEvent struct { + // This should be a short, machine understandable string that gives the reason + // for the transition into the object's current status. + // TODO: provide exact specification for format. + // +optional + Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` + + // A human-readable description of the status of this operation. + // TODO: decide on maximum length. + // +optional + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` + + // The time at which the most recent occurrence of this event was recorded. + // +optional + LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` + + // Type of this event (Normal, Warning), new types could be added in the future + // +optional + Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` } type WorkspaceStatusResult struct { diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go index 7ddbddeb..4696eff3 100644 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go @@ -157,6 +157,101 @@ type DevPodWorkspacePodTemplate struct { Spec DevPodWorkspacePodTemplateSpec `json:"spec,omitempty"` } +// DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements. +type DevPodWorkspaceResourceRequirements struct { + // Limits describes the maximum amount of compute resources allowed. + // +optional + Limits map[corev1.ResourceName]string `json:"limits,omitempty"` + + // Requests describes the minimum amount of compute resources required. + // +optional + Requests map[corev1.ResourceName]string `json:"requests,omitempty"` + + // Claims lists the names of resources, defined in spec.resourceClaims, + // that are used by this container. + // +optional + Claims []corev1.ResourceClaim `json:"claims,omitempty"` +} + +// // DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container. +type DevPodWorkspaceContainer struct { + // Name of the container specified as a DNS_LABEL. + Name string `json:"name"` + // Container image name. + // +optional + Image string `json:"image,omitempty"` + // Entrypoint array. Not executed within a shell. + // +optional + // +listType=atomic + Command []string `json:"command,omitempty"` + // Arguments to the entrypoint. + // +optional + // +listType=atomic + Args []string `json:"args,omitempty"` + // Container's working directory. + // +optional + WorkingDir string `json:"workingDir,omitempty"` + // List of ports to expose from the container. Not specifying a port here + // +optional + Ports []corev1.ContainerPort `json:"ports,omitempty"` + // +optional + // +listType=atomic + EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` + // List of environment variables to set in the container. + // +optional + Env []corev1.EnvVar `json:"env,omitempty"` + // Compute Resources required by this container. + // +optional + Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + // Resources resize policy for the container. + // +optional + // +listType=atomic + ResizePolicy []corev1.ContainerResizePolicy `json:"resizePolicy,omitempty"` + // RestartPolicy defines the restart behavior of individual containers in a pod. + // +optional + RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"` + // Pod volumes to mount into the container's filesystem. + // +optional + VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` + // volumeDevices is the list of block devices to be used by the container. + // +optional + VolumeDevices []corev1.VolumeDevice `json:"volumeDevices,omitempty"` + // Periodic probe of container liveness. + // +optional + LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"` + // Periodic probe of container service readiness. + // +optional + ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"` + // StartupProbe indicates that the Pod has successfully initialized. + // +optional + StartupProbe *corev1.Probe `json:"startupProbe,omitempty"` + // Actions that the management system should take in response to container lifecycle events. + // +optional + Lifecycle *corev1.Lifecycle `json:"lifecycle,omitempty"` + // Optional: Path at which the file to which the container's termination message + // +optional + TerminationMessagePath string `json:"terminationMessagePath,omitempty"` + // Indicate how the termination message should be populated. File will use the contents of + // +optional + TerminationMessagePolicy corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` + // Image pull policy. + // +optional + ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` + // SecurityContext defines the security options the container should be run with. + // +optional + SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` + + // Whether this container should allocate a buffer for stdin in the container runtime. + // +optional + Stdin bool `json:"stdin,omitempty"` + // StdinOnce default is false + // +optional + StdinOnce bool `json:"stdinOnce,omitempty"` + // TTY default is false. + // +optional + TTY bool `json:"tty,omitempty"` +} + // DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec type DevPodWorkspacePodTemplateSpec struct { // List of volumes that can be mounted by containers belonging to the pod. @@ -165,11 +260,11 @@ type DevPodWorkspacePodTemplateSpec struct { // List of initialization containers belonging to the pod. // +optional - InitContainers []corev1.Container `json:"initContainers,omitempty"` + InitContainers []DevPodWorkspaceContainer `json:"initContainers,omitempty"` // List of containers belonging to the pod. // +optional - Containers []corev1.Container `json:"containers,omitempty"` + Containers []DevPodWorkspaceContainer `json:"containers,omitempty"` // Restart policy for all containers within the pod. // +optional @@ -319,7 +414,7 @@ type DevPodWorkspacePodTemplateSpec struct { // containers in the pod. It supports specifying Requests and Limits for // "cpu" and "memory" resource names only. ResourceClaims are not supported. // +optional - Resources *corev1.ResourceRequirements `json:"resources,omitempty"` + Resources *DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` } type DevPodWorkspaceVolumeClaimTemplate struct { @@ -328,7 +423,38 @@ type DevPodWorkspaceVolumeClaimTemplate struct { // +optional TemplateMetadata `json:"metadata,omitempty"` - Spec corev1.PersistentVolumeClaimSpec `json:"spec,omitempty"` + Spec DevPodWorkspaceVolumeClaimSpec `json:"spec,omitempty"` +} + +type DevPodWorkspaceVolumeClaimSpec struct { + // accessModes contains the desired access modes the volume should have. + // +optional + // +listType=atomic + AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` + // selector is a label query over volumes to consider for binding. + // +optional + Selector *metav1.LabelSelector `json:"selector,omitempty"` + // resources represents the minimum resources the volume should have. + // +optional + Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + // volumeName is the binding reference to the PersistentVolume backing this claim. + // +optional + VolumeName string `json:"volumeName,omitempty"` + // storageClassName is the name of the StorageClass required by the claim. + // +optional + StorageClassName *string `json:"storageClassName,omitempty"` + // volumeMode defines what type of volume is required by the claim. + // +optional + VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` + // dataSource field can be used to specify either: + // +optional + DataSource *corev1.TypedLocalObjectReference `json:"dataSource,omitempty"` + // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty + // +optional + DataSourceRef *corev1.TypedObjectReference `json:"dataSourceRef,omitempty"` + // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. + // +optional + VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"` } // +enum diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index f5f9715d..f78cb679 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -9,7 +9,9 @@ import ( storagev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" + v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -1697,6 +1699,99 @@ func (in *DevPodProviderSource) DeepCopy() *DevPodProviderSource { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceContainer) DeepCopyInto(out *DevPodWorkspaceContainer) { + *out = *in + if in.Command != nil { + in, out := &in.Command, &out.Command + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Args != nil { + in, out := &in.Args, &out.Args + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.Ports != nil { + in, out := &in.Ports, &out.Ports + *out = make([]corev1.ContainerPort, len(*in)) + copy(*out, *in) + } + if in.EnvFrom != nil { + in, out := &in.EnvFrom, &out.EnvFrom + *out = make([]corev1.EnvFromSource, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Env != nil { + in, out := &in.Env, &out.Env + *out = make([]corev1.EnvVar, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + in.Resources.DeepCopyInto(&out.Resources) + if in.ResizePolicy != nil { + in, out := &in.ResizePolicy, &out.ResizePolicy + *out = make([]corev1.ContainerResizePolicy, len(*in)) + copy(*out, *in) + } + if in.RestartPolicy != nil { + in, out := &in.RestartPolicy, &out.RestartPolicy + *out = new(corev1.ContainerRestartPolicy) + **out = **in + } + if in.VolumeMounts != nil { + in, out := &in.VolumeMounts, &out.VolumeMounts + *out = make([]corev1.VolumeMount, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VolumeDevices != nil { + in, out := &in.VolumeDevices, &out.VolumeDevices + *out = make([]corev1.VolumeDevice, len(*in)) + copy(*out, *in) + } + if in.LivenessProbe != nil { + in, out := &in.LivenessProbe, &out.LivenessProbe + *out = new(corev1.Probe) + (*in).DeepCopyInto(*out) + } + if in.ReadinessProbe != nil { + in, out := &in.ReadinessProbe, &out.ReadinessProbe + *out = new(corev1.Probe) + (*in).DeepCopyInto(*out) + } + if in.StartupProbe != nil { + in, out := &in.StartupProbe, &out.StartupProbe + *out = new(corev1.Probe) + (*in).DeepCopyInto(*out) + } + if in.Lifecycle != nil { + in, out := &in.Lifecycle, &out.Lifecycle + *out = new(corev1.Lifecycle) + (*in).DeepCopyInto(*out) + } + if in.SecurityContext != nil { + in, out := &in.SecurityContext, &out.SecurityContext + *out = new(corev1.SecurityContext) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceContainer. +func (in *DevPodWorkspaceContainer) DeepCopy() *DevPodWorkspaceContainer { + if in == nil { + return nil + } + out := new(DevPodWorkspaceContainer) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { *out = *in @@ -1725,6 +1820,67 @@ func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { + *out = *in + in.Resources.DeepCopyInto(&out.Resources) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. +func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceContainerResource) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { + *out = *in + in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. +func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceEvent) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { + *out = *in + in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) + if in.PodStatus != nil { + in, out := &in.PodStatus, &out.PodStatus + *out = new(DevPodWorkspaceInstancePodStatus) + (*in).DeepCopyInto(*out) + } + if in.PersistentVolumeClaimStatus != nil { + in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus + *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. +func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstanceKubernetesStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { *out = *in @@ -1758,6 +1914,101 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { + *out = *in + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePersistentVolumeClaimStatus. +func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]corev1.PodCondition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.InitContainerStatuses != nil { + in, out := &in.InitContainerStatuses, &out.InitContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerStatuses != nil { + in, out := &in.ContainerStatuses, &out.ContainerStatuses + *out = make([]corev1.ContainerStatus, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Events != nil { + in, out := &in.Events, &out.Events + *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerResources != nil { + in, out := &in.ContainerResources, &out.ContainerResources + *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.ContainerMetrics != nil { + in, out := &in.ContainerMetrics, &out.ContainerMetrics + *out = make([]v1beta1.ContainerMetrics, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. +func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { + if in == nil { + return nil + } + out := new(DevPodWorkspaceInstancePodStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { *out = *in @@ -1824,6 +2075,11 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan *out = new(DevPodWorkspaceTemplateDefinition) (*in).DeepCopyInto(*out) } + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(DevPodWorkspaceInstanceKubernetesStatus) + (*in).DeepCopyInto(*out) + } return } @@ -1930,14 +2186,14 @@ func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTe } if in.InitContainers != nil { in, out := &in.InitContainers, &out.InitContainers - *out = make([]corev1.Container, len(*in)) + *out = make([]DevPodWorkspaceContainer, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Containers != nil { in, out := &in.Containers, &out.Containers - *out = make([]corev1.Container, len(*in)) + *out = make([]DevPodWorkspaceContainer, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2071,7 +2327,7 @@ func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTe } if in.Resources != nil { in, out := &in.Resources, &out.Resources - *out = new(corev1.ResourceRequirements) + *out = new(DevPodWorkspaceResourceRequirements) (*in).DeepCopyInto(*out) } return @@ -2291,6 +2547,41 @@ func (in *DevPodWorkspaceProvider) DeepCopy() *DevPodWorkspaceProvider { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceResourceRequirements) DeepCopyInto(out *DevPodWorkspaceResourceRequirements) { + *out = *in + if in.Limits != nil { + in, out := &in.Limits, &out.Limits + *out = make(map[corev1.ResourceName]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Requests != nil { + in, out := &in.Requests, &out.Requests + *out = make(map[corev1.ResourceName]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Claims != nil { + in, out := &in.Claims, &out.Claims + *out = make([]corev1.ResourceClaim, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceResourceRequirements. +func (in *DevPodWorkspaceResourceRequirements) DeepCopy() *DevPodWorkspaceResourceRequirements { + if in == nil { + return nil + } + out := new(DevPodWorkspaceResourceRequirements) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { *out = *in @@ -2474,6 +2765,58 @@ func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVer return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopyInto(out *DevPodWorkspaceVolumeClaimSpec) { + *out = *in + if in.AccessModes != nil { + in, out := &in.AccessModes, &out.AccessModes + *out = make([]corev1.PersistentVolumeAccessMode, len(*in)) + copy(*out, *in) + } + if in.Selector != nil { + in, out := &in.Selector, &out.Selector + *out = new(metav1.LabelSelector) + (*in).DeepCopyInto(*out) + } + in.Resources.DeepCopyInto(&out.Resources) + if in.StorageClassName != nil { + in, out := &in.StorageClassName, &out.StorageClassName + *out = new(string) + **out = **in + } + if in.VolumeMode != nil { + in, out := &in.VolumeMode, &out.VolumeMode + *out = new(corev1.PersistentVolumeMode) + **out = **in + } + if in.DataSource != nil { + in, out := &in.DataSource, &out.DataSource + *out = new(corev1.TypedLocalObjectReference) + (*in).DeepCopyInto(*out) + } + if in.DataSourceRef != nil { + in, out := &in.DataSourceRef, &out.DataSourceRef + *out = new(corev1.TypedObjectReference) + (*in).DeepCopyInto(*out) + } + if in.VolumeAttributesClassName != nil { + in, out := &in.VolumeAttributesClassName, &out.VolumeAttributesClassName + *out = new(string) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimSpec. +func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopy() *DevPodWorkspaceVolumeClaimSpec { + if in == nil { + return nil + } + out := new(DevPodWorkspaceVolumeClaimSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopyInto(out *DevPodWorkspaceVolumeClaimTemplate) { *out = *in diff --git a/pkg/devpod/platformoptions.go b/pkg/devpod/platformoptions.go index 1c21d7e0..f65b176c 100644 --- a/pkg/devpod/platformoptions.go +++ b/pkg/devpod/platformoptions.go @@ -5,6 +5,11 @@ type PlatformOptions struct { // when executed on the platform side and not if a platform workspace is used locally. Enabled bool `json:"enabled,omitempty"` + // DevPodWorkspaceInstance information + InstanceName string `json:"instanceName,omitempty"` + InstanceProject string `json:"instanceProject,omitempty"` + InstanceNamespace string `json:"instanceNamespace,omitempty"` + // connection options // AccessKey is used by the workspace daemon to authenticate itself AccessKey string `json:"accessKey,omitempty"` @@ -22,17 +27,19 @@ type PlatformOptions struct { // the ones running in virtual clusters or spaces Kubernetes *Kubernetes `json:"kubernetes,omitempty"` - // credentials for the workspace - Credentials PlatformWorkspaceCredentials `json:"credentials,omitempty"` + // user credentials are the credentials for the user + UserCredentials PlatformWorkspaceCredentials `json:"userCredentials,omitempty"` + ProjectCredentials PlatformWorkspaceCredentials `json:"projectCredentials,omitempty"` // Remote builds Build *PlatformBuildOptions `json:"build,omitempty"` } type PlatformWorkspaceCredentials struct { - GitHttp []PlatformGitHttpCredentials `json:"gitHttp,omitempty"` - GitSsh []PlatformGitSshCredentials `json:"gitSsh,omitempty"` - Docker []PlatformDockerCredentials `json:"docker,omitempty"` + GitUser string `json:"gitUser,omitempty"` + GitEmail string `json:"gitEmail,omitempty"` + GitHttp []PlatformGitHttpCredentials `json:"gitHttp,omitempty"` + GitSsh []PlatformGitSshCredentials `json:"gitSsh,omitempty"` } type PlatformGitHttpCredentials struct { diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index d5a250d2..911e7e23 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -16,1375 +16,1381 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.CostControl": schema_pkg_apis_management_v1_CostControl(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess": schema_pkg_apis_management_v1_CurrentUserAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceContainerResource": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceContainerResource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceKubernetesStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceKubernetesStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePodStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstancePodStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.ObjectNames": schema_pkg_apis_management_v1_ObjectNames(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.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.UserDetailedPermissions": schema_pkg_apis_management_v1_UserDetailedPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissionsList": schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles": schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam": schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships": schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles": schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(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.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), - "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), - "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), - "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), - "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), - "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), - "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), - "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), - "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), - "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), - "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), - "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), - "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), - "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), - "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), - "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), - "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), - "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), - "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), - "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), - "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), - "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), - "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), - "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), - "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), - "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), - "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), - "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), - "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), - "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), - "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), - "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), - "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), - "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), - "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), - "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), - "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), - "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), - "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), - "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), - "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), - "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), - "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), - "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), - "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), - "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), - "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), - "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), - "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), - "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), - "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), - "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), - "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), - "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), - "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), - "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), - "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), - "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), - "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), - "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), - "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), - "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), - "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), - "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), - "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), - "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), - "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), - "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), - "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), - "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), - "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), - "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), - "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), - "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), - "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), - "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), - "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), - "k8s.io/api/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), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics": schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics": schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetricsList": schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics": schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetricsList": schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess": schema_pkg_apis_management_v1_CurrentUserAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.ObjectNames": schema_pkg_apis_management_v1_ObjectNames(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.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.UserDetailedPermissions": schema_pkg_apis_management_v1_UserDetailedPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissionsList": schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles": schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam": schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships": schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles": schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(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.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer": schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance": schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceContainerResource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements": schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), + "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), + "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), + "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), + "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), + "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), + "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), + "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), + "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), + "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), + "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), + "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), + "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), + "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), + "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), + "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), + "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), + "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), + "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), + "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), + "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), + "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), + "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), + "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), + "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), + "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), + "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), + "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), + "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), + "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), + "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), + "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), + "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), + "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), + "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), + "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), + "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), + "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), + "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), + "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), + "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), + "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), + "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), + "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), + "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), + "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), + "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), + "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), + "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), + "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), + "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), + "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), + "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), + "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), + "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), + "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), + "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), + "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), + "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), + "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), + "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), + "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), + "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), + "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), + "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), + "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), + "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), + "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), + "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), + "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), + "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), + "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), + "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), + "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), + "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), + "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), + "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), + "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), + "k8s.io/api/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), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics": schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics": schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetricsList": schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics": schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetricsList": schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), } } @@ -9334,98 +9340,118 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common. } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceContainerResource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the container", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "resources": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Resources is the resources of the container", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceRequirements"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "reason": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "A human-readable description of the status of this operation.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "lastTimestamp": { + "metadata": { 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"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "type": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Type of this event (Normal, Warning), new types could be added in the future", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceKubernetesStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "podStatus": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "PodStatus is the status of the pod that is running the workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePodStatus"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "persistentVolumeClaimStatus": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path is the path to download", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstancePodStatus"}, } } @@ -9599,395 +9625,180 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref common. } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspaceInstanceSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "phase represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Bound", "Lost", "Pending"}, }, }, - "capacity": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "capacity represents the actual resources of the underlying volume.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "Description describes a DevPod machine instance", + Type: []string{"string"}, + Format: "", }, }, - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge", - }, + "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"), }, + }, + "presetRef": { SchemaProps: spec.SchemaProps{ - Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), - }, - }, - }, + Description: "PresetRef holds the DevPodWorkspacePreset template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), }, }, - "events": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound.", + Description: "TemplateRef holds the DevPod machine template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target is the reference to the cluster holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), + }, + }, + "runnerRef": { + SchemaProps: spec.SchemaProps{ + Description: "Deprecated: Use TargetRef instead RunnerRef is the reference to the runner holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Type: []string{"string"}, + Format: "", + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access 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/management/v1.DevPodWorkspaceInstanceEvent"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, + "preventWakeUpOnConnection": { + SchemaProps: spec.SchemaProps{ + Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstancePodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevPodWorkspaceInstanceStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "resolvedTarget": { 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)", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, + Description: "ResolvedTarget is the resolved target of the workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"), }, }, - "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", - }, - }, + "lastWorkspaceStatus": { SchemaProps: spec.SchemaProps{ - Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodCondition"), - }, - }, - }, + Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", + Type: []string{"string"}, + Format: "", }, }, - "message": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "A human readable message indicating details about why the pod is in this condition.", + Description: "Phase describes the current phase the DevPod machine instance is in", Type: []string{"string"}, Format: "", }, }, "reason": { SchemaProps: spec.SchemaProps{ - Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", Type: []string{"string"}, Format: "", }, }, - "initContainerStatuses": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "message": { SchemaProps: spec.SchemaProps{ - Description: "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), - }, - }, - }, + Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "containerStatuses": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + 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("k8s.io/api/core/v1.ContainerStatus"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - "nodeName": { + "instance": { SchemaProps: spec.SchemaProps{ - Description: "NodeName is the name of the node that is running the workspace", - Type: []string{"string"}, - Format: "", + Description: "Instance is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), }, }, - "events": { + "ignoreReconciliation": { SchemaProps: spec.SchemaProps{ - Description: "Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent"), - }, - }, - }, - }, - }, - "containerResources": { - SchemaProps: spec.SchemaProps{ - Description: "ContainerResources are the resources of the containers that are running the workspace", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceContainerResource"), - }, - }, - }, - }, - }, - "containerMetrics": { - SchemaProps: spec.SchemaProps{ - Description: "ContainerMetrics are the metrics of the pod that is running the workspace", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceContainerResource", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "presetRef": { - SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { - SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "target": { - SchemaProps: spec.SchemaProps{ - Description: "Target is the reference to the cluster holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), - }, - }, - "runnerRef": { - SchemaProps: spec.SchemaProps{ - Description: "Deprecated: Use TargetRef instead RunnerRef is the reference to the runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "preventWakeUpOnConnection": { - SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", + Description: "IgnoreReconciliation ignores reconciliation for this object", Type: []string{"boolean"}, Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "resolvedTarget": { - SchemaProps: spec.SchemaProps{ - Description: "ResolvedTarget is the resolved target of the workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"), - }, - }, - "lastWorkspaceStatus": { - SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", - }, - }, - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "instance": { - SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { + "kubernetes": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Description: "Kubernetes is the status of the workspace on kubernetes", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), }, }, "sleepModeConfig": { @@ -9996,17 +9807,11 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.Refe Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), }, }, - "kubernetes": { - SchemaProps: spec.SchemaProps{ - Description: "Kubernetes is the status of the workspace on kubernetes", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceKubernetesStatus"), - }, - }, }, }, }, 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/management/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, } } @@ -10398,6 +10203,21 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref commo }, }, }, + "netmaps": { + SchemaProps: spec.SchemaProps{ + Description: "Netmaps is a list of netmaps that are linked to the workspace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, "errors": { SchemaProps: spec.SchemaProps{ Description: "Errors is a list of errors that occurred while trying to collect informations for troubleshooting.", @@ -23043,99 +22863,681 @@ func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallbac } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance", + Description: "// DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the container specified as a DNS_LABEL.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Description: "Container image name.", + Type: []string{"string"}, + Format: "", + }, + }, + "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Entrypoint array. Not executed within a shell.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "args": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Arguments to the entrypoint.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "workingDir": { + SchemaProps: spec.SchemaProps{ + Description: "Container's working directory.", + Type: []string{"string"}, + Format: "", + }, + }, + "ports": { + SchemaProps: spec.SchemaProps{ + Description: "List of ports to expose from the container. Not specifying a port here", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerPort"), + }, + }, + }, + }, + }, + "envFrom": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + 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.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.EnvVar"), + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Compute Resources required by this container.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), + }, + }, + "resizePolicy": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Resources resize policy for the container.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), + }, + }, + }, + }, + }, + "restartPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "RestartPolicy defines the restart behavior of individual containers in a pod.", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeMounts": { + SchemaProps: spec.SchemaProps{ + Description: "Pod volumes to mount into the container's filesystem.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.VolumeMount"), + }, + }, + }, + }, + }, + "volumeDevices": { + SchemaProps: spec.SchemaProps{ + Description: "volumeDevices is the list of block devices to be used by the container.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.VolumeDevice"), + }, + }, + }, + }, + }, + "livenessProbe": { + SchemaProps: spec.SchemaProps{ + Description: "Periodic probe of container liveness.", + Ref: ref("k8s.io/api/core/v1.Probe"), + }, + }, + "readinessProbe": { + SchemaProps: spec.SchemaProps{ + Description: "Periodic probe of container service readiness.", + Ref: ref("k8s.io/api/core/v1.Probe"), + }, + }, + "startupProbe": { + SchemaProps: spec.SchemaProps{ + Description: "StartupProbe indicates that the Pod has successfully initialized.", + Ref: ref("k8s.io/api/core/v1.Probe"), + }, + }, + "lifecycle": { + SchemaProps: spec.SchemaProps{ + Description: "Actions that the management system should take in response to container lifecycle events.", + Ref: ref("k8s.io/api/core/v1.Lifecycle"), + }, + }, + "terminationMessagePath": { + SchemaProps: spec.SchemaProps{ + Description: "Optional: Path at which the file to which the container's termination message", + Type: []string{"string"}, + Format: "", + }, + }, + "terminationMessagePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "Indicate how the termination message should be populated. File will use the contents of\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"FallbackToLogsOnError", "File"}, + }, + }, + "imagePullPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "Image pull policy.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Always", "IfNotPresent", "Never"}, + }, + }, + "securityContext": { + SchemaProps: spec.SchemaProps{ + Description: "SecurityContext defines the security options the container should be run with.", + Ref: ref("k8s.io/api/core/v1.SecurityContext"), + }, + }, + "stdin": { + SchemaProps: spec.SchemaProps{ + Description: "Whether this container should allocate a buffer for stdin in the container runtime.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "stdinOnce": { + SchemaProps: spec.SchemaProps{ + Description: "StdinOnce default is false", + Type: []string{"boolean"}, + Format: "", + }, + }, + "tty": { + SchemaProps: spec.SchemaProps{ + Description: "TTY default is false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + } +} + +func schema_pkg_apis_storage_v1_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": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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_DevPodWorkspaceInstanceContainerResource(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 container", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is the resources of the container", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human-readable description of the status of this operation.", + Type: []string{"string"}, + Format: "", + }, + }, + "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"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type of this event (Normal, Warning), new types could be added in the future", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "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"), + }, + }, + "podStatus": { + SchemaProps: spec.SchemaProps{ + Description: "PodStatus is the status of the pod that is running the workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus"), + }, + }, + "persistentVolumeClaimStatus": { + SchemaProps: spec.SchemaProps{ + Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus"), + }, + }, + }, + Required: []string{"lastTransitionTime"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + }, + }, + }, + }, + }, + }, + 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_DevPodWorkspaceInstancePersistentVolumeClaimStatus(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 represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Bound", "Lost", "Pending"}, + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "capacity represents the actual resources of the underlying volume.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "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 is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), + }, + }, + }, + }, + }, + "events": { + SchemaProps: spec.SchemaProps{ + Description: "Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(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: "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.PodCondition"), + }, + }, + }, + }, + }, + "message": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "A human readable message indicating details about why the pod is in this condition.", 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: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + "initContainerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "spec": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + 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"), + }, + }, + }, }, }, - "status": { + "containerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + 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"), + }, + }, + }, }, }, - }, - }, - }, - 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 { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "nodeName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "NodeName is the name of the node that is running the workspace", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "events": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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: "Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), + }, + }, + }, }, }, - "metadata": { + "containerResources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "ContainerResources are the resources of the containers that are running the workspace", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource"), + }, + }, + }, }, }, - "items": { + "containerMetrics": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "ContainerMetrics are the metrics of the pod that is running the workspace", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, } } @@ -23307,11 +23709,17 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.Referen Format: "", }, }, + "kubernetes": { + SchemaProps: spec.SchemaProps{ + Description: "Kubernetes is the status of the workspace on kubernetes", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, } } @@ -23457,7 +23865,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Container"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer"), }, }, }, @@ -23471,7 +23879,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Container"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer"), }, }, }, @@ -23781,14 +24189,14 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.Refere "resources": { SchemaProps: spec.SchemaProps{ Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.", - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -24096,6 +24504,67 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall } } +func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "limits": { + SchemaProps: spec.SchemaProps{ + Description: "Limits describes the maximum amount of compute resources allowed.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "requests": { + SchemaProps: spec.SchemaProps{ + Description: "Requests describes the minimum amount of compute resources required.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "claims": { + SchemaProps: spec.SchemaProps{ + Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ResourceClaim"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceClaim"}, + } +} + func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24383,6 +24852,95 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.Refere } } +func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "accessModes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "accessModes contains the desired access modes the volume should have.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, + }, + }, + }, + }, + }, + "selector": { + SchemaProps: spec.SchemaProps{ + Description: "selector is a label query over volumes to consider for binding.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "resources represents the minimum resources the volume should have.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), + }, + }, + "volumeName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", + Type: []string{"string"}, + Format: "", + }, + }, + "storageClassName": { + SchemaProps: spec.SchemaProps{ + Description: "storageClassName is the name of the StorageClass required by the claim.", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeMode": { + SchemaProps: spec.SchemaProps{ + Description: "volumeMode defines what type of volume is required by the claim.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Block", "Filesystem"}, + }, + }, + "dataSource": { + SchemaProps: spec.SchemaProps{ + Description: "dataSource field can be used to specify either:", + Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + }, + }, + "dataSourceRef": { + SchemaProps: spec.SchemaProps{ + Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty", + Ref: ref("k8s.io/api/core/v1.TypedObjectReference"), + }, + }, + "volumeAttributesClassName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/core/v1.TypedObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -24399,14 +24957,14 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref common.Re "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata", "k8s.io/api/core/v1.PersistentVolumeClaimSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, } } @@ -30998,9 +31556,10 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31162,9 +31721,10 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31263,9 +31823,10 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32663,9 +33224,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From 5efa5890802dcc5113b0b5567b8aca9d477f062c Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 18 Apr 2025 14:56:59 +0000 Subject: [PATCH 18/30] [skip ci] repo-sync --- go.mod | 16 +- go.sum | 32 +- .../install/zz_generated.api.register.go | 4 +- pkg/apis/management/v1/config_types.go | 11 + .../v1/team_object_permissions_types.go | 15 + .../management/v1/team_permissions_types.go | 27 + pkg/apis/management/v1/team_types.go | 2 + .../v1/user_object_permissions_types.go | 22 + .../management/v1/user_permissions_types.go | 98 ++ pkg/apis/management/v1/user_rbac_types.go | 58 - pkg/apis/management/v1/user_types.go | 2 +- .../v1/virtualclusterinstance_types.go | 9 - .../v1/virtualclustertemplate_types.go | 4 - .../v1/zz_generated.api.register.go | 42 +- .../management/v1/zz_generated.conversion.go | 788 +++++++++----- .../management/v1/zz_generated.deepcopy.go | 526 ++++++--- .../management/zz_generated.api.register.go | 188 ++-- pkg/apis/management/zz_generated.deepcopy.go | 526 ++++++--- .../v1/devpodenvironmenttemplate_types.go | 19 + .../v1/devpodworkspacetemplate_types.go | 11 - pkg/devpod/{options.go => cloneoptions.go} | 0 pkg/devpod/platformoptions.go | 10 +- pkg/openapi/zz_generated.openapi.go | 996 +++++++++++++----- 23 files changed, 2402 insertions(+), 1004 deletions(-) create mode 100644 pkg/apis/management/v1/team_object_permissions_types.go create mode 100644 pkg/apis/management/v1/team_permissions_types.go create mode 100644 pkg/apis/management/v1/user_object_permissions_types.go delete mode 100644 pkg/apis/management/v1/user_rbac_types.go rename pkg/devpod/{options.go => cloneoptions.go} (100%) diff --git a/go.mod b/go.mod index 5f937194..b6f121ec 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 - github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.25 + github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.32 github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.35.1 @@ -86,15 +86,15 @@ require ( go.opentelemetry.io/proto/otlp v1.3.1 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect - golang.org/x/crypto v0.32.0 // indirect + golang.org/x/crypto v0.36.0 // indirect golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect golang.org/x/mod v0.22.0 // indirect - golang.org/x/net v0.34.0 // indirect - golang.org/x/oauth2 v0.25.0 // indirect - golang.org/x/sync v0.10.0 // indirect - golang.org/x/sys v0.29.1-0.20250107080300-1c14dcadc3ab // indirect - golang.org/x/term v0.28.0 // indirect - golang.org/x/text v0.21.0 // indirect + golang.org/x/net v0.37.0 // indirect + golang.org/x/oauth2 v0.28.0 // indirect + golang.org/x/sync v0.12.0 // indirect + golang.org/x/sys v0.31.0 // indirect + golang.org/x/term v0.30.0 // indirect + golang.org/x/text v0.23.0 // indirect golang.org/x/time v0.9.0 // indirect golang.org/x/tools v0.29.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240930140551-af27646dc61f // indirect diff --git a/go.sum b/go.sum index b29c7bf0..1a66ebbb 100644 --- a/go.sum +++ b/go.sum @@ -107,8 +107,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 h1:om1MqUdW84ZQc0GMGGgFfPI6xpTbrF+6DwKVq+76R44= github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.25 h1:ZmHUIWlss9SUvMwxwI10lq5sirvyvaScomFDgT7pNys= -github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.25/go.mod h1:UteiUdc6QeGt2uXIo5K5qlReRa366GbPY5QdDuPyFCs= +github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.32 h1:exTKHDK+EwBZhz63SaQRr5SA3abxoBcgrFlXygnh/Og= +github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.32/go.mod h1:zkceRmB+KkkhDMHUQO1sQdcNfF2EPxl+RsSIEOAN/R8= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -216,8 +216,8 @@ go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= -golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 h1:yqrTHse8TCMW1M1ZCP+VAR/l0kKxwaAIqN/il7x4voA= golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8/go.mod h1:tujkw807nyEEAamNbDrEGzRav+ilXA7PCRAd6xsmwiU= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -228,26 +228,26 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn 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.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= -golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= -golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= -golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/net v0.37.0 h1:1zLorHbz+LYj7MQlSf1+2tPIIgibq2eL5xkrGk6f+2c= +golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= +golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= -golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= +golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.29.1-0.20250107080300-1c14dcadc3ab h1:BMkEEWYOjkvOX7+YKOGbp6jCyQ5pR2j0Ah47p1Vdsx4= -golang.org/x/sys v0.29.1-0.20250107080300-1c14dcadc3ab/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= -golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= +golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= +golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= +golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= +golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index 74272258..b0829dbe 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -123,13 +123,15 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.TeamList{}, &management.TeamAccessKeys{}, &management.TeamClusters{}, + &management.TeamObjectPermissions{}, + &management.TeamPermissions{}, &management.TranslateVClusterResourceName{}, &management.TranslateVClusterResourceNameList{}, &management.User{}, &management.UserList{}, &management.UserAccessKeys{}, &management.UserClusters{}, - &management.UserDetailedPermissions{}, + &management.UserObjectPermissions{}, &management.UserPermissions{}, &management.UserProfile{}, &management.VirtualClusterInstance{}, diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index d16c8c0d..c21987cb 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -765,10 +765,21 @@ type CostControlSettings struct { // 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"` diff --git a/pkg/apis/management/v1/team_object_permissions_types.go b/pkg/apis/management/v1/team_object_permissions_types.go new file mode 100644 index 00000000..65807d46 --- /dev/null +++ b/pkg/apis/management/v1/team_object_permissions_types.go @@ -0,0 +1,15 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type TeamObjectPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} diff --git a/pkg/apis/management/v1/team_permissions_types.go b/pkg/apis/management/v1/team_permissions_types.go new file mode 100644 index 00000000..9e74482e --- /dev/null +++ b/pkg/apis/management/v1/team_permissions_types.go @@ -0,0 +1,27 @@ +package v1 + +import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type TeamPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // Members gives users that are team members + // +optional + Members []ObjectName `json:"members,omitempty"` + + // ProjectMemberships gives information about the team's project membership + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + + // ManagementRoles gives information about the team's assigned management roles + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + + // ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + + // VirtualClusterRoles give information about the team's cluster role within the virtual cluster + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` +} diff --git a/pkg/apis/management/v1/team_types.go b/pkg/apis/management/v1/team_types.go index 131a1400..44a0fa61 100644 --- a/pkg/apis/management/v1/team_types.go +++ b/pkg/apis/management/v1/team_types.go @@ -16,6 +16,8 @@ import ( // +resource:path=teams,rest=TeamREST // +subresource:request=TeamClusters,path=clusters,kind=TeamClusters,rest=TeamClustersREST // +subresource:request=TeamAccessKeys,path=accesskeys,kind=TeamAccessKeys,rest=TeamAccessKeysREST +// +subresource:request=TeamPermissions,path=permissions,kind=TeamPermissions,rest=TeamPermissionsREST +// +subresource:request=TeamObjectPermissions,path=object-permissions,kind=TeamObjectPermissions,rest=TeamObjectPermissionsREST type Team struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/user_object_permissions_types.go b/pkg/apis/management/v1/user_object_permissions_types.go new file mode 100644 index 00000000..683cff56 --- /dev/null +++ b/pkg/apis/management/v1/user_object_permissions_types.go @@ -0,0 +1,22 @@ +package v1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type UserObjectPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} + +type ObjectPermission struct { + ObjectName `json:",inline"` + + // Verbs is a list of actions allowed by the user on the object. '*' represents all verbs + Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` +} diff --git a/pkg/apis/management/v1/user_permissions_types.go b/pkg/apis/management/v1/user_permissions_types.go index 47787906..71ba7c08 100644 --- a/pkg/apis/management/v1/user_permissions_types.go +++ b/pkg/apis/management/v1/user_permissions_types.go @@ -19,6 +19,22 @@ type UserPermissions struct { // NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped. // +optional NamespaceRoles []UserPermissionsRole `json:"namespaceRoles,omitempty"` + + // TeamMemberships gives information about the user's team membership + // +optional + TeamMemberships []ObjectName `json:"teamMemberships,omitempty"` + + // ProjectMemberships gives information about the user's project membership + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + + // ManagementRoles gives information about the user's assigned management roles + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + + // ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + + // VirtualClusterRoles give information about the user's cluster role within the virtual cluster + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` } type UserPermissionsRole struct { @@ -39,3 +55,85 @@ type UserPermissionsRole struct { // +optional Rules []rbacv1.PolicyRule `json:"rules,omitempty"` } + +type ObjectName struct { + // Namespace of the referenced object + // +optional + Namespace string `json:"namespace,omitempty"` + + // Name of the referenced object + // +optional + Name string `json:"name,omitempty"` + + // DisplayName is the name of the object to display in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +type ProjectMembership struct { + // ObjectName describes the project + ObjectName `json:",inline"` + + // Role is the role given to the member + // +optional + Role ProjectRole `json:"role,omitempty"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type ProjectRole struct { + // ObjectName describes the role + ObjectName `json:",inline"` + + // IsAdmin describes whether this is an admin project role + // +optional + IsAdmin bool `json:"isAdmin,omitempty"` +} + +type ManagementRole struct { + // ObjectName describes the role + ObjectName `json:",inline"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type ClusterAccessRole struct { + // ObjectName describes the role + ObjectName `json:",inline"` + + // Clusters are the clusters that this assigned role applies + Clusters []ObjectName `json:"clusters,omitempty"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type VirtualClusterRole struct { + // ObjectName describes the virtual cluster + ObjectName `json:",inline"` + + // Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view + Role string `json:"role,omitempty"` + + // AssignedVia describes the resource that establishes the project membership + // +optional + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + +type AssignedVia struct { + // ObjectName describes the name of the resource used to establish the assignment. + ObjectName `json:",inline"` + + // Kind is the type of resource used to establish the assignment. + // One of `User`, `Team`, or `ClusterAccess` + // +optional + Kind string `json:"kind,omitempty"` + + // Owner indicates if the + Owner bool `json:"owner,omitempty"` +} diff --git a/pkg/apis/management/v1/user_rbac_types.go b/pkg/apis/management/v1/user_rbac_types.go deleted file mode 100644 index 3e2ba49e..00000000 --- a/pkg/apis/management/v1/user_rbac_types.go +++ /dev/null @@ -1,58 +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 UserDetailedPermissions struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - // +optional - TeamMemberships []UserDrilldownPermissionsTeam `json:"teamMemberships,omitempty"` - - // +optional - RolesAssigned []UserDrilldownManagementRoles `json:"rolesAssigned,omitempty"` - - // +optional - ProjectMemberships []UserDrilldownProjectMemberships `json:"projectMemberships,omitempty"` - - // +optional - VirtualClusterRoles []UserDrilldownVClusterRoles `json:"virtualClusterRoles,omitempty"` -} - -type UserDrilldownPermissionsTeam struct { - ObjectNames `json:",omitempty"` -} - -type UserDrilldownManagementRoles struct { - ObjectNames `json:",omitempty"` - Management bool `json:"management,omitempty"` - AssignedVia AssignedVia `json:"assignedVia,omitempty"` -} - -type UserDrilldownProjectMemberships struct { - ObjectNames `json:",omitempty"` - Role string `json:"role,omitempty"` - AssignedVia AssignedVia `json:"assignedVia,omitempty"` -} - -type AssignedVia struct { - Team string `json:"team,omitempty"` -} - -type UserDrilldownVClusterRoles struct { - ObjectNames `json:",omitempty"` - Role string `json:"role,omitempty"` - AssignedVia AssignedVia `json:"assignedVia,omitempty"` -} - -type ObjectNames struct { - // +optional - Name string `json:"name"` - // +optional - DisplayName string `json:"displayName,omitempty"` -} diff --git a/pkg/apis/management/v1/user_types.go b/pkg/apis/management/v1/user_types.go index 66fd711f..cbedfc8e 100644 --- a/pkg/apis/management/v1/user_types.go +++ b/pkg/apis/management/v1/user_types.go @@ -20,7 +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=UserDetailedPermissions,path=detailed-permissions,kind=UserDetailedPermissions,rest=UserDetailedPermissionsREST +// +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/virtualclusterinstance_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index 8460bb9b..c0b87f1a 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -55,10 +55,6 @@ type VirtualClusterInstanceStatus struct { // for an agentless vCluster. // +optional Online bool `json:"online,omitempty"` - - // CurrentUserAccess returns which actions (get / update / delete) user can perform on the object. - // +optional - CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } func (a *VirtualClusterInstance) GetConditions() agentstoragev1.Conditions { @@ -84,8 +80,3 @@ func (a *VirtualClusterInstance) GetAccess() []storagev1.Access { func (a *VirtualClusterInstance) SetAccess(access []storagev1.Access) { a.Spec.Access = access } - -type CurrentUserAccess struct { - // +optional - Verbs []string `json:"verbs,omitempty"` -} diff --git a/pkg/apis/management/v1/virtualclustertemplate_types.go b/pkg/apis/management/v1/virtualclustertemplate_types.go index 6e738ea1..62c62ba0 100644 --- a/pkg/apis/management/v1/virtualclustertemplate_types.go +++ b/pkg/apis/management/v1/virtualclustertemplate_types.go @@ -31,10 +31,6 @@ type VirtualClusterTemplateStatus struct { // +optional Apps []*storagev1.EntityInfo `json:"apps,omitempty"` - - // CurrentUserAccess returns which actions (get / update / delete) user can perform on the object. - // +optional - CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } func (a *VirtualClusterTemplate) GetVersions() []storagev1.VersionAccessor { diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index ce1c7d66..1d6764fc 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -114,13 +114,15 @@ func addKnownTypes(scheme *runtime.Scheme) error { &TeamList{}, &TeamAccessKeys{}, &TeamClusters{}, + &TeamObjectPermissions{}, + &TeamPermissions{}, &TranslateVClusterResourceName{}, &TranslateVClusterResourceNameList{}, &User{}, &UserList{}, &UserAccessKeys{}, &UserClusters{}, - &UserDetailedPermissions{}, + &UserObjectPermissions{}, &UserPermissions{}, &UserProfile{}, &VirtualClusterInstance{}, @@ -364,6 +366,18 @@ var ( nil, management.NewTeamClustersREST, ), + builders.NewApiResourceWithStorage( + management.InternalTeamObjectPermissionsREST, + func() runtime.Object { return &TeamObjectPermissions{} }, // Register versioned resource + nil, + management.NewTeamObjectPermissionsREST, + ), + builders.NewApiResourceWithStorage( + management.InternalTeamPermissionsREST, + func() runtime.Object { return &TeamPermissions{} }, // Register versioned resource + nil, + management.NewTeamPermissionsREST, + ), management.ManagementTranslateVClusterResourceNameStorage, management.ManagementUserStorage, builders.NewApiResourceWithStorage( @@ -379,10 +393,10 @@ var ( management.NewUserClustersREST, ), builders.NewApiResourceWithStorage( - management.InternalUserDetailedPermissionsREST, - func() runtime.Object { return &UserDetailedPermissions{} }, // Register versioned resource + management.InternalUserObjectPermissionsREST, + func() runtime.Object { return &UserObjectPermissions{} }, // Register versioned resource nil, - management.NewUserDetailedPermissionsREST, + management.NewUserObjectPermissionsREST, ), builders.NewApiResourceWithStorage( management.InternalUserPermissionsREST, @@ -976,6 +990,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"` @@ -1008,10 +1038,10 @@ type UserClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type UserDetailedPermissionsList struct { +type UserObjectPermissionsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []UserDetailedPermissions `json:"items"` + Items []UserObjectPermissions `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 9d6e5b75..90f7eb75 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -480,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 { @@ -860,6 +870,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*CostControlGPUSettings)(nil), (*management.CostControlGPUSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_CostControlGPUSettings_To_management_CostControlGPUSettings(a.(*CostControlGPUSettings), b.(*management.CostControlGPUSettings), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.CostControlGPUSettings)(nil), (*CostControlGPUSettings)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_CostControlGPUSettings_To_v1_CostControlGPUSettings(a.(*management.CostControlGPUSettings), b.(*CostControlGPUSettings), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*CostControlGlobalConfig)(nil), (*management.CostControlGlobalConfig)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_CostControlGlobalConfig_To_management_CostControlGlobalConfig(a.(*CostControlGlobalConfig), b.(*management.CostControlGlobalConfig), scope) }); err != nil { @@ -890,16 +910,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*CurrentUserAccess)(nil), (*management.CurrentUserAccess)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(a.(*CurrentUserAccess), b.(*management.CurrentUserAccess), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.CurrentUserAccess)(nil), (*CurrentUserAccess)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(a.(*management.CurrentUserAccess), b.(*CurrentUserAccess), 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 { @@ -1670,6 +1680,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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 { @@ -1720,13 +1740,23 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*ObjectNames)(nil), (*management.ObjectNames)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_ObjectNames_To_management_ObjectNames(a.(*ObjectNames), b.(*management.ObjectNames), 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.ObjectNames)(nil), (*ObjectNames)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_ObjectNames_To_v1_ObjectNames(a.(*management.ObjectNames), b.(*ObjectNames), 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((*ObjectPermission)(nil), (*management.ObjectPermission)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ObjectPermission_To_management_ObjectPermission(a.(*ObjectPermission), b.(*management.ObjectPermission), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ObjectPermission)(nil), (*ObjectPermission)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ObjectPermission_To_v1_ObjectPermission(a.(*management.ObjectPermission), b.(*ObjectPermission), scope) }); err != nil { return err } @@ -1940,6 +1970,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*ProjectMembership)(nil), (*management.ProjectMembership)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_ProjectMembership_To_management_ProjectMembership(a.(*ProjectMembership), b.(*management.ProjectMembership), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.ProjectMembership)(nil), (*ProjectMembership)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_ProjectMembership_To_v1_ProjectMembership(a.(*management.ProjectMembership), b.(*ProjectMembership), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*ProjectMigrateSpaceInstance)(nil), (*management.ProjectMigrateSpaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(a.(*ProjectMigrateSpaceInstance), b.(*management.ProjectMigrateSpaceInstance), scope) }); err != nil { @@ -2000,6 +2040,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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 { @@ -2570,6 +2620,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*TeamObjectPermissions)(nil), (*management.TeamObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(a.(*TeamObjectPermissions), b.(*management.TeamObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamObjectPermissions)(nil), (*TeamObjectPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(a.(*management.TeamObjectPermissions), b.(*TeamObjectPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamObjectPermissionsList)(nil), (*management.TeamObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(a.(*TeamObjectPermissionsList), b.(*management.TeamObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamObjectPermissionsList)(nil), (*TeamObjectPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(a.(*management.TeamObjectPermissionsList), b.(*TeamObjectPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamPermissions)(nil), (*management.TeamPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamPermissions_To_management_TeamPermissions(a.(*TeamPermissions), b.(*management.TeamPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamPermissions)(nil), (*TeamPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamPermissions_To_v1_TeamPermissions(a.(*management.TeamPermissions), b.(*TeamPermissions), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*TeamPermissionsList)(nil), (*management.TeamPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList(a.(*TeamPermissionsList), b.(*management.TeamPermissionsList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.TeamPermissionsList)(nil), (*TeamPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList(a.(*management.TeamPermissionsList), b.(*TeamPermissionsList), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*TeamSpec)(nil), (*management.TeamSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_TeamSpec_To_management_TeamSpec(a.(*TeamSpec), b.(*management.TeamSpec), scope) }); err != nil { @@ -2680,83 +2770,43 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*UserDetailedPermissions)(nil), (*management.UserDetailedPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(a.(*UserDetailedPermissions), b.(*management.UserDetailedPermissions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.UserDetailedPermissions)(nil), (*UserDetailedPermissions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(a.(*management.UserDetailedPermissions), b.(*UserDetailedPermissions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*UserDetailedPermissionsList)(nil), (*management.UserDetailedPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(a.(*UserDetailedPermissionsList), b.(*management.UserDetailedPermissionsList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.UserDetailedPermissionsList)(nil), (*UserDetailedPermissionsList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(a.(*management.UserDetailedPermissionsList), b.(*UserDetailedPermissionsList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*UserDrilldownManagementRoles)(nil), (*management.UserDrilldownManagementRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(a.(*UserDrilldownManagementRoles), b.(*management.UserDrilldownManagementRoles), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.UserDrilldownManagementRoles)(nil), (*UserDrilldownManagementRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(a.(*management.UserDrilldownManagementRoles), b.(*UserDrilldownManagementRoles), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*UserDrilldownPermissionsTeam)(nil), (*management.UserDrilldownPermissionsTeam)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(a.(*UserDrilldownPermissionsTeam), b.(*management.UserDrilldownPermissionsTeam), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.UserDrilldownPermissionsTeam)(nil), (*UserDrilldownPermissionsTeam)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(a.(*management.UserDrilldownPermissionsTeam), b.(*UserDrilldownPermissionsTeam), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*UserDrilldownProjectMemberships)(nil), (*management.UserDrilldownProjectMemberships)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(a.(*UserDrilldownProjectMemberships), b.(*management.UserDrilldownProjectMemberships), scope) + 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.UserDrilldownProjectMemberships)(nil), (*UserDrilldownProjectMemberships)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(a.(*management.UserDrilldownProjectMemberships), b.(*UserDrilldownProjectMemberships), scope) + 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((*UserDrilldownVClusterRoles)(nil), (*management.UserDrilldownVClusterRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(a.(*UserDrilldownVClusterRoles), b.(*management.UserDrilldownVClusterRoles), scope) + 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.UserDrilldownVClusterRoles)(nil), (*UserDrilldownVClusterRoles)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(a.(*management.UserDrilldownVClusterRoles), b.(*UserDrilldownVClusterRoles), scope) + 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((*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((*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.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.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((*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((*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.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.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 } @@ -3040,6 +3090,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*VirtualClusterRole)(nil), (*management.VirtualClusterRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_VirtualClusterRole_To_management_VirtualClusterRole(a.(*VirtualClusterRole), b.(*management.VirtualClusterRole), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.VirtualClusterRole)(nil), (*VirtualClusterRole)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_VirtualClusterRole_To_v1_VirtualClusterRole(a.(*management.VirtualClusterRole), b.(*VirtualClusterRole), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*VirtualClusterSchema)(nil), (*management.VirtualClusterSchema)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(a.(*VirtualClusterSchema), b.(*management.VirtualClusterSchema), scope) }); err != nil { @@ -3601,7 +3661,11 @@ func Convert_management_Apps_To_v1_Apps(in *management.Apps, out *Apps, s conver } func autoConvert_v1_AssignedVia_To_management_AssignedVia(in *AssignedVia, out *management.AssignedVia, s conversion.Scope) error { - out.Team = in.Team + 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 } @@ -3611,7 +3675,11 @@ func Convert_v1_AssignedVia_To_management_AssignedVia(in *AssignedVia, out *mana } func autoConvert_management_AssignedVia_To_v1_AssignedVia(in *management.AssignedVia, out *AssignedVia, s conversion.Scope) error { - out.Team = in.Team + 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 } @@ -4389,6 +4457,38 @@ func Convert_management_ClusterAccessList_To_v1_ClusterAccessList(in *management return autoConvert_management_ClusterAccessList_To_v1_ClusterAccessList(in, out, s) } +func autoConvert_v1_ClusterAccessRole_To_management_ClusterAccessRole(in *ClusterAccessRole, out *management.ClusterAccessRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Clusters = *(*[]management.ObjectName)(unsafe.Pointer(&in.Clusters)) + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ClusterAccessRole_To_management_ClusterAccessRole is an autogenerated conversion function. +func Convert_v1_ClusterAccessRole_To_management_ClusterAccessRole(in *ClusterAccessRole, out *management.ClusterAccessRole, s conversion.Scope) error { + return autoConvert_v1_ClusterAccessRole_To_management_ClusterAccessRole(in, out, s) +} + +func autoConvert_management_ClusterAccessRole_To_v1_ClusterAccessRole(in *management.ClusterAccessRole, out *ClusterAccessRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Clusters = *(*[]ObjectName)(unsafe.Pointer(&in.Clusters)) + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_ClusterAccessRole_To_v1_ClusterAccessRole is an autogenerated conversion function. +func Convert_management_ClusterAccessRole_To_v1_ClusterAccessRole(in *management.ClusterAccessRole, out *ClusterAccessRole, s conversion.Scope) error { + return autoConvert_management_ClusterAccessRole_To_v1_ClusterAccessRole(in, out, s) +} + func autoConvert_v1_ClusterAccessSpec_To_management_ClusterAccessSpec(in *ClusterAccessSpec, out *management.ClusterAccessSpec, s conversion.Scope) error { out.ClusterAccessSpec = in.ClusterAccessSpec return nil @@ -5341,6 +5441,28 @@ func Convert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig( return autoConvert_management_CostControlClusterConfig_To_v1_CostControlClusterConfig(in, out, s) } +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_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_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_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_CostControlGlobalConfig_To_management_CostControlGlobalConfig(in *CostControlGlobalConfig, out *management.CostControlGlobalConfig, s conversion.Scope) error { out.Metrics = (*storagev1.Metrics)(unsafe.Pointer(in.Metrics)) return nil @@ -5387,6 +5509,7 @@ func autoConvert_v1_CostControlSettings_To_management_CostControlSettings(in *Co 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 } @@ -5400,6 +5523,7 @@ func autoConvert_management_CostControlSettings_To_v1_CostControlSettings(in *ma 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 } @@ -5409,26 +5533,6 @@ func Convert_management_CostControlSettings_To_v1_CostControlSettings(in *manage return autoConvert_management_CostControlSettings_To_v1_CostControlSettings(in, out, s) } -func autoConvert_v1_CurrentUserAccess_To_management_CurrentUserAccess(in *CurrentUserAccess, out *management.CurrentUserAccess, s conversion.Scope) error { - out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) - return nil -} - -// Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess is an autogenerated conversion function. -func Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(in *CurrentUserAccess, out *management.CurrentUserAccess, s conversion.Scope) error { - return autoConvert_v1_CurrentUserAccess_To_management_CurrentUserAccess(in, out, s) -} - -func autoConvert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in *management.CurrentUserAccess, out *CurrentUserAccess, s conversion.Scope) error { - out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) - return nil -} - -// Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess is an autogenerated conversion function. -func Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in *management.CurrentUserAccess, out *CurrentUserAccess, s conversion.Scope) error { - return autoConvert_management_CurrentUserAccess_To_v1_CurrentUserAccess(in, out, s) -} - func autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { @@ -7312,6 +7416,36 @@ func Convert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in *management return autoConvert_management_MaintenanceWindow_To_v1_MaintenanceWindow(in, out, s) } +func autoConvert_v1_ManagementRole_To_management_ManagementRole(in *ManagementRole, out *management.ManagementRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ManagementRole_To_management_ManagementRole is an autogenerated conversion function. +func Convert_v1_ManagementRole_To_management_ManagementRole(in *ManagementRole, out *management.ManagementRole, s conversion.Scope) error { + return autoConvert_v1_ManagementRole_To_management_ManagementRole(in, out, s) +} + +func autoConvert_management_ManagementRole_To_v1_ManagementRole(in *management.ManagementRole, out *ManagementRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_ManagementRole_To_v1_ManagementRole is an autogenerated conversion function. +func Convert_management_ManagementRole_To_v1_ManagementRole(in *management.ManagementRole, out *ManagementRole, s conversion.Scope) error { + return autoConvert_management_ManagementRole_To_v1_ManagementRole(in, out, s) +} + func autoConvert_v1_OIDC_To_management_OIDC(in *OIDC, out *management.OIDC, s conversion.Scope) error { out.Enabled = in.Enabled out.WildcardRedirect = in.WildcardRedirect @@ -7434,26 +7568,54 @@ func Convert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in *management.O return autoConvert_management_OIDCClientStatus_To_v1_OIDCClientStatus(in, out, s) } -func autoConvert_v1_ObjectNames_To_management_ObjectNames(in *ObjectNames, out *management.ObjectNames, s conversion.Scope) error { +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_ObjectNames_To_management_ObjectNames is an autogenerated conversion function. -func Convert_v1_ObjectNames_To_management_ObjectNames(in *ObjectNames, out *management.ObjectNames, s conversion.Scope) error { - return autoConvert_v1_ObjectNames_To_management_ObjectNames(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_ObjectNames_To_v1_ObjectNames(in *management.ObjectNames, out *ObjectNames, s conversion.Scope) error { +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_ObjectNames_To_v1_ObjectNames is an autogenerated conversion function. -func Convert_management_ObjectNames_To_v1_ObjectNames(in *management.ObjectNames, out *ObjectNames, s conversion.Scope) error { - return autoConvert_management_ObjectNames_To_v1_ObjectNames(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_v1_ObjectPermission_To_management_ObjectPermission(in *ObjectPermission, out *management.ObjectPermission, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + return nil +} + +// Convert_v1_ObjectPermission_To_management_ObjectPermission is an autogenerated conversion function. +func Convert_v1_ObjectPermission_To_management_ObjectPermission(in *ObjectPermission, out *management.ObjectPermission, s conversion.Scope) error { + return autoConvert_v1_ObjectPermission_To_management_ObjectPermission(in, out, s) +} + +func autoConvert_management_ObjectPermission_To_v1_ObjectPermission(in *management.ObjectPermission, out *ObjectPermission, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Verbs = *(*[]string)(unsafe.Pointer(&in.Verbs)) + return nil +} + +// Convert_management_ObjectPermission_To_v1_ObjectPermission is an autogenerated conversion function. +func Convert_management_ObjectPermission_To_v1_ObjectPermission(in *management.ObjectPermission, out *ObjectPermission, s conversion.Scope) error { + return autoConvert_management_ObjectPermission_To_v1_ObjectPermission(in, out, s) } func autoConvert_v1_OwnedAccessKey_To_management_OwnedAccessKey(in *OwnedAccessKey, out *management.OwnedAccessKey, s conversion.Scope) error { @@ -7958,6 +8120,42 @@ func Convert_management_ProjectMembersList_To_v1_ProjectMembersList(in *manageme return autoConvert_management_ProjectMembersList_To_v1_ProjectMembersList(in, out, s) } +func autoConvert_v1_ProjectMembership_To_management_ProjectMembership(in *ProjectMembership, out *management.ProjectMembership, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_v1_ProjectRole_To_management_ProjectRole(&in.Role, &out.Role, s); err != nil { + return err + } + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_ProjectMembership_To_management_ProjectMembership is an autogenerated conversion function. +func Convert_v1_ProjectMembership_To_management_ProjectMembership(in *ProjectMembership, out *management.ProjectMembership, s conversion.Scope) error { + return autoConvert_v1_ProjectMembership_To_management_ProjectMembership(in, out, s) +} + +func autoConvert_management_ProjectMembership_To_v1_ProjectMembership(in *management.ProjectMembership, out *ProjectMembership, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + if err := Convert_management_ProjectRole_To_v1_ProjectRole(&in.Role, &out.Role, s); err != nil { + return err + } + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_ProjectMembership_To_v1_ProjectMembership is an autogenerated conversion function. +func Convert_management_ProjectMembership_To_v1_ProjectMembership(in *management.ProjectMembership, out *ProjectMembership, s conversion.Scope) error { + return autoConvert_management_ProjectMembership_To_v1_ProjectMembership(in, out, s) +} + func autoConvert_v1_ProjectMigrateSpaceInstance_To_management_ProjectMigrateSpaceInstance(in *ProjectMigrateSpaceInstance, out *management.ProjectMigrateSpaceInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ProjectMigrateSpaceInstanceSource_To_management_ProjectMigrateSpaceInstanceSource(&in.SourceSpaceInstance, &out.SourceSpaceInstance, s); err != nil { @@ -8098,6 +8296,32 @@ func Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_Project return autoConvert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_ProjectMigrateVirtualClusterInstanceSource(in, out, s) } +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_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_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_ProjectRole_To_v1_ProjectRole is an autogenerated conversion function. +func Convert_management_ProjectRole_To_v1_ProjectRole(in *management.ProjectRole, out *ProjectRole, s conversion.Scope) error { + return autoConvert_management_ProjectRole_To_v1_ProjectRole(in, out, s) +} + func autoConvert_v1_ProjectSecret_To_management_ProjectSecret(in *ProjectSecret, out *management.ProjectSecret, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ProjectSecretSpec_To_management_ProjectSecretSpec(&in.Spec, &out.Spec, s); err != nil { @@ -9569,6 +9793,102 @@ func Convert_management_TeamList_To_v1_TeamList(in *management.TeamList, out *Te return autoConvert_management_TeamList_To_v1_TeamList(in, out, s) } +func autoConvert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(in *TeamObjectPermissions, out *management.TeamObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]management.ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions is an autogenerated conversion function. +func Convert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(in *TeamObjectPermissions, out *management.TeamObjectPermissions, s conversion.Scope) error { + return autoConvert_v1_TeamObjectPermissions_To_management_TeamObjectPermissions(in, out, s) +} + +func autoConvert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(in *management.TeamObjectPermissions, out *TeamObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions is an autogenerated conversion function. +func Convert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(in *management.TeamObjectPermissions, out *TeamObjectPermissions, s conversion.Scope) error { + return autoConvert_management_TeamObjectPermissions_To_v1_TeamObjectPermissions(in, out, s) +} + +func autoConvert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(in *TeamObjectPermissionsList, out *management.TeamObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList is an autogenerated conversion function. +func Convert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(in *TeamObjectPermissionsList, out *management.TeamObjectPermissionsList, s conversion.Scope) error { + return autoConvert_v1_TeamObjectPermissionsList_To_management_TeamObjectPermissionsList(in, out, s) +} + +func autoConvert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(in *management.TeamObjectPermissionsList, out *TeamObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList is an autogenerated conversion function. +func Convert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(in *management.TeamObjectPermissionsList, out *TeamObjectPermissionsList, s conversion.Scope) error { + return autoConvert_management_TeamObjectPermissionsList_To_v1_TeamObjectPermissionsList(in, out, s) +} + +func autoConvert_v1_TeamPermissions_To_management_TeamPermissions(in *TeamPermissions, out *management.TeamPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Members = *(*[]management.ObjectName)(unsafe.Pointer(&in.Members)) + out.ProjectMemberships = *(*[]management.ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]management.ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]management.ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]management.VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) + return nil +} + +// Convert_v1_TeamPermissions_To_management_TeamPermissions is an autogenerated conversion function. +func Convert_v1_TeamPermissions_To_management_TeamPermissions(in *TeamPermissions, out *management.TeamPermissions, s conversion.Scope) error { + return autoConvert_v1_TeamPermissions_To_management_TeamPermissions(in, out, s) +} + +func autoConvert_management_TeamPermissions_To_v1_TeamPermissions(in *management.TeamPermissions, out *TeamPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.Members = *(*[]ObjectName)(unsafe.Pointer(&in.Members)) + out.ProjectMemberships = *(*[]ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) + return nil +} + +// Convert_management_TeamPermissions_To_v1_TeamPermissions is an autogenerated conversion function. +func Convert_management_TeamPermissions_To_v1_TeamPermissions(in *management.TeamPermissions, out *TeamPermissions, s conversion.Scope) error { + return autoConvert_management_TeamPermissions_To_v1_TeamPermissions(in, out, s) +} + +func autoConvert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in *TeamPermissionsList, out *management.TeamPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.TeamPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList is an autogenerated conversion function. +func Convert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in *TeamPermissionsList, out *management.TeamPermissionsList, s conversion.Scope) error { + return autoConvert_v1_TeamPermissionsList_To_management_TeamPermissionsList(in, out, s) +} + +func autoConvert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in *management.TeamPermissionsList, out *TeamPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]TeamPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList is an autogenerated conversion function. +func Convert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in *management.TeamPermissionsList, out *TeamPermissionsList, s conversion.Scope) error { + return autoConvert_management_TeamPermissionsList_To_v1_TeamPermissionsList(in, out, s) +} + func autoConvert_v1_TeamSpec_To_management_TeamSpec(in *TeamSpec, out *management.TeamSpec, s conversion.Scope) error { out.TeamSpec = in.TeamSpec return nil @@ -9827,176 +10147,6 @@ func Convert_management_UserClustersList_To_v1_UserClustersList(in *management.U return autoConvert_management_UserClustersList_To_v1_UserClustersList(in, out, s) } -func autoConvert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(in *UserDetailedPermissions, out *management.UserDetailedPermissions, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TeamMemberships = *(*[]management.UserDrilldownPermissionsTeam)(unsafe.Pointer(&in.TeamMemberships)) - out.RolesAssigned = *(*[]management.UserDrilldownManagementRoles)(unsafe.Pointer(&in.RolesAssigned)) - out.ProjectMemberships = *(*[]management.UserDrilldownProjectMemberships)(unsafe.Pointer(&in.ProjectMemberships)) - out.VirtualClusterRoles = *(*[]management.UserDrilldownVClusterRoles)(unsafe.Pointer(&in.VirtualClusterRoles)) - return nil -} - -// Convert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions is an autogenerated conversion function. -func Convert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(in *UserDetailedPermissions, out *management.UserDetailedPermissions, s conversion.Scope) error { - return autoConvert_v1_UserDetailedPermissions_To_management_UserDetailedPermissions(in, out, s) -} - -func autoConvert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(in *management.UserDetailedPermissions, out *UserDetailedPermissions, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TeamMemberships = *(*[]UserDrilldownPermissionsTeam)(unsafe.Pointer(&in.TeamMemberships)) - out.RolesAssigned = *(*[]UserDrilldownManagementRoles)(unsafe.Pointer(&in.RolesAssigned)) - out.ProjectMemberships = *(*[]UserDrilldownProjectMemberships)(unsafe.Pointer(&in.ProjectMemberships)) - out.VirtualClusterRoles = *(*[]UserDrilldownVClusterRoles)(unsafe.Pointer(&in.VirtualClusterRoles)) - return nil -} - -// Convert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions is an autogenerated conversion function. -func Convert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(in *management.UserDetailedPermissions, out *UserDetailedPermissions, s conversion.Scope) error { - return autoConvert_management_UserDetailedPermissions_To_v1_UserDetailedPermissions(in, out, s) -} - -func autoConvert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(in *UserDetailedPermissionsList, out *management.UserDetailedPermissionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.UserDetailedPermissions)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList is an autogenerated conversion function. -func Convert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(in *UserDetailedPermissionsList, out *management.UserDetailedPermissionsList, s conversion.Scope) error { - return autoConvert_v1_UserDetailedPermissionsList_To_management_UserDetailedPermissionsList(in, out, s) -} - -func autoConvert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(in *management.UserDetailedPermissionsList, out *UserDetailedPermissionsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]UserDetailedPermissions)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList is an autogenerated conversion function. -func Convert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(in *management.UserDetailedPermissionsList, out *UserDetailedPermissionsList, s conversion.Scope) error { - return autoConvert_management_UserDetailedPermissionsList_To_v1_UserDetailedPermissionsList(in, out, s) -} - -func autoConvert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(in *UserDrilldownManagementRoles, out *management.UserDrilldownManagementRoles, s conversion.Scope) error { - if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - out.Management = in.Management - if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { - return err - } - return nil -} - -// Convert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles is an autogenerated conversion function. -func Convert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(in *UserDrilldownManagementRoles, out *management.UserDrilldownManagementRoles, s conversion.Scope) error { - return autoConvert_v1_UserDrilldownManagementRoles_To_management_UserDrilldownManagementRoles(in, out, s) -} - -func autoConvert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(in *management.UserDrilldownManagementRoles, out *UserDrilldownManagementRoles, s conversion.Scope) error { - if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - out.Management = in.Management - if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { - return err - } - return nil -} - -// Convert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles is an autogenerated conversion function. -func Convert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(in *management.UserDrilldownManagementRoles, out *UserDrilldownManagementRoles, s conversion.Scope) error { - return autoConvert_management_UserDrilldownManagementRoles_To_v1_UserDrilldownManagementRoles(in, out, s) -} - -func autoConvert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(in *UserDrilldownPermissionsTeam, out *management.UserDrilldownPermissionsTeam, s conversion.Scope) error { - if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - return nil -} - -// Convert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam is an autogenerated conversion function. -func Convert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(in *UserDrilldownPermissionsTeam, out *management.UserDrilldownPermissionsTeam, s conversion.Scope) error { - return autoConvert_v1_UserDrilldownPermissionsTeam_To_management_UserDrilldownPermissionsTeam(in, out, s) -} - -func autoConvert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(in *management.UserDrilldownPermissionsTeam, out *UserDrilldownPermissionsTeam, s conversion.Scope) error { - if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - return nil -} - -// Convert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam is an autogenerated conversion function. -func Convert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(in *management.UserDrilldownPermissionsTeam, out *UserDrilldownPermissionsTeam, s conversion.Scope) error { - return autoConvert_management_UserDrilldownPermissionsTeam_To_v1_UserDrilldownPermissionsTeam(in, out, s) -} - -func autoConvert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(in *UserDrilldownProjectMemberships, out *management.UserDrilldownProjectMemberships, s conversion.Scope) error { - if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - out.Role = in.Role - if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { - return err - } - return nil -} - -// Convert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships is an autogenerated conversion function. -func Convert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(in *UserDrilldownProjectMemberships, out *management.UserDrilldownProjectMemberships, s conversion.Scope) error { - return autoConvert_v1_UserDrilldownProjectMemberships_To_management_UserDrilldownProjectMemberships(in, out, s) -} - -func autoConvert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(in *management.UserDrilldownProjectMemberships, out *UserDrilldownProjectMemberships, s conversion.Scope) error { - if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - out.Role = in.Role - if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { - return err - } - return nil -} - -// Convert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships is an autogenerated conversion function. -func Convert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(in *management.UserDrilldownProjectMemberships, out *UserDrilldownProjectMemberships, s conversion.Scope) error { - return autoConvert_management_UserDrilldownProjectMemberships_To_v1_UserDrilldownProjectMemberships(in, out, s) -} - -func autoConvert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(in *UserDrilldownVClusterRoles, out *management.UserDrilldownVClusterRoles, s conversion.Scope) error { - if err := Convert_v1_ObjectNames_To_management_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - out.Role = in.Role - if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { - return err - } - return nil -} - -// Convert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles is an autogenerated conversion function. -func Convert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(in *UserDrilldownVClusterRoles, out *management.UserDrilldownVClusterRoles, s conversion.Scope) error { - return autoConvert_v1_UserDrilldownVClusterRoles_To_management_UserDrilldownVClusterRoles(in, out, s) -} - -func autoConvert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(in *management.UserDrilldownVClusterRoles, out *UserDrilldownVClusterRoles, s conversion.Scope) error { - if err := Convert_management_ObjectNames_To_v1_ObjectNames(&in.ObjectNames, &out.ObjectNames, s); err != nil { - return err - } - out.Role = in.Role - if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { - return err - } - return nil -} - -// Convert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles is an autogenerated conversion function. -func Convert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(in *management.UserDrilldownVClusterRoles, out *UserDrilldownVClusterRoles, s conversion.Scope) error { - return autoConvert_management_UserDrilldownVClusterRoles_To_v1_UserDrilldownVClusterRoles(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)) @@ -10041,10 +10191,59 @@ func Convert_management_UserList_To_v1_UserList(in *management.UserList, out *Us return autoConvert_management_UserList_To_v1_UserList(in, out, s) } +func autoConvert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in *UserObjectPermissions, out *management.UserObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]management.ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_v1_UserObjectPermissions_To_management_UserObjectPermissions is an autogenerated conversion function. +func Convert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in *UserObjectPermissions, out *management.UserObjectPermissions, s conversion.Scope) error { + return autoConvert_v1_UserObjectPermissions_To_management_UserObjectPermissions(in, out, s) +} + +func autoConvert_management_UserObjectPermissions_To_v1_UserObjectPermissions(in *management.UserObjectPermissions, out *UserObjectPermissions, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ObjectPermissions = *(*[]ObjectPermission)(unsafe.Pointer(&in.ObjectPermissions)) + return nil +} + +// Convert_management_UserObjectPermissions_To_v1_UserObjectPermissions is an autogenerated conversion function. +func Convert_management_UserObjectPermissions_To_v1_UserObjectPermissions(in *management.UserObjectPermissions, out *UserObjectPermissions, s conversion.Scope) error { + return autoConvert_management_UserObjectPermissions_To_v1_UserObjectPermissions(in, out, s) +} + +func autoConvert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in *UserObjectPermissionsList, out *management.UserObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UserObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList is an autogenerated conversion function. +func Convert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in *UserObjectPermissionsList, out *management.UserObjectPermissionsList, s conversion.Scope) error { + return autoConvert_v1_UserObjectPermissionsList_To_management_UserObjectPermissionsList(in, out, s) +} + +func autoConvert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(in *management.UserObjectPermissionsList, out *UserObjectPermissionsList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UserObjectPermissions)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList is an autogenerated conversion function. +func Convert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(in *management.UserObjectPermissionsList, out *UserObjectPermissionsList, s conversion.Scope) error { + return autoConvert_management_UserObjectPermissionsList_To_v1_UserObjectPermissionsList(in, out, s) +} + func autoConvert_v1_UserPermissions_To_management_UserPermissions(in *UserPermissions, out *management.UserPermissions, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.ClusterRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) out.NamespaceRoles = *(*[]management.UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + out.TeamMemberships = *(*[]management.ObjectName)(unsafe.Pointer(&in.TeamMemberships)) + out.ProjectMemberships = *(*[]management.ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]management.ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]management.ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]management.VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) return nil } @@ -10057,6 +10256,11 @@ func autoConvert_management_UserPermissions_To_v1_UserPermissions(in *management out.ObjectMeta = in.ObjectMeta out.ClusterRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.ClusterRoles)) out.NamespaceRoles = *(*[]UserPermissionsRole)(unsafe.Pointer(&in.NamespaceRoles)) + out.TeamMemberships = *(*[]ObjectName)(unsafe.Pointer(&in.TeamMemberships)) + out.ProjectMemberships = *(*[]ProjectMembership)(unsafe.Pointer(&in.ProjectMemberships)) + out.ManagementRoles = *(*[]ManagementRole)(unsafe.Pointer(&in.ManagementRoles)) + out.ClusterAccessRoles = *(*[]ClusterAccessRole)(unsafe.Pointer(&in.ClusterAccessRoles)) + out.VirtualClusterRoles = *(*[]VirtualClusterRole)(unsafe.Pointer(&in.VirtualClusterRoles)) return nil } @@ -10805,9 +11009,6 @@ func autoConvert_v1_VirtualClusterInstanceStatus_To_management_VirtualClusterIns out.CanUse = in.CanUse out.CanUpdate = in.CanUpdate out.Online = in.Online - if err := Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { - return err - } return nil } @@ -10822,9 +11023,6 @@ func autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterIns out.CanUse = in.CanUse out.CanUpdate = in.CanUpdate out.Online = in.Online - if err := Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { - return err - } return nil } @@ -10833,6 +11031,38 @@ func Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanc return autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in, out, s) } +func autoConvert_v1_VirtualClusterRole_To_management_VirtualClusterRole(in *VirtualClusterRole, out *management.VirtualClusterRole, s conversion.Scope) error { + if err := Convert_v1_ObjectName_To_management_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_v1_AssignedVia_To_management_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_v1_VirtualClusterRole_To_management_VirtualClusterRole is an autogenerated conversion function. +func Convert_v1_VirtualClusterRole_To_management_VirtualClusterRole(in *VirtualClusterRole, out *management.VirtualClusterRole, s conversion.Scope) error { + return autoConvert_v1_VirtualClusterRole_To_management_VirtualClusterRole(in, out, s) +} + +func autoConvert_management_VirtualClusterRole_To_v1_VirtualClusterRole(in *management.VirtualClusterRole, out *VirtualClusterRole, s conversion.Scope) error { + if err := Convert_management_ObjectName_To_v1_ObjectName(&in.ObjectName, &out.ObjectName, s); err != nil { + return err + } + out.Role = in.Role + if err := Convert_management_AssignedVia_To_v1_AssignedVia(&in.AssignedVia, &out.AssignedVia, s); err != nil { + return err + } + return nil +} + +// Convert_management_VirtualClusterRole_To_v1_VirtualClusterRole is an autogenerated conversion function. +func Convert_management_VirtualClusterRole_To_v1_VirtualClusterRole(in *management.VirtualClusterRole, out *VirtualClusterRole, s conversion.Scope) error { + return autoConvert_management_VirtualClusterRole_To_v1_VirtualClusterRole(in, out, s) +} + func autoConvert_v1_VirtualClusterSchema_To_management_VirtualClusterSchema(in *VirtualClusterSchema, out *management.VirtualClusterSchema, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_VirtualClusterSchemaSpec_To_management_VirtualClusterSchemaSpec(&in.Spec, &out.Spec, s); err != nil { @@ -11006,9 +11236,6 @@ func Convert_management_VirtualClusterTemplateSpec_To_v1_VirtualClusterTemplateS func autoConvert_v1_VirtualClusterTemplateStatus_To_management_VirtualClusterTemplateStatus(in *VirtualClusterTemplateStatus, out *management.VirtualClusterTemplateStatus, s conversion.Scope) error { out.VirtualClusterTemplateStatus = in.VirtualClusterTemplateStatus out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) - if err := Convert_v1_CurrentUserAccess_To_management_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { - return err - } return nil } @@ -11020,9 +11247,6 @@ func Convert_v1_VirtualClusterTemplateStatus_To_management_VirtualClusterTemplat func autoConvert_management_VirtualClusterTemplateStatus_To_v1_VirtualClusterTemplateStatus(in *management.VirtualClusterTemplateStatus, out *VirtualClusterTemplateStatus, s conversion.Scope) error { out.VirtualClusterTemplateStatus = in.VirtualClusterTemplateStatus out.Apps = *(*[]*storagev1.EntityInfo)(unsafe.Pointer(&in.Apps)) - if err := Convert_management_CurrentUserAccess_To_v1_CurrentUserAccess(&in.CurrentUserAccess, &out.CurrentUserAccess, s); err != nil { - return err - } return nil } diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index b1908956..eb1e2a22 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -462,6 +462,7 @@ func (in *Apps) DeepCopy() *Apps { // 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 } @@ -1199,6 +1200,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 @@ -2317,6 +2341,27 @@ func (in *CostControlClusterConfig) DeepCopy() *CostControlClusterConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlGPUSettings) DeepCopyInto(out *CostControlGPUSettings) { + *out = *in + 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 CostControlGPUSettings. +func (in *CostControlGPUSettings) DeepCopy() *CostControlGPUSettings { + if in == nil { + return nil + } + out := new(CostControlGPUSettings) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CostControlGlobalConfig) DeepCopyInto(out *CostControlGlobalConfig) { *out = *in @@ -2367,6 +2412,11 @@ func (in *CostControlSettings) DeepCopyInto(out *CostControlSettings) { *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) @@ -2385,27 +2435,6 @@ func (in *CostControlSettings) DeepCopy() *CostControlSettings { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CurrentUserAccess) DeepCopyInto(out *CurrentUserAccess) { - *out = *in - 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 CurrentUserAccess. -func (in *CurrentUserAccess) DeepCopy() *CurrentUserAccess { - if in == nil { - return nil - } - out := new(CurrentUserAccess) - 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) { *out = *in @@ -4376,6 +4405,24 @@ func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagementRole) DeepCopyInto(out *ManagementRole) { + *out = *in + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia + return +} + +// 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(ManagementRole) + 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) { *out = *in @@ -4498,17 +4545,39 @@ func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectNames) DeepCopyInto(out *ObjectNames) { +func (in *ObjectName) DeepCopyInto(out *ObjectName) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectNames. -func (in *ObjectNames) DeepCopy() *ObjectNames { +// 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(ObjectNames) + out := new(ObjectName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { + *out = *in + out.ObjectName = in.ObjectName + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectPermission. +func (in *ObjectPermission) DeepCopy() *ObjectPermission { + if in == nil { + return nil + } + out := new(ObjectPermission) in.DeepCopyInto(out) return out } @@ -5079,6 +5148,25 @@ func (in *ProjectMembersList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectMembership) DeepCopyInto(out *ProjectMembership) { + *out = *in + out.ObjectName = in.ObjectName + out.Role = in.Role + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembership. +func (in *ProjectMembership) DeepCopy() *ProjectMembership { + if in == nil { + return nil + } + out := new(ProjectMembership) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in @@ -5231,6 +5319,23 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { + *out = *in + out.ObjectName = in.ObjectName + return +} + +// 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(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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in @@ -6793,6 +6898,158 @@ func (in *TeamList) DeepCopyObject() runtime.Object { 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 @@ -7081,59 +7338,41 @@ 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 *UserDetailedPermissions) DeepCopyInto(out *UserDetailedPermissions) { +func (in *UserInfo) DeepCopyInto(out *UserInfo) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.TeamMemberships != nil { - in, out := &in.TeamMemberships, &out.TeamMemberships - *out = make([]UserDrilldownPermissionsTeam, len(*in)) - copy(*out, *in) - } - if in.RolesAssigned != nil { - in, out := &in.RolesAssigned, &out.RolesAssigned - *out = make([]UserDrilldownManagementRoles, len(*in)) - copy(*out, *in) - } - if in.ProjectMemberships != nil { - in, out := &in.ProjectMemberships, &out.ProjectMemberships - *out = make([]UserDrilldownProjectMemberships, len(*in)) - copy(*out, *in) - } - if in.VirtualClusterRoles != nil { - in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles - *out = make([]UserDrilldownVClusterRoles, len(*in)) - copy(*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 UserDetailedPermissions. -func (in *UserDetailedPermissions) DeepCopy() *UserDetailedPermissions { +// 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(UserDetailedPermissions) + out := new(UserInfo) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserDetailedPermissions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDetailedPermissionsList) DeepCopyInto(out *UserDetailedPermissionsList) { +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([]UserDetailedPermissions, len(*in)) + *out = make([]User, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7141,18 +7380,18 @@ func (in *UserDetailedPermissionsList) DeepCopyInto(out *UserDetailedPermissions return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDetailedPermissionsList. -func (in *UserDetailedPermissionsList) DeepCopy() *UserDetailedPermissionsList { +// 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(UserDetailedPermissionsList) + out := new(UserList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserDetailedPermissionsList) DeepCopyObject() runtime.Object { +func (in *UserList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7160,112 +7399,46 @@ func (in *UserDetailedPermissionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownManagementRoles) DeepCopyInto(out *UserDrilldownManagementRoles) { +func (in *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { *out = *in - out.ObjectNames = in.ObjectNames - out.AssignedVia = in.AssignedVia - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownManagementRoles. -func (in *UserDrilldownManagementRoles) DeepCopy() *UserDrilldownManagementRoles { - if in == nil { - return nil - } - out := new(UserDrilldownManagementRoles) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownPermissionsTeam) DeepCopyInto(out *UserDrilldownPermissionsTeam) { - *out = *in - out.ObjectNames = in.ObjectNames - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownPermissionsTeam. -func (in *UserDrilldownPermissionsTeam) DeepCopy() *UserDrilldownPermissionsTeam { - if in == nil { - return nil + 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]) + } } - out := new(UserDrilldownPermissionsTeam) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownProjectMemberships) DeepCopyInto(out *UserDrilldownProjectMemberships) { - *out = *in - out.ObjectNames = in.ObjectNames - out.AssignedVia = in.AssignedVia return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownProjectMemberships. -func (in *UserDrilldownProjectMemberships) DeepCopy() *UserDrilldownProjectMemberships { +// 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(UserDrilldownProjectMemberships) + out := new(UserObjectPermissions) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownVClusterRoles) DeepCopyInto(out *UserDrilldownVClusterRoles) { - *out = *in - out.ObjectNames = in.ObjectNames - out.AssignedVia = in.AssignedVia - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownVClusterRoles. -func (in *UserDrilldownVClusterRoles) DeepCopy() *UserDrilldownVClusterRoles { - if in == nil { - return nil - } - out := new(UserDrilldownVClusterRoles) - in.DeepCopyInto(out) - return out -} - -// 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 +// 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 } - out := new(UserInfo) - 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 *UserList) DeepCopyInto(out *UserList) { +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([]User, len(*in)) + *out = make([]UserObjectPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7273,18 +7446,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 UserObjectPermissionsList. +func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { if in == nil { return nil } - out := new(UserList) + out := new(UserObjectPermissionsList) 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 *UserObjectPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7310,6 +7483,33 @@ func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.TeamMemberships != nil { + in, out := &in.TeamMemberships, &out.TeamMemberships + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]ProjectMembership, len(*in)) + copy(*out, *in) + } + if in.ManagementRoles != nil { + in, out := &in.ManagementRoles, &out.ManagementRoles + *out = make([]ManagementRole, len(*in)) + copy(*out, *in) + } + if in.ClusterAccessRoles != nil { + in, out := &in.ClusterAccessRoles, &out.ClusterAccessRoles + *out = make([]ClusterAccessRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]VirtualClusterRole, len(*in)) + copy(*out, *in) + } return } @@ -8050,7 +8250,6 @@ func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstance *out = new(clusterv1.SleepModeConfig) (*in).DeepCopyInto(*out) } - in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } @@ -8064,6 +8263,24 @@ func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { + *out = *in + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterRole. +func (in *VirtualClusterRole) DeepCopy() *VirtualClusterRole { + if in == nil { + return nil + } + out := new(VirtualClusterRole) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { *out = *in @@ -8250,7 +8467,6 @@ func (in *VirtualClusterTemplateStatus) DeepCopyInto(out *VirtualClusterTemplate } } } - in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 1172339a..b92c4f2c 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -1113,7 +1113,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", @@ -1153,16 +1169,16 @@ var ( NewUserClustersREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewUserClustersRESTFunc(Factory) } - NewUserClustersRESTFunc NewRESTFunc - InternalUserDetailedPermissionsREST = builders.NewInternalSubresource( - "users", "UserDetailedPermissions", "detailed-permissions", - func() runtime.Object { return &UserDetailedPermissions{} }, + NewUserClustersRESTFunc NewRESTFunc + InternalUserObjectPermissionsREST = builders.NewInternalSubresource( + "users", "UserObjectPermissions", "object-permissions", + func() runtime.Object { return &UserObjectPermissions{} }, ) - NewUserDetailedPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewUserDetailedPermissionsRESTFunc(Factory) + NewUserObjectPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewUserObjectPermissionsRESTFunc(Factory) } - NewUserDetailedPermissionsRESTFunc NewRESTFunc - InternalUserPermissionsREST = builders.NewInternalSubresource( + NewUserObjectPermissionsRESTFunc NewRESTFunc + InternalUserPermissionsREST = builders.NewInternalSubresource( "users", "UserPermissions", "permissions", func() runtime.Object { return &UserPermissions{} }, ) @@ -1349,13 +1365,15 @@ var ( InternalTeamStatus, InternalTeamAccessKeysREST, InternalTeamClustersREST, + InternalTeamObjectPermissionsREST, + InternalTeamPermissionsREST, InternalTranslateVClusterResourceName, InternalTranslateVClusterResourceNameStatus, InternalUser, InternalUserStatus, InternalUserAccessKeysREST, InternalUserClustersREST, - InternalUserDetailedPermissionsREST, + InternalUserObjectPermissionsREST, InternalUserPermissionsREST, InternalUserProfileREST, InternalVirtualClusterInstance, @@ -1488,7 +1506,9 @@ type Apps struct { } type AssignedVia struct { - Team string `json:"team,omitempty"` + ObjectName `json:",inline"` + Kind string `json:"kind,omitempty"` + Owner bool `json:"owner,omitempty"` } type Audit struct { @@ -1695,6 +1715,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"` } @@ -1900,6 +1926,11 @@ type CostControlClusterConfig struct { OpenCost *storagev1.OpenCost `json:"opencost,omitempty"` } +type CostControlGPUSettings struct { + Enabled bool `json:"enabled,omitempty"` + AvgGPUPrice *CostControlResourcePrice `json:"averageGPUPrice,omitempty"` +} + type CostControlGlobalConfig struct { Metrics *storagev1.Metrics `json:"metrics,omitempty"` } @@ -1913,13 +1944,10 @@ 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"` } -type CurrentUserAccess struct { - Verbs []string `json:"verbs,omitempty"` -} - // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2197,7 +2225,7 @@ type KioskStatus struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2278,6 +2306,11 @@ type MaintenanceWindow struct { TimeWindow string `json:"timeWindow,omitempty"` } +type ManagementRole struct { + ObjectName `json:",inline"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` +} + type OIDC struct { Enabled bool `json:"enabled,omitempty"` WildcardRedirect bool `json:"wildcardRedirect,omitempty"` @@ -2305,13 +2338,19 @@ type OIDCClientSpec struct { type OIDCClientStatus struct { } -type ObjectNames struct { - Name string `json:"name"` +type ObjectName struct { + Namespace string `json:"namespace,omitempty"` + Name string `json:"name,omitempty"` DisplayName string `json:"displayName,omitempty"` } +type ObjectPermission struct { + ObjectName `json:",inline"` + Verbs []string `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` +} + +// +genclient // +genclient -// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type OwnedAccessKey struct { @@ -2411,6 +2450,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 { @@ -2437,6 +2482,11 @@ type ProjectMigrateVirtualClusterInstanceSource struct { Namespace string `json:"namespace,omitempty"` } +type ProjectRole struct { + ObjectName `json:",inline"` + IsAdmin bool `json:"isAdmin,omitempty"` +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2730,6 +2780,26 @@ type TeamClusters struct { Clusters []ClusterAccounts `json:"clusters,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamObjectPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + ObjectPermissions []ObjectPermission `json:"objectPermissions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type TeamPermissions struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Members []ObjectName `json:"members,omitempty"` + ProjectMemberships []ProjectMembership `json:"projectMemberships,omitempty"` + ManagementRoles []ManagementRole `json:"managementRoles,omitempty"` + ClusterAccessRoles []ClusterAccessRole `json:"clusterAccessRoles,omitempty"` + VirtualClusterRoles []VirtualClusterRole `json:"virtualClusterRoles,omitempty"` +} + type TeamSpec struct { storagev1.TeamSpec `json:",inline"` } @@ -2786,39 +2856,6 @@ type UserClusters struct { Clusters []ClusterAccounts `json:"clusters,omitempty"` } -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type UserDetailedPermissions struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - TeamMemberships []UserDrilldownPermissionsTeam `json:"teamMemberships,omitempty"` - RolesAssigned []UserDrilldownManagementRoles `json:"rolesAssigned,omitempty"` - ProjectMemberships []UserDrilldownProjectMemberships `json:"projectMemberships,omitempty"` - VirtualClusterRoles []UserDrilldownVClusterRoles `json:"virtualClusterRoles,omitempty"` -} - -type UserDrilldownManagementRoles struct { - ObjectNames `json:",omitempty"` - Management bool `json:"management,omitempty"` - AssignedVia AssignedVia `json:"assignedVia,omitempty"` -} - -type UserDrilldownPermissionsTeam struct { - ObjectNames `json:",omitempty"` -} - -type UserDrilldownProjectMemberships struct { - ObjectNames `json:",omitempty"` - Role string `json:"role,omitempty"` - AssignedVia AssignedVia `json:"assignedVia,omitempty"` -} - -type UserDrilldownVClusterRoles struct { - ObjectNames `json:",omitempty"` - Role string `json:"role,omitempty"` - AssignedVia AssignedVia `json:"assignedVia,omitempty"` -} - type UserInfo struct { storagev1.EntityInfo `json:",inline"` Teams []*storagev1.EntityInfo `json:"teams,omitempty"` @@ -2826,11 +2863,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 { @@ -2938,7 +2988,12 @@ type VirtualClusterInstanceStatus struct { CanUse bool `json:"canUse,omitempty"` CanUpdate bool `json:"canUpdate,omitempty"` Online bool `json:"online,omitempty"` - CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` +} + +type VirtualClusterRole struct { + ObjectName `json:",inline"` + Role string `json:"role,omitempty"` + AssignedVia AssignedVia `json:"assignedVia,omitempty"` } // +genclient @@ -2979,7 +3034,6 @@ type VirtualClusterTemplateSpec struct { type VirtualClusterTemplateStatus struct { storagev1.VirtualClusterTemplateStatus `json:",inline"` Apps []*storagev1.EntityInfo `json:"apps,omitempty"` - CurrentUserAccess CurrentUserAccess `json:"currentUserAccess,omitempty"` } // AgentAuditEvent Functions and Structs @@ -7399,6 +7453,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{} } @@ -7655,10 +7725,10 @@ type UserClustersList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type UserDetailedPermissionsList struct { +type UserObjectPermissionsList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []UserDetailedPermissions `json:"items"` + Items []UserObjectPermissions `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 0629addd..715f761d 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -462,6 +462,7 @@ func (in *Apps) DeepCopy() *Apps { // 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 } @@ -1174,6 +1175,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 @@ -2292,6 +2316,27 @@ func (in *CostControlClusterConfig) DeepCopy() *CostControlClusterConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CostControlGPUSettings) DeepCopyInto(out *CostControlGPUSettings) { + *out = *in + 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 CostControlGPUSettings. +func (in *CostControlGPUSettings) DeepCopy() *CostControlGPUSettings { + if in == nil { + return nil + } + out := new(CostControlGPUSettings) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CostControlGlobalConfig) DeepCopyInto(out *CostControlGlobalConfig) { *out = *in @@ -2342,6 +2387,11 @@ func (in *CostControlSettings) DeepCopyInto(out *CostControlSettings) { *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) @@ -2360,27 +2410,6 @@ func (in *CostControlSettings) DeepCopy() *CostControlSettings { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CurrentUserAccess) DeepCopyInto(out *CurrentUserAccess) { - *out = *in - 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 CurrentUserAccess. -func (in *CurrentUserAccess) DeepCopy() *CurrentUserAccess { - if in == nil { - return nil - } - out := new(CurrentUserAccess) - 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) { *out = *in @@ -4334,6 +4363,24 @@ func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagementRole) DeepCopyInto(out *ManagementRole) { + *out = *in + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia + return +} + +// 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(ManagementRole) + 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) { *out = *in @@ -4456,17 +4503,39 @@ func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectNames) DeepCopyInto(out *ObjectNames) { +func (in *ObjectName) DeepCopyInto(out *ObjectName) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectNames. -func (in *ObjectNames) DeepCopy() *ObjectNames { +// 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(ObjectNames) + out := new(ObjectName) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { + *out = *in + out.ObjectName = in.ObjectName + if in.Verbs != nil { + in, out := &in.Verbs, &out.Verbs + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectPermission. +func (in *ObjectPermission) DeepCopy() *ObjectPermission { + if in == nil { + return nil + } + out := new(ObjectPermission) in.DeepCopyInto(out) return out } @@ -5037,6 +5106,25 @@ func (in *ProjectMembersList) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectMembership) DeepCopyInto(out *ProjectMembership) { + *out = *in + out.ObjectName = in.ObjectName + out.Role = in.Role + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembership. +func (in *ProjectMembership) DeepCopy() *ProjectMembership { + if in == nil { + return nil + } + out := new(ProjectMembership) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in @@ -5189,6 +5277,23 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { + *out = *in + out.ObjectName = in.ObjectName + return +} + +// 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(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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in @@ -6735,6 +6840,158 @@ func (in *TeamList) DeepCopyObject() runtime.Object { 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 @@ -7023,59 +7280,41 @@ 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 *UserDetailedPermissions) DeepCopyInto(out *UserDetailedPermissions) { +func (in *UserInfo) DeepCopyInto(out *UserInfo) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.TeamMemberships != nil { - in, out := &in.TeamMemberships, &out.TeamMemberships - *out = make([]UserDrilldownPermissionsTeam, len(*in)) - copy(*out, *in) - } - if in.RolesAssigned != nil { - in, out := &in.RolesAssigned, &out.RolesAssigned - *out = make([]UserDrilldownManagementRoles, len(*in)) - copy(*out, *in) - } - if in.ProjectMemberships != nil { - in, out := &in.ProjectMemberships, &out.ProjectMemberships - *out = make([]UserDrilldownProjectMemberships, len(*in)) - copy(*out, *in) - } - if in.VirtualClusterRoles != nil { - in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles - *out = make([]UserDrilldownVClusterRoles, len(*in)) - copy(*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 UserDetailedPermissions. -func (in *UserDetailedPermissions) DeepCopy() *UserDetailedPermissions { +// 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(UserDetailedPermissions) + out := new(UserInfo) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserDetailedPermissions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDetailedPermissionsList) DeepCopyInto(out *UserDetailedPermissionsList) { +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([]UserDetailedPermissions, len(*in)) + *out = make([]User, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7083,18 +7322,18 @@ func (in *UserDetailedPermissionsList) DeepCopyInto(out *UserDetailedPermissions return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDetailedPermissionsList. -func (in *UserDetailedPermissionsList) DeepCopy() *UserDetailedPermissionsList { +// 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(UserDetailedPermissionsList) + out := new(UserList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *UserDetailedPermissionsList) DeepCopyObject() runtime.Object { +func (in *UserList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7102,112 +7341,46 @@ func (in *UserDetailedPermissionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownManagementRoles) DeepCopyInto(out *UserDrilldownManagementRoles) { +func (in *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { *out = *in - out.ObjectNames = in.ObjectNames - out.AssignedVia = in.AssignedVia - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownManagementRoles. -func (in *UserDrilldownManagementRoles) DeepCopy() *UserDrilldownManagementRoles { - if in == nil { - return nil - } - out := new(UserDrilldownManagementRoles) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownPermissionsTeam) DeepCopyInto(out *UserDrilldownPermissionsTeam) { - *out = *in - out.ObjectNames = in.ObjectNames - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownPermissionsTeam. -func (in *UserDrilldownPermissionsTeam) DeepCopy() *UserDrilldownPermissionsTeam { - if in == nil { - return nil + 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]) + } } - out := new(UserDrilldownPermissionsTeam) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownProjectMemberships) DeepCopyInto(out *UserDrilldownProjectMemberships) { - *out = *in - out.ObjectNames = in.ObjectNames - out.AssignedVia = in.AssignedVia return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownProjectMemberships. -func (in *UserDrilldownProjectMemberships) DeepCopy() *UserDrilldownProjectMemberships { +// 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(UserDrilldownProjectMemberships) + out := new(UserObjectPermissions) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserDrilldownVClusterRoles) DeepCopyInto(out *UserDrilldownVClusterRoles) { - *out = *in - out.ObjectNames = in.ObjectNames - out.AssignedVia = in.AssignedVia - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDrilldownVClusterRoles. -func (in *UserDrilldownVClusterRoles) DeepCopy() *UserDrilldownVClusterRoles { - if in == nil { - return nil - } - out := new(UserDrilldownVClusterRoles) - in.DeepCopyInto(out) - return out -} - -// 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 +// 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 } - out := new(UserInfo) - 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 *UserList) DeepCopyInto(out *UserList) { +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([]User, len(*in)) + *out = make([]UserObjectPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7215,18 +7388,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 UserObjectPermissionsList. +func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { if in == nil { return nil } - out := new(UserList) + out := new(UserObjectPermissionsList) 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 *UserObjectPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7252,6 +7425,33 @@ func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.TeamMemberships != nil { + in, out := &in.TeamMemberships, &out.TeamMemberships + *out = make([]ObjectName, len(*in)) + copy(*out, *in) + } + if in.ProjectMemberships != nil { + in, out := &in.ProjectMemberships, &out.ProjectMemberships + *out = make([]ProjectMembership, len(*in)) + copy(*out, *in) + } + if in.ManagementRoles != nil { + in, out := &in.ManagementRoles, &out.ManagementRoles + *out = make([]ManagementRole, len(*in)) + copy(*out, *in) + } + if in.ClusterAccessRoles != nil { + in, out := &in.ClusterAccessRoles, &out.ClusterAccessRoles + *out = make([]ClusterAccessRole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.VirtualClusterRoles != nil { + in, out := &in.VirtualClusterRoles, &out.VirtualClusterRoles + *out = make([]VirtualClusterRole, len(*in)) + copy(*out, *in) + } return } @@ -7992,7 +8192,6 @@ func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstance *out = new(clusterv1.SleepModeConfig) (*in).DeepCopyInto(*out) } - in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } @@ -8006,6 +8205,24 @@ func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { + *out = *in + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterRole. +func (in *VirtualClusterRole) DeepCopy() *VirtualClusterRole { + if in == nil { + return nil + } + out := new(VirtualClusterRole) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { *out = *in @@ -8192,7 +8409,6 @@ func (in *VirtualClusterTemplateStatus) DeepCopyInto(out *VirtualClusterTemplate } } } - in.CurrentUserAccess.DeepCopyInto(&out.CurrentUserAccess) return } diff --git a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go index ed66c960..b1d73905 100644 --- a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go +++ b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go @@ -87,6 +87,14 @@ type DevPodEnvironmentTemplateDefinition struct { // Inline holds an inline devcontainer.json definition // +optional Inline string `json:"inline,omitempty"` + + // WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based + // +optional + WorkspaceRepositoryCloneStrategy GitCloneStrategy `json:"workspaceRepositoryCloneStrategy,omitempty"` + + // WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace + // +optional + WorkspaceRepositorySkipLFS bool `json:"workspaceRepositorySkipLFS,omitempty"` } // GitEnvironmentTemplate stores configuration of Git environment template source @@ -117,6 +125,17 @@ type DevPodEnvironmentTemplateVersion struct { Version string `json:"version,omitempty"` } +// +enum +type GitCloneStrategy string + +// WARN: Need to match https://github.com/loft-sh/devpod/pkg/git/clone.go +const ( + FullCloneStrategy GitCloneStrategy = "" + BloblessCloneStrategy GitCloneStrategy = "blobless" + TreelessCloneStrategy GitCloneStrategy = "treeless" + ShallowCloneStrategy GitCloneStrategy = "shallow" +) + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go index 4696eff3..9094b798 100644 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go @@ -457,17 +457,6 @@ type DevPodWorkspaceVolumeClaimSpec struct { VolumeAttributesClassName *string `json:"volumeAttributesClassName,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 DevPodWorkspaceProvider struct { // Name is the name of the provider. This can also be an url. // +optional diff --git a/pkg/devpod/options.go b/pkg/devpod/cloneoptions.go similarity index 100% rename from pkg/devpod/options.go rename to pkg/devpod/cloneoptions.go diff --git a/pkg/devpod/platformoptions.go b/pkg/devpod/platformoptions.go index f65b176c..56becf13 100644 --- a/pkg/devpod/platformoptions.go +++ b/pkg/devpod/platformoptions.go @@ -1,5 +1,9 @@ package devpod +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" +) + type PlatformOptions struct { // Enabled is true if platform mode is enabled. Be careful with this option as this is only enabled // when executed on the platform side and not if a platform workspace is used locally. @@ -20,8 +24,10 @@ type PlatformOptions struct { RunnerSocket string `json:"runnerSocket,omitempty"` // environment template options - EnvironmentTemplate string `json:"environmentTemplate,omitempty"` - EnvironmentTemplateVersion string `json:"environmentTemplateVersion,omitempty"` + EnvironmentTemplate string `json:"environmentTemplate,omitempty"` + EnvironmentTemplateVersion string `json:"environmentTemplateVersion,omitempty"` + GitCloneStrategy storagev1.GitCloneStrategy `json:"gitCloneStrategy,omitempty"` + GitSkipLFS bool `json:"gitSkipLFS,omitempty"` // Kubernetes holds configuration for workspaces that need information about their kubernetes environment, i.e. // the ones running in virtual clusters or spaces diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 911e7e23..3af94f68 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -122,6 +122,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole": schema_pkg_apis_management_v1_ClusterAccessRole(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), @@ -160,10 +161,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings": schema_pkg_apis_management_v1_CostControlGPUSettings(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess": schema_pkg_apis_management_v1_CurrentUserAccess(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), @@ -242,12 +243,14 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.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.ObjectNames": schema_pkg_apis_management_v1_ObjectNames(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName": schema_pkg_apis_management_v1_ObjectName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission": schema_pkg_apis_management_v1_ObjectPermission(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), @@ -269,12 +272,14 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership": schema_pkg_apis_management_v1_ProjectMembership(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole": schema_pkg_apis_management_v1_ProjectRole(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), @@ -333,6 +338,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions": schema_pkg_apis_management_v1_TeamObjectPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissionsList": schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions": schema_pkg_apis_management_v1_TeamPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissionsList": schema_pkg_apis_management_v1_TeamPermissionsList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName": schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), @@ -344,14 +353,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.UserDetailedPermissions": schema_pkg_apis_management_v1_UserDetailedPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissionsList": schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles": schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam": schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships": schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles": schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions": schema_pkg_apis_management_v1_UserObjectPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissionsList": schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), @@ -380,6 +385,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), @@ -5296,10 +5302,39 @@ func schema_pkg_apis_management_v1_AssignedVia(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "team": { + "namespace": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + 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: "", }, }, }, @@ -6932,6 +6967,62 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac } } +func schema_pkg_apis_management_v1_ClusterAccessRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "clusters": { + SchemaProps: spec.SchemaProps{ + Description: "Clusters are the clusters that this assigned role applies", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"}, + } +} + func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -8918,6 +9009,33 @@ func schema_pkg_apis_management_v1_CostControlClusterConfig(ref common.Reference } } +func schema_pkg_apis_management_v1_CostControlGPUSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled specifies whether GPU settings should be available in the UI.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "averageGPUPrice": { + SchemaProps: spec.SchemaProps{ + Description: "AvgGPUPrice specifies the average GPU price.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"}, + } +} + func schema_pkg_apis_management_v1_CostControlGlobalConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -8989,6 +9107,12 @@ func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallb Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"), }, }, + "gpuSettings": { + SchemaProps: spec.SchemaProps{ + Description: "GPUSettings specifies GPU related settings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings"), + }, + }, "controlPlanePricePerCluster": { SchemaProps: spec.SchemaProps{ Description: "ControlPlanePricePerCluster specifies the price of one physical cluster.", @@ -8999,33 +9123,7 @@ func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"}, - } -} - -func schema_pkg_apis_management_v1_CurrentUserAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "verbs": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice"}, } } @@ -12369,6 +12467,48 @@ func schema_pkg_apis_management_v1_MaintenanceWindow(ref common.ReferenceCallbac } } +func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "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: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + } +} + func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -12568,26 +12708,83 @@ func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback } } -func schema_pkg_apis_management_v1_ObjectNames(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ 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{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ObjectPermission(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "verbs": { + SchemaProps: spec.SchemaProps{ + Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"verbs"}, }, }, } @@ -13614,6 +13811,55 @@ func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallba } } +func schema_pkg_apis_management_v1_ProjectMembership(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is the role given to the member", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"), + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"}, + } +} + func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -13848,6 +14094,46 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(re } } +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: "", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -16923,6 +17209,253 @@ func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common } } +func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "objectPermissions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "members": { + SchemaProps: spec.SchemaProps{ + Description: "Members gives users that are team members", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, + }, + }, + "projectMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectMemberships gives information about the team's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, + }, + }, + "managementRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ManagementRoles gives information about the team's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, + }, + }, + "clusterAccessRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -17435,79 +17968,62 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback } } -func schema_pkg_apis_management_v1_UserDetailedPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the kubernetes name of the object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "icon": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Icon is the icon of the user / team", + Type: []string{"string"}, + Format: "", }, }, - "teamMemberships": { + "username": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam"), - }, - }, - }, + Description: "The username that is used to login", + Type: []string{"string"}, + Format: "", }, }, - "rolesAssigned": { + "email": { 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.UserDrilldownManagementRoles"), - }, - }, - }, + Description: "The users email address", + Type: []string{"string"}, + Format: "", }, }, - "projectMemberships": { + "subject": { 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.UserDrilldownProjectMemberships"), - }, - }, - }, + Description: "The user subject", + Type: []string{"string"}, + Format: "", }, }, - "virtualClusterRoles": { + "teams": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Teams are the teams the user is part of", + Type: []string{"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.UserDrilldownVClusterRoles"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, @@ -17517,11 +18033,11 @@ func schema_pkg_apis_management_v1_UserDetailedPermissions(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownManagementRoles", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownPermissionsTeam", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownProjectMemberships", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDrilldownVClusterRoles", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17554,7 +18070,7 @@ func schema_pkg_apis_management_v1_UserDetailedPermissionsList(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.UserDetailedPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.User"), }, }, }, @@ -17565,154 +18081,44 @@ func schema_pkg_apis_management_v1_UserDetailedPermissionsList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserDetailedPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_UserDrilldownManagementRoles(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "management": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "assignedVia": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, - } -} - -func schema_pkg_apis_management_v1_UserDrilldownPermissionsTeam(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_UserDrilldownProjectMemberships(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "role": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "assignedVia": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, - } -} - -func schema_pkg_apis_management_v1_UserDrilldownVClusterRoles(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "role": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "assignedVia": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", - Type: []string{"string"}, - Format: "", - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "icon": { - SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", - Type: []string{"string"}, - Format: "", - }, - }, - "username": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "email": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "subject": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "teams": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams the user is part of", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), }, }, }, @@ -17722,11 +18128,11 @@ func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserList(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{ @@ -17759,7 +18165,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions"), }, }, }, @@ -17770,7 +18176,7 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -17828,11 +18234,81 @@ func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) }, }, }, + "teamMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "TeamMemberships gives information about the user's team membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, + }, + }, + "projectMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectMemberships gives information about the user's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, + }, + }, + "managementRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ManagementRoles gives information about the user's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, + }, + }, + "clusterAccessRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -19248,18 +19724,60 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.Refer Format: "", }, }, - "currentUserAccess": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", + Type: []string{"string"}, + Format: "", + }, + }, + "assignedVia": { SchemaProps: spec.SchemaProps{ - Description: "CurrentUserAccess returns which actions (get / update / delete) user can perform on the object.", + Description: "AssignedVia describes the resource that establishes the project membership", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, }, }, 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/management/v1.CurrentUserAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, } } @@ -19609,18 +20127,11 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.Refer }, }, }, - "currentUserAccess": { - SchemaProps: spec.SchemaProps{ - Description: "CurrentUserAccess returns which actions (get / update / delete) user can perform on the object.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CurrentUserAccess", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } @@ -22579,6 +23090,21 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref common.R Format: "", }, }, + "workspaceRepositoryCloneStrategy": { + SchemaProps: spec.SchemaProps{ + Description: "WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"", "blobless", "shallow", "treeless"}, + }, + }, + "workspaceRepositorySkipLFS": { + SchemaProps: spec.SchemaProps{ + Description: "WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -31556,10 +32082,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31721,10 +32246,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -31823,10 +32347,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -33224,10 +33747,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From f52ba150e7ff3bdf2ec3526ce3ae96ada8fdfd27 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:42:39 +0000 Subject: [PATCH 19/30] [skip ci] repo-sync --- go.mod | 4 +- go.sum | 8 +- .../install/zz_generated.api.register.go | 3 +- pkg/apis/management/v1/cluster_types.go | 2 - .../cluster_virtualclusterdefaults_types.go | 31 - pkg/apis/management/v1/config_types.go | 4 + .../management/v1/database_connector_types.go | 32 + .../v1/zz_generated.api.register.go | 26 +- .../management/v1/zz_generated.conversion.go | 206 ++++--- .../management/v1/zz_generated.deepcopy.go | 162 +++-- .../management/zz_generated.api.register.go | 199 ++++++- pkg/apis/management/zz_generated.deepcopy.go | 162 +++-- pkg/apis/storage/v1/accesskey_types.go | 9 +- .../v1/devpodworkspaceinstance_types.go | 1 - .../v1/devpodworkspacetemplate_types.go | 1 - pkg/apis/storage/v1/project_types.go | 2 +- pkg/apis/storage/v1/user_types.go | 4 + .../v1/virtualclusterinstance_types.go | 5 + pkg/apis/storage/v1/zz_generated.deepcopy.go | 68 ++- pkg/apis/ui/v1/ui_types.go | 4 + pkg/apis/zz_generated.api.register.go | 1 + .../versioned/typed/management/v1/cluster.go | 14 - .../typed/management/v1/databaseconnector.go | 54 ++ .../typed/management/v1/fake/fake_cluster.go | 11 - .../v1/fake/fake_databaseconnector.go | 36 ++ .../v1/fake/fake_management_client.go | 4 + .../management/v1/generated_expansion.go | 2 + .../typed/management/v1/management_client.go | 5 + pkg/informers/externalversions/generic.go | 2 + .../management/v1/databaseconnector.go | 73 +++ .../management/v1/interface.go | 7 + .../management/v1/databaseconnector.go | 32 + .../management/v1/expansion_generated.go | 4 + pkg/openapi/zz_generated.openapi.go | 554 +++++++++++------- 34 files changed, 1193 insertions(+), 539 deletions(-) delete mode 100644 pkg/apis/management/v1/cluster_virtualclusterdefaults_types.go create mode 100644 pkg/apis/management/v1/database_connector_types.go create mode 100644 pkg/clientset/versioned/typed/management/v1/databaseconnector.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_databaseconnector.go create mode 100644 pkg/informers/externalversions/management/v1/databaseconnector.go create mode 100644 pkg/listers/management/v1/databaseconnector.go diff --git a/go.mod b/go.mod index b6f121ec..f1d32a9d 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.23.1 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2 - github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.32 + github.com/loft-sh/admin-apis v0.0.0-20250425174750-c15742ce6043 + github.com/loft-sh/agentapi/v4 v4.4.0-alpha.3 github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.35.1 diff --git a/go.sum b/go.sum index 1a66ebbb..3a98a2f3 100644 --- a/go.sum +++ b/go.sum @@ -105,10 +105,10 @@ 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-20250221182517-7499d86167d2 h1:om1MqUdW84ZQc0GMGGgFfPI6xpTbrF+6DwKVq+76R44= -github.com/loft-sh/admin-apis v0.0.0-20250221182517-7499d86167d2/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.32 h1:exTKHDK+EwBZhz63SaQRr5SA3abxoBcgrFlXygnh/Og= -github.com/loft-sh/agentapi/v4 v4.3.0-devpod.alpha.32/go.mod h1:zkceRmB+KkkhDMHUQO1sQdcNfF2EPxl+RsSIEOAN/R8= +github.com/loft-sh/admin-apis v0.0.0-20250425174750-c15742ce6043 h1:AuSmNaSDJbGbBgNFYJgcq/8eAFSwuKADm7CLyEMLCSs= +github.com/loft-sh/admin-apis v0.0.0-20250425174750-c15742ce6043/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.4.0-alpha.3 h1:X0E/RnOMAHrrsWjTQCKBz9y4F7wTEmQHOgpYo0Kgw7E= +github.com/loft-sh/agentapi/v4 v4.4.0-alpha.3/go.mod h1:2ik+TI+fGtoINeFc9BqlUCJSupyRUek70Qbr3WpB6/4= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index b0829dbe..39fa4b80 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -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,6 +49,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ConfigList{}, &management.ConvertVirtualClusterConfig{}, &management.ConvertVirtualClusterConfigList{}, + &management.DatabaseConnector{}, + &management.DatabaseConnectorList{}, &management.DevPodEnvironmentTemplate{}, &management.DevPodEnvironmentTemplateList{}, &management.DevPodWorkspaceInstance{}, diff --git a/pkg/apis/management/v1/cluster_types.go b/pkg/apis/management/v1/cluster_types.go index 228c2f20..dc3b3d42 100644 --- a/pkg/apis/management/v1/cluster_types.go +++ b/pkg/apis/management/v1/cluster_types.go @@ -10,7 +10,6 @@ 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 @@ -23,7 +22,6 @@ import ( // +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 { 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 c21987cb..e198b6d8 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -669,6 +669,10 @@ type AuthenticationOIDC struct { // +optional EmailClaim string `json:"emailClaim,omitempty"` + // AllowedExtraClaims are claims of interest that are not part of User by default but may be provided by the OIDC provider. + // +optional + AllowedExtraClaims []string `json:"allowedExtraClaims,omitempty"` + // UsernamePrefix, if specified, causes claims mapping to username to be prefix with // the provided value. A value "oidc:" would result in usernames like "oidc:john". // +optional 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/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 1d6764fc..0b74ceca 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,6 +40,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ConfigList{}, &ConvertVirtualClusterConfig{}, &ConvertVirtualClusterConfigList{}, + &DatabaseConnector{}, + &DatabaseConnectorList{}, &DevPodEnvironmentTemplate{}, &DevPodEnvironmentTemplateList{}, &DevPodWorkspaceInstance{}, @@ -205,16 +206,11 @@ var ( nil, management.NewClusterResetREST, ), - builders.NewApiResourceWithStorage( - management.InternalClusterVirtualClusterDefaultsREST, - func() runtime.Object { return &ClusterVirtualClusterDefaults{} }, // Register versioned resource - nil, - management.NewClusterVirtualClusterDefaultsREST, - ), management.ManagementClusterAccessStorage, management.ManagementClusterRoleTemplateStorage, management.ManagementConfigStorage, management.ManagementConvertVirtualClusterConfigStorage, + management.ManagementDatabaseConnectorStorage, management.ManagementDevPodEnvironmentTemplateStorage, management.ManagementDevPodWorkspaceInstanceStorage, builders.NewApiResourceWithStorage( @@ -582,14 +578,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"` @@ -622,6 +610,14 @@ type ConvertVirtualClusterConfigList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type DatabaseConnectorList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DatabaseConnector `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type DevPodEnvironmentTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 90f7eb75..ed36fab6 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -730,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 { @@ -910,6 +890,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*DatabaseConnector)(nil), (*management.DatabaseConnector)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnector_To_management_DatabaseConnector(a.(*DatabaseConnector), b.(*management.DatabaseConnector), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DatabaseConnector)(nil), (*DatabaseConnector)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseConnector_To_v1_DatabaseConnector(a.(*management.DatabaseConnector), b.(*DatabaseConnector), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DatabaseConnectorList)(nil), (*management.DatabaseConnectorList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList(a.(*DatabaseConnectorList), b.(*management.DatabaseConnectorList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DatabaseConnectorList)(nil), (*DatabaseConnectorList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList(a.(*management.DatabaseConnectorList), b.(*DatabaseConnectorList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DatabaseConnectorSpec)(nil), (*management.DatabaseConnectorSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(a.(*DatabaseConnectorSpec), b.(*management.DatabaseConnectorSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.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((*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.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((*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 { @@ -3992,6 +4012,7 @@ func autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *Auth out.LoftUsernameClaim = in.LoftUsernameClaim out.UsernameClaim = in.UsernameClaim out.EmailClaim = in.EmailClaim + out.AllowedExtraClaims = *(*[]string)(unsafe.Pointer(&in.AllowedExtraClaims)) out.UsernamePrefix = in.UsernamePrefix out.GroupsClaim = in.GroupsClaim out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) @@ -4019,6 +4040,7 @@ func autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *mana out.LoftUsernameClaim = in.LoftUsernameClaim out.UsernameClaim = in.UsernameClaim out.EmailClaim = in.EmailClaim + out.AllowedExtraClaims = *(*[]string)(unsafe.Pointer(&in.AllowedExtraClaims)) out.UsernamePrefix = in.UsernamePrefix out.GroupsClaim = in.GroupsClaim out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) @@ -5055,56 +5077,6 @@ func Convert_management_ClusterStatus_To_v1_ClusterStatus(in *management.Cluster return autoConvert_management_ClusterStatus_To_v1_ClusterStatus(in, out, s) } -func autoConvert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(in *ClusterVirtualClusterDefaults, out *management.ClusterVirtualClusterDefaults, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DefaultTemplate = (*storagev1.VirtualClusterTemplate)(unsafe.Pointer(in.DefaultTemplate)) - out.LatestVersion = in.LatestVersion - out.Values = in.Values - out.Warning = in.Warning - return nil -} - -// Convert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults is an autogenerated conversion function. -func Convert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(in *ClusterVirtualClusterDefaults, out *management.ClusterVirtualClusterDefaults, s conversion.Scope) error { - return autoConvert_v1_ClusterVirtualClusterDefaults_To_management_ClusterVirtualClusterDefaults(in, out, s) -} - -func autoConvert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(in *management.ClusterVirtualClusterDefaults, out *ClusterVirtualClusterDefaults, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.DefaultTemplate = (*storagev1.VirtualClusterTemplate)(unsafe.Pointer(in.DefaultTemplate)) - out.LatestVersion = in.LatestVersion - out.Values = in.Values - out.Warning = in.Warning - return nil -} - -// Convert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults is an autogenerated conversion function. -func Convert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(in *management.ClusterVirtualClusterDefaults, out *ClusterVirtualClusterDefaults, s conversion.Scope) error { - return autoConvert_management_ClusterVirtualClusterDefaults_To_v1_ClusterVirtualClusterDefaults(in, out, s) -} - -func autoConvert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(in *ClusterVirtualClusterDefaultsList, out *management.ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.ClusterVirtualClusterDefaults)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList is an autogenerated conversion function. -func Convert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(in *ClusterVirtualClusterDefaultsList, out *management.ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - return autoConvert_v1_ClusterVirtualClusterDefaultsList_To_management_ClusterVirtualClusterDefaultsList(in, out, s) -} - -func autoConvert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(in *management.ClusterVirtualClusterDefaultsList, out *ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]ClusterVirtualClusterDefaults)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList is an autogenerated conversion function. -func Convert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(in *management.ClusterVirtualClusterDefaultsList, out *ClusterVirtualClusterDefaultsList, s conversion.Scope) error { - return autoConvert_management_ClusterVirtualClusterDefaultsList_To_v1_ClusterVirtualClusterDefaultsList(in, out, s) -} - func autoConvert_v1_Config_To_management_Config(in *Config, out *management.Config, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_ConfigSpec_To_management_ConfigSpec(&in.Spec, &out.Spec, s); err != nil { @@ -5533,6 +5505,100 @@ func Convert_management_CostControlSettings_To_v1_CostControlSettings(in *manage return autoConvert_management_CostControlSettings_To_v1_CostControlSettings(in, out, s) } +func autoConvert_v1_DatabaseConnector_To_management_DatabaseConnector(in *DatabaseConnector, out *management.DatabaseConnector, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DatabaseConnectorSpec_To_management_DatabaseConnectorSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_DatabaseConnector_To_management_DatabaseConnector is an autogenerated conversion function. +func Convert_v1_DatabaseConnector_To_management_DatabaseConnector(in *DatabaseConnector, out *management.DatabaseConnector, s conversion.Scope) error { + return autoConvert_v1_DatabaseConnector_To_management_DatabaseConnector(in, out, s) +} + +func autoConvert_management_DatabaseConnector_To_v1_DatabaseConnector(in *management.DatabaseConnector, out *DatabaseConnector, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DatabaseConnectorSpec_To_v1_DatabaseConnectorSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_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_DatabaseConnectorList_To_management_DatabaseConnectorList(in *DatabaseConnectorList, out *management.DatabaseConnectorList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DatabaseConnector)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_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_DatabaseConnectorList_To_v1_DatabaseConnectorList(in *management.DatabaseConnectorList, out *DatabaseConnectorList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DatabaseConnector)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_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_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_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_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_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_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { + return nil +} + +// 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_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { + return nil +} + +// 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_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index eb1e2a22..ab16dcfd 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -760,6 +760,11 @@ func (in *AuthenticationMicrosoft) DeepCopy() *AuthenticationMicrosoft { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthenticationOIDC) DeepCopyInto(out *AuthenticationOIDC) { *out = *in + if in.AllowedExtraClaims != nil { + in, out := &in.AllowedExtraClaims, &out.AllowedExtraClaims + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) @@ -1916,70 +1921,6 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterVirtualClusterDefaults) DeepCopyInto(out *ClusterVirtualClusterDefaults) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.DefaultTemplate != nil { - in, out := &in.DefaultTemplate, &out.DefaultTemplate - *out = new(storagev1.VirtualClusterTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaults. -func (in *ClusterVirtualClusterDefaults) DeepCopy() *ClusterVirtualClusterDefaults { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaults) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaults) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterVirtualClusterDefaultsList) DeepCopyInto(out *ClusterVirtualClusterDefaultsList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterVirtualClusterDefaults, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaultsList. -func (in *ClusterVirtualClusterDefaultsList) DeepCopy() *ClusterVirtualClusterDefaultsList { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaultsList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaultsList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Config) DeepCopyInto(out *Config) { *out = *in @@ -2435,6 +2376,99 @@ func (in *CostControlSettings) DeepCopy() *CostControlSettings { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 DatabaseConnector. +func (in *DatabaseConnector) DeepCopy() *DatabaseConnector { + if in == nil { + return nil + } + out := new(DatabaseConnector) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DatabaseConnector) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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([]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 DatabaseConnectorList. +func (in *DatabaseConnectorList) DeepCopy() *DatabaseConnectorList { + if in == nil { + return nil + } + out := new(DatabaseConnectorList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DatabaseConnectorList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DatabaseConnectorSpec) DeepCopyInto(out *DatabaseConnectorSpec) { + *out = *in + return +} + +// 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(DatabaseConnectorSpec) + in.DeepCopyInto(out) + return out +} + +// 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 + } + 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 *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index b92c4f2c..6d51054c 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -121,7 +121,17 @@ var ( NewConvertVirtualClusterConfigREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewConvertVirtualClusterConfigRESTFunc(Factory) } - NewConvertVirtualClusterConfigRESTFunc NewRESTFunc + NewConvertVirtualClusterConfigRESTFunc NewRESTFunc + ManagementDatabaseConnectorStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDatabaseConnector, + func() runtime.Object { return &DatabaseConnector{} }, // Register versioned resource + func() runtime.Object { return &DatabaseConnectorList{} }, // Register versioned resource list + NewDatabaseConnectorREST, + ) + NewDatabaseConnectorREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDatabaseConnectorRESTFunc(Factory) + } + NewDatabaseConnectorRESTFunc NewRESTFunc ManagementDevPodEnvironmentTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalDevPodEnvironmentTemplate, func() runtime.Object { return &DevPodEnvironmentTemplate{} }, // Register versioned resource @@ -581,16 +591,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{} }, @@ -638,6 +640,18 @@ var ( func() runtime.Object { return &ConvertVirtualClusterConfig{} }, func() runtime.Object { return &ConvertVirtualClusterConfigList{} }, ) + InternalDatabaseConnector = builders.NewInternalResource( + "databaseconnectors", + "DatabaseConnector", + func() runtime.Object { return &DatabaseConnector{} }, + func() runtime.Object { return &DatabaseConnectorList{} }, + ) + InternalDatabaseConnectorStatus = builders.NewInternalResourceStatus( + "databaseconnectors", + "DatabaseConnectorStatus", + func() runtime.Object { return &DatabaseConnector{} }, + func() runtime.Object { return &DatabaseConnectorList{} }, + ) InternalDevPodEnvironmentTemplate = builders.NewInternalResource( "devpodenvironmenttemplates", "DevPodEnvironmentTemplate", @@ -1283,7 +1297,6 @@ var ( InternalClusterMemberAccessREST, InternalClusterMembersREST, InternalClusterResetREST, - InternalClusterVirtualClusterDefaultsREST, InternalClusterAccess, InternalClusterAccessStatus, InternalClusterRoleTemplate, @@ -1292,6 +1305,8 @@ var ( InternalConfigStatus, InternalConvertVirtualClusterConfig, InternalConvertVirtualClusterConfigStatus, + InternalDatabaseConnector, + InternalDatabaseConnectorStatus, InternalDevPodEnvironmentTemplate, InternalDevPodEnvironmentTemplateStatus, InternalDevPodWorkspaceInstance, @@ -1611,6 +1626,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"` @@ -1835,17 +1851,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 @@ -1948,6 +1953,25 @@ type CostControlSettings struct { ControlPlanePricePerCluster *CostControlResourcePrice `json:"controlPlanePricePerCluster,omitempty"` } +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DatabaseConnector struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DatabaseConnectorSpec `json:"spec,omitempty"` + Status DatabaseConnectorStatus `json:"status,omitempty"` +} + +type DatabaseConnectorSpec struct { + Type string `json:"type,omitempty"` + DisplayName string `json:"displayName,omitempty"` +} + +type DatabaseConnectorStatus struct { +} + // +genclient // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2225,7 +2249,7 @@ type KioskStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -3604,14 +3628,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{} } @@ -4187,6 +4203,125 @@ func (s *storageConvertVirtualClusterConfig) DeleteConvertVirtualClusterConfig(c return sync, err } +// DatabaseConnector Functions and Structs +// +// +k8s:deepcopy-gen=false +type DatabaseConnectorStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type DatabaseConnectorStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DatabaseConnectorList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DatabaseConnector `json:"items"` +} + +func (DatabaseConnector) NewStatus() interface{} { + return DatabaseConnectorStatus{} +} + +func (pc *DatabaseConnector) GetStatus() interface{} { + return pc.Status +} + +func (pc *DatabaseConnector) SetStatus(s interface{}) { + pc.Status = s.(DatabaseConnectorStatus) +} + +func (pc *DatabaseConnector) GetSpec() interface{} { + return pc.Spec +} + +func (pc *DatabaseConnector) SetSpec(s interface{}) { + pc.Spec = s.(DatabaseConnectorSpec) +} + +func (pc *DatabaseConnector) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *DatabaseConnector) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc DatabaseConnector) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store DatabaseConnector. +// +k8s:deepcopy-gen=false +type DatabaseConnectorRegistry interface { + ListDatabaseConnectors(ctx context.Context, options *internalversion.ListOptions) (*DatabaseConnectorList, error) + GetDatabaseConnector(ctx context.Context, id string, options *metav1.GetOptions) (*DatabaseConnector, error) + CreateDatabaseConnector(ctx context.Context, id *DatabaseConnector) (*DatabaseConnector, error) + UpdateDatabaseConnector(ctx context.Context, id *DatabaseConnector) (*DatabaseConnector, error) + DeleteDatabaseConnector(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewDatabaseConnectorRegistry(sp builders.StandardStorageProvider) DatabaseConnectorRegistry { + return &storageDatabaseConnector{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageDatabaseConnector struct { + builders.StandardStorageProvider +} + +func (s *storageDatabaseConnector) ListDatabaseConnectors(ctx context.Context, options *internalversion.ListOptions) (*DatabaseConnectorList, error) { + if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { + return nil, fmt.Errorf("field selector not supported yet") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*DatabaseConnectorList), err +} + +func (s *storageDatabaseConnector) GetDatabaseConnector(ctx context.Context, id string, options *metav1.GetOptions) (*DatabaseConnector, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*DatabaseConnector), nil +} + +func (s *storageDatabaseConnector) CreateDatabaseConnector(ctx context.Context, object *DatabaseConnector) (*DatabaseConnector, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DatabaseConnector), nil +} + +func (s *storageDatabaseConnector) UpdateDatabaseConnector(ctx context.Context, object *DatabaseConnector) (*DatabaseConnector, error) { + st := s.GetStandardStorage() + obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DatabaseConnector), nil +} + +func (s *storageDatabaseConnector) DeleteDatabaseConnector(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + // DevPodEnvironmentTemplate Functions and Structs // // +k8s:deepcopy-gen=false diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 715f761d..91f35f80 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -760,6 +760,11 @@ func (in *AuthenticationMicrosoft) DeepCopy() *AuthenticationMicrosoft { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthenticationOIDC) DeepCopyInto(out *AuthenticationOIDC) { *out = *in + if in.AllowedExtraClaims != nil { + in, out := &in.AllowedExtraClaims, &out.AllowedExtraClaims + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]string, len(*in)) @@ -1891,70 +1896,6 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterVirtualClusterDefaults) DeepCopyInto(out *ClusterVirtualClusterDefaults) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.DefaultTemplate != nil { - in, out := &in.DefaultTemplate, &out.DefaultTemplate - *out = new(storagev1.VirtualClusterTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaults. -func (in *ClusterVirtualClusterDefaults) DeepCopy() *ClusterVirtualClusterDefaults { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaults) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaults) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterVirtualClusterDefaultsList) DeepCopyInto(out *ClusterVirtualClusterDefaultsList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterVirtualClusterDefaults, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterVirtualClusterDefaultsList. -func (in *ClusterVirtualClusterDefaultsList) DeepCopy() *ClusterVirtualClusterDefaultsList { - if in == nil { - return nil - } - out := new(ClusterVirtualClusterDefaultsList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterVirtualClusterDefaultsList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Config) DeepCopyInto(out *Config) { *out = *in @@ -2410,6 +2351,99 @@ func (in *CostControlSettings) DeepCopy() *CostControlSettings { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 DatabaseConnector. +func (in *DatabaseConnector) DeepCopy() *DatabaseConnector { + if in == nil { + return nil + } + out := new(DatabaseConnector) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DatabaseConnector) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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([]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 DatabaseConnectorList. +func (in *DatabaseConnectorList) DeepCopy() *DatabaseConnectorList { + if in == nil { + return nil + } + out := new(DatabaseConnectorList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DatabaseConnectorList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DatabaseConnectorSpec) DeepCopyInto(out *DatabaseConnectorSpec) { + *out = *in + return +} + +// 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(DatabaseConnectorSpec) + in.DeepCopyInto(out) + return out +} + +// 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 + } + 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 *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { *out = *in diff --git a/pkg/apis/storage/v1/accesskey_types.go b/pkg/apis/storage/v1/accesskey_types.go index 3edd54ae..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 @@ -344,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"` @@ -365,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"` diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go index 603dd475..eebd16ef 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devpodworkspaceinstance_types.go @@ -113,7 +113,6 @@ type DevPodWorkspaceInstanceSpec struct { // +optional Target WorkspaceTarget `json:"target,omitempty"` - // Deprecated: Use TargetRef instead // RunnerRef is the reference to the runner holding this workspace // +optional RunnerRef RunnerRef `json:"runnerRef,omitempty"` diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go index 9094b798..19e34f20 100644 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go @@ -97,7 +97,6 @@ type DevPodWorkspaceTemplateDefinition struct { // Provider holds the legacy VM provider configuration // - // Deprecated: use fields on template instead // +optional Provider *DevPodWorkspaceProvider `json:"provider,omitempty"` } diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index e46e333a..086e8e60 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -215,7 +215,7 @@ type Member struct { Name string `json:"name,omitempty"` // ClusterRole is the assigned role for the above member - ClusterRole string `json:"clusterRole,omitempty"` + ClusterRole string `json:"clusterRole"` } type AllowedRunner struct { diff --git a/pkg/apis/storage/v1/user_types.go b/pkg/apis/storage/v1/user_types.go index 244ac0ef..b2e60634 100644 --- a/pkg/apis/storage/v1/user_types.go +++ b/pkg/apis/storage/v1/user_types.go @@ -99,6 +99,10 @@ type UserSpec struct { // Access holds the access rights for users and teams // +optional Access []Access `json:"access,omitempty"` + + // ExtraClaims are additional claims that have been added to the user by an admin. + // +optional + ExtraClaims map[string]string `json:"extraClaims,omitempty"` } // UserStatus holds the status of an user diff --git a/pkg/apis/storage/v1/virtualclusterinstance_types.go b/pkg/apis/storage/v1/virtualclusterinstance_types.go index ddcfe6b1..5687f402 100644 --- a/pkg/apis/storage/v1/virtualclusterinstance_types.go +++ b/pkg/apis/storage/v1/virtualclusterinstance_types.go @@ -19,6 +19,7 @@ const ( InstanceProjectsSecretsSynced agentstoragev1.ConditionType = "ProjectSecretsSynced" InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" + InstanceVirtualClusterDBConnectorSynced agentstoragev1.ConditionType = "DBConnectorSynced" ) // +genclient @@ -317,6 +318,10 @@ type VirtualClusterHelmChart struct { // the version of the helm chart to use // +optional Version string `json:"version,omitempty"` + + // InsecureSkipTlsVerify skips the TLS verification for the helm chart + // +optional + InsecureSkipTlsVerify bool `json:"insecureSkipTlsVerify,omitempty"` } type PodSelector struct { diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index f78cb679..9c6dc090 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -78,32 +78,6 @@ func (in *AccessKey) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AccessKeyIdentity) DeepCopyInto(out *AccessKeyIdentity) { - *out = *in - if in.Groups != nil { - in, out := &in.Groups, &out.Groups - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ConnectorData != nil { - in, out := &in.ConnectorData, &out.ConnectorData - *out = make([]byte, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessKeyIdentity. -func (in *AccessKeyIdentity) DeepCopy() *AccessKeyIdentity { - if in == nil { - return nil - } - out := new(AccessKeyIdentity) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AccessKeyList) DeepCopyInto(out *AccessKeyList) { *out = *in @@ -391,7 +365,7 @@ func (in *AccessKeySpec) DeepCopyInto(out *AccessKeySpec) { } if in.Identity != nil { in, out := &in.Identity, &out.Identity - *out = new(AccessKeyIdentity) + *out = new(SSOIdentity) (*in).DeepCopyInto(*out) } if in.IdentityRefresh != nil { @@ -3974,6 +3948,39 @@ func (in *RunnerRef) DeepCopy() *RunnerRef { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SSOIdentity) DeepCopyInto(out *SSOIdentity) { + *out = *in + 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 SSOIdentity. +func (in *SSOIdentity) DeepCopy() *SSOIdentity { + if in == nil { + return nil + } + out := new(SSOIdentity) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SecretRef) DeepCopyInto(out *SecretRef) { *out = *in @@ -5091,6 +5098,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 } diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index 91c2f8bc..acf26dec 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -54,6 +54,10 @@ type UISettingsConfig struct { // the Loft UI! // +optional LogoURL string `json:"logoURL,omitempty"` + // SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing + // the Loft UI! + // +optional + SmallLogoURL string `json:"smallLogoURL,omitempty"` // LogoBackgroundColor is the color value (ex: "#12345") to use as the background color for the logo // +optional LogoBackgroundColor string `json:"logoBackgroundColor,omitempty"` diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index 2567f667..baab20ef 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -48,6 +48,7 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "ClusterRoleTemplate", "Config", "ConvertVirtualClusterConfig", + "DatabaseConnector", "DevPodEnvironmentTemplate", "DevPodWorkspacePreset", "DevPodWorkspaceTemplate", diff --git a/pkg/clientset/versioned/typed/management/v1/cluster.go b/pkg/clientset/versioned/typed/management/v1/cluster.go index 7494f204..e1216d7a 100644 --- a/pkg/clientset/versioned/typed/management/v1/cluster.go +++ b/pkg/clientset/versioned/typed/management/v1/cluster.go @@ -33,7 +33,6 @@ type ClusterInterface interface { 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) - ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (*managementv1.ClusterVirtualClusterDefaults, 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) @@ -85,19 +84,6 @@ func (c *clusters) ListMembers(ctx context.Context, clusterName string, options return } -// ListVirtualClusterDefaults takes name of the cluster, and returns the corresponding managementv1.ClusterVirtualClusterDefaults object, and an error if there is any. -func (c *clusters) ListVirtualClusterDefaults(ctx context.Context, clusterName string, options metav1.GetOptions) (result *managementv1.ClusterVirtualClusterDefaults, err error) { - result = &managementv1.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 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{} 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/fake/fake_cluster.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go index 3a9df03e..15c53e47 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_cluster.go @@ -57,17 +57,6 @@ func (c *fakeClusters) ListMembers(ctx context.Context, clusterName string, opti 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(c.Resource(), "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) { emptyResult := &v1.ClusterAgentConfig{} 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_management_client.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go index 1125258b..f9756ce2 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 @@ -48,6 +48,10 @@ func (c *FakeManagementV1) ConvertVirtualClusterConfigs() v1.ConvertVirtualClust return newFakeConvertVirtualClusterConfigs(c) } +func (c *FakeManagementV1) DatabaseConnectors() v1.DatabaseConnectorInterface { + return newFakeDatabaseConnectors(c) +} + func (c *FakeManagementV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { return newFakeDevPodEnvironmentTemplates(c) } diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index 08a7340b..647c7bdb 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -20,6 +20,8 @@ type ConfigExpansion interface{} type ConvertVirtualClusterConfigExpansion interface{} +type DatabaseConnectorExpansion interface{} + type DevPodEnvironmentTemplateExpansion interface{} type DevPodWorkspaceInstanceExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 2f009bb6..3deda38e 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -21,6 +21,7 @@ type ManagementV1Interface interface { ClusterRoleTemplatesGetter ConfigsGetter ConvertVirtualClusterConfigsGetter + DatabaseConnectorsGetter DevPodEnvironmentTemplatesGetter DevPodWorkspaceInstancesGetter DevPodWorkspacePresetsGetter @@ -95,6 +96,10 @@ func (c *ManagementV1Client) ConvertVirtualClusterConfigs() ConvertVirtualCluste return newConvertVirtualClusterConfigs(c) } +func (c *ManagementV1Client) DatabaseConnectors() DatabaseConnectorInterface { + return newDatabaseConnectors(c) +} + func (c *ManagementV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { return newDevPodEnvironmentTemplates(c) } diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index f94ec69c..b8f407e9 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -57,6 +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("databaseconnectors"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DatabaseConnectors().Informer()}, nil case v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodEnvironmentTemplates().Informer()}, nil case v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): diff --git a/pkg/informers/externalversions/management/v1/databaseconnector.go b/pkg/informers/externalversions/management/v1/databaseconnector.go new file mode 100644 index 00000000..3cb49c80 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/databaseconnector.go @@ -0,0 +1,73 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DatabaseConnectorInformer provides access to a shared informer and lister for +// DatabaseConnectors. +type DatabaseConnectorInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.DatabaseConnectorLister +} + +type databaseConnectorInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDatabaseConnectorInformer constructs a new informer for DatabaseConnector type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDatabaseConnectorInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDatabaseConnectorInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDatabaseConnectorInformer constructs a new informer for DatabaseConnector type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDatabaseConnectorInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().List(context.TODO(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().Watch(context.TODO(), options) + }, + }, + &apismanagementv1.DatabaseConnector{}, + resyncPeriod, + indexers, + ) +} + +func (f *databaseConnectorInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDatabaseConnectorInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *databaseConnectorInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.DatabaseConnector{}, f.defaultInformer) +} + +func (f *databaseConnectorInformer) Lister() managementv1.DatabaseConnectorLister { + return managementv1.NewDatabaseConnectorLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index 32e96d72..7bf7c76c 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -26,6 +26,8 @@ type Interface interface { Configs() ConfigInformer // ConvertVirtualClusterConfigs returns a ConvertVirtualClusterConfigInformer. ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInformer + // DatabaseConnectors returns a DatabaseConnectorInformer. + DatabaseConnectors() DatabaseConnectorInformer // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. @@ -146,6 +148,11 @@ func (v *version) ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInfo return &convertVirtualClusterConfigInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } +// DatabaseConnectors returns a DatabaseConnectorInformer. +func (v *version) DatabaseConnectors() DatabaseConnectorInformer { + return &databaseConnectorInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. func (v *version) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer { return &devPodEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} 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/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 6717d07a..092f3046 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -38,6 +38,10 @@ type ConfigListerExpansion interface{} // ConvertVirtualClusterConfigLister. type ConvertVirtualClusterConfigListerExpansion interface{} +// DatabaseConnectorListerExpansion allows custom methods to be added to +// DatabaseConnectorLister. +type DatabaseConnectorListerExpansion interface{} + // DevPodEnvironmentTemplateListerExpansion allows custom methods to be added to // DevPodEnvironmentTemplateLister. type DevPodEnvironmentTemplateListerExpansion interface{} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 3af94f68..88a50303 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -147,8 +147,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults": schema_pkg_apis_management_v1_ClusterVirtualClusterDefaults(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaultsList": schema_pkg_apis_management_v1_ClusterVirtualClusterDefaultsList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), @@ -165,6 +163,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector": schema_pkg_apis_management_v1_DatabaseConnector(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorList": schema_pkg_apis_management_v1_DatabaseConnectorList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec": schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus": schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), @@ -396,7 +398,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -539,6 +540,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity": schema_pkg_apis_storage_v1_SSOIdentity(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), @@ -1605,6 +1607,13 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallba Format: "", }, }, + "allowBefore": { + SchemaProps: spec.SchemaProps{ + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", + Type: []string{"string"}, + Format: "", + }, + }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status shows the status of the feature (see type FeatureStatus)", @@ -1612,6 +1621,13 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallba Format: "", }, }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"name"}, }, @@ -2026,6 +2042,13 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref common.ReferenceCallback Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), }, }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this limit belongs to", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, @@ -3013,6 +3036,13 @@ func schema_apis_loft_cluster_v1_FeatureStatus(ref common.ReferenceCallback) com Format: "", }, }, + "allowBefore": { + SchemaProps: spec.SchemaProps{ + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", + Type: []string{"string"}, + Format: "", + }, + }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status shows the status of the feature (see type FeatureStatus)", @@ -3020,6 +3050,13 @@ func schema_apis_loft_cluster_v1_FeatureStatus(ref common.ReferenceCallback) com Format: "", }, }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", + }, + }, "internal": { SchemaProps: spec.SchemaProps{ Description: "Internal marks internal features that should not be shown on the license view", @@ -6186,6 +6223,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\".", @@ -8339,115 +8391,6 @@ func schema_pkg_apis_management_v1_ClusterStatus(ref common.ReferenceCallback) c } } -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": { - 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.ClusterVirtualClusterDefaults"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterVirtualClusterDefaults", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - func schema_pkg_apis_management_v1_Config(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -9127,6 +9070,138 @@ func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallb } } +func schema_pkg_apis_management_v1_DatabaseConnector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DatabaseConnector represents a connector that can be used to provision and manage a backingstore for a vCluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.DatabaseConnectorSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_DatabaseConnectorList(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.DatabaseConnector"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DatabaseConnectorSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The client id of the client", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DatabaseConnectorStatus holds the status", + Type: []string{"object"}, + }, + }, + } +} + func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -9783,7 +9858,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.Refere }, "runnerRef": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: Use TargetRef instead RunnerRef is the reference to the runner holding this workspace", + Description: "RunnerRef is the reference to the runner holding this workspace", Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), }, @@ -11470,6 +11545,13 @@ func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) c Format: "", }, }, + "allowBefore": { + SchemaProps: spec.SchemaProps{ + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", + Type: []string{"string"}, + Format: "", + }, + }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status shows the status of the feature (see type FeatureStatus)", @@ -11477,6 +11559,13 @@ func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) c Format: "", }, }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", + }, + }, "internal": { SchemaProps: spec.SchemaProps{ Description: "Internal marks internal features that should not be shown on the license view", @@ -12985,7 +13074,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallba "identity": { SchemaProps: spec.SchemaProps{ Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, "identityRefresh": { @@ -13017,7 +13106,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } @@ -15219,7 +15308,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba "identity": { SchemaProps: spec.SchemaProps{ Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, "identityRefresh": { @@ -15251,7 +15340,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } @@ -18813,6 +18902,22 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common }, }, }, + "extraClaims": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraClaims are additional claims that have been added to the user by an admin.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, }, @@ -20263,82 +20368,6 @@ func schema_pkg_apis_storage_v1_AccessKey(ref common.ReferenceCallback) common.O } } -func schema_pkg_apis_storage_v1_AccessKeyIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "userId": { - SchemaProps: spec.SchemaProps{ - Description: "The subject of the user", - Type: []string{"string"}, - Format: "", - }, - }, - "username": { - SchemaProps: spec.SchemaProps{ - Description: "The username", - Type: []string{"string"}, - Format: "", - }, - }, - "preferredUsername": { - SchemaProps: spec.SchemaProps{ - Description: "The preferred username / display name", - Type: []string{"string"}, - Format: "", - }, - }, - "email": { - SchemaProps: spec.SchemaProps{ - Description: "The user email", - Type: []string{"string"}, - Format: "", - }, - }, - "emailVerified": { - SchemaProps: spec.SchemaProps{ - Description: "If the user email was verified", - Type: []string{"boolean"}, - Format: "", - }, - }, - "groups": { - SchemaProps: spec.SchemaProps{ - Description: "The groups from the identity provider", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "connector": { - SchemaProps: spec.SchemaProps{ - Description: "Connector is the name of the connector this access key was created from", - Type: []string{"string"}, - Format: "", - }, - }, - "connectorData": { - SchemaProps: spec.SchemaProps{ - Description: "ConnectorData holds data used by the connector for subsequent requests after initial authentication, such as access tokens for upstream providers.\n\nThis data is never shared with end users, OAuth clients, or through the API.", - Type: []string{"string"}, - Format: "byte", - }, - }, - }, - }, - }, - } -} - func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -20924,7 +20953,7 @@ func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) comm "identity": { SchemaProps: spec.SchemaProps{ Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, "identityRefresh": { @@ -20956,7 +20985,7 @@ func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyIdentity", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } @@ -24126,7 +24155,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.Reference }, "runnerRef": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: Use TargetRef instead RunnerRef is the reference to the runner holding this workspace", + Description: "RunnerRef is the reference to the runner holding this workspace", Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), }, @@ -25180,7 +25209,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.Ref }, "provider": { SchemaProps: spec.SchemaProps{ - Description: "Provider holds the legacy VM provider configuration\n\nDeprecated: use fields on template instead", + Description: "Provider holds the legacy VM provider configuration", Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), }, }, @@ -26417,11 +26446,13 @@ func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.Open "clusterRole": { SchemaProps: spec.SchemaProps{ Description: "ClusterRole is the assigned role for the above member", + Default: "", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"clusterRole"}, }, }, } @@ -27679,6 +27710,98 @@ func schema_pkg_apis_storage_v1_RunnerRef(ref common.ReferenceCallback) common.O } } +func schema_pkg_apis_storage_v1_SSOIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "userId": { + SchemaProps: spec.SchemaProps{ + Description: "The subject of the user", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username", + Type: []string{"string"}, + Format: "", + }, + }, + "preferredUsername": { + SchemaProps: spec.SchemaProps{ + Description: "The preferred username / display name", + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Description: "The user email", + Type: []string{"string"}, + Format: "", + }, + }, + "emailVerified": { + SchemaProps: spec.SchemaProps{ + Description: "If the user email was verified", + Type: []string{"boolean"}, + Format: "", + }, + }, + "extraClaims": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraClaims are claims that are not otherwise contained in this struct but may be provided by the OIDC provider. Only extra claims that are allowed by the auth config are included.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "The groups from the identity provider", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "connector": { + SchemaProps: spec.SchemaProps{ + Description: "Connector is the name of the connector this access key was created from", + Type: []string{"string"}, + Format: "", + }, + }, + "connectorData": { + SchemaProps: spec.SchemaProps{ + Description: "ConnectorData holds data used by the connector for subsequent requests after initial authentication, such as access tokens for upstream providers.\n\nThis data is never shared with end users, OAuth clients, or through the API.", + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_storage_v1_SecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -29616,6 +29739,22 @@ func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.Op }, }, }, + "extraClaims": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraClaims are additional claims that have been added to the user by an admin.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, }, @@ -29932,6 +30071,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: "", + }, + }, }, }, }, @@ -31116,6 +31262,13 @@ func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common Format: "", }, }, + "smallLogoURL": { + SchemaProps: spec.SchemaProps{ + Description: "SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing the Loft UI!", + Type: []string{"string"}, + Format: "", + }, + }, "logoBackgroundColor": { SchemaProps: spec.SchemaProps{ Description: "LogoBackgroundColor is the color value (ex: \"#12345\") to use as the background color for the logo", @@ -31224,6 +31377,13 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Format: "", }, }, + "smallLogoURL": { + SchemaProps: spec.SchemaProps{ + Description: "SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing the Loft UI!", + Type: []string{"string"}, + Format: "", + }, + }, "logoBackgroundColor": { SchemaProps: spec.SchemaProps{ Description: "LogoBackgroundColor is the color value (ex: \"#12345\") to use as the background color for the logo", From 399460404e3b97afe47abba550d272ef97db0cc9 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Sun, 6 Jul 2025 16:30:04 +0000 Subject: [PATCH 20/30] [skip ci] repo-sync --- go.mod | 74 ++++++++++++------------- go.sum | 167 +++++++++++++++++++++++++++++---------------------------- 2 files changed, 122 insertions(+), 119 deletions(-) diff --git a/go.mod b/go.mod index f1d32a9d..c95f7f9a 100644 --- a/go.mod +++ b/go.mod @@ -1,30 +1,31 @@ module github.com/loft-sh/api/v4 -go 1.23.1 +go 1.24.0 + +toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20250425174750-c15742ce6043 - github.com/loft-sh/agentapi/v4 v4.4.0-alpha.3 - github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 - google.golang.org/grpc v1.67.1 - google.golang.org/protobuf v1.35.1 - k8s.io/api v0.32.1 - k8s.io/apimachinery v0.32.1 - k8s.io/apiserver v0.32.1 - k8s.io/client-go v0.32.1 + github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae + github.com/loft-sh/agentapi/v4 v4.4.0-alpha.5 + github.com/loft-sh/apiserver v0.0.0-20250508152823-e8b51d3b592b + google.golang.org/grpc v1.68.1 + google.golang.org/protobuf v1.36.5 + k8s.io/api v0.33.1 + k8s.io/apimachinery v0.33.1 + k8s.io/apiserver v0.33.1 + k8s.io/client-go v0.33.1 k8s.io/klog/v2 v2.130.1 - k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f - k8s.io/metrics v0.32.1 + k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff + k8s.io/metrics v0.33.1 sigs.k8s.io/controller-runtime v0.20.1 sigs.k8s.io/controller-tools v0.16.4 ) require ( - cel.dev/expr v0.18.0 // indirect + cel.dev/expr v0.19.1 // indirect github.com/NYTimes/gziphandler v1.1.1 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect - github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect @@ -46,50 +47,48 @@ require ( github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/btree v1.1.3 // indirect - github.com/google/cel-go v0.22.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/cel-go v0.23.2 // indirect + github.com/google/gnostic-models v0.6.9 // indirect + github.com/google/go-cmp v0.7.0 // indirect github.com/google/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/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.11 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus/client_golang v1.20.5 // indirect + github.com/prometheus/client_golang v1.22.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.60.0 // indirect + github.com/prometheus/common v0.62.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect github.com/spf13/cobra v1.8.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/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.etcd.io/etcd/api/v3 v3.5.21 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.5.21 // indirect + go.etcd.io/etcd/client/v3 v3.5.21 // indirect go.opentelemetry.io/auto/sdk v1.1.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect go.opentelemetry.io/otel v1.33.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.30.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.30.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 // indirect go.opentelemetry.io/otel/metric v1.33.0 // indirect - go.opentelemetry.io/otel/sdk v1.30.0 // indirect + go.opentelemetry.io/otel/sdk v1.33.0 // indirect go.opentelemetry.io/otel/trace v1.33.0 // indirect - go.opentelemetry.io/proto/otlp v1.3.1 // indirect + go.opentelemetry.io/proto/otlp v1.4.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/crypto v0.36.0 // indirect golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect golang.org/x/mod v0.22.0 // indirect - golang.org/x/net v0.37.0 // indirect + golang.org/x/net v0.38.0 // indirect golang.org/x/oauth2 v0.28.0 // indirect golang.org/x/sync v0.12.0 // indirect golang.org/x/sys v0.31.0 // indirect @@ -97,17 +96,18 @@ require ( golang.org/x/text v0.23.0 // indirect golang.org/x/time v0.9.0 // indirect golang.org/x/tools v0.29.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/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.32.1 // indirect - k8s.io/component-base v0.32.1 // indirect + k8s.io/apiextensions-apiserver v0.33.1 // indirect + k8s.io/component-base v0.33.1 // indirect k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect - sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 // indirect + sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect + sigs.k8s.io/randfill v1.0.0 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) diff --git a/go.sum b/go.sum index 3a98a2f3..7c0fe98d 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,9 @@ -cel.dev/expr v0.18.0 h1:CJ6drgk+Hf96lkLikr4rFf19WrU0BOWEihyZnI2TAzo= -cel.dev/expr v0.18.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= +cel.dev/expr v0.19.1 h1:NciYrtDRIR0lNCnH1LFJegdjspNx9fI59O7TWcua/W4= +cel.dev/expr v0.19.1/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= -github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= @@ -57,19 +55,19 @@ github.com/gobuffalo/flect v1.0.3/go.mod h1:A5msMlrHtLqh9umBSnvabjsMrCcCpAyzglnD 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-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= +github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/cel-go v0.22.0 h1:b3FJZxpiv1vTMo2/5RDUqAHPxkT8mmMfJIrq1llbf7g= -github.com/google/cel-go v0.22.0/go.mod h1:BuznPXXfQDpXKWQ9sPW3TzlAJN5zzFe+i9tIs0yC4s8= -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/cel-go v0.23.2 h1:UdEe3CvQh3Nv+E/j9r1Y//WO0K0cSyD7/y0bzyLIMI4= +github.com/google/cel-go v0.23.2/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo= +github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw= +github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -77,16 +75,16 @@ github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgY github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= -github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= +github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 h1:asbCHRVmodnJTuQ3qamDwqVOIjwqUPTYmYuemVOx+Ys= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0/go.mod h1:ggCgvZ2r7uOoQjOyu2Y1NhHmEPPzzuhWgcza5M1Ji1I= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 h1:TmHmbvxPmaegwhDubVz0lICL0J5Ka2vwTzhoePEXsGE= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0/go.mod h1:qztMSjm835F2bXf+5HKAPIS5qsmQDqZna/PgVt4rWtI= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/jonboulle/clockwork v0.4.0 h1:p4Cf1aMWXnXAUh8lVfewRBx1zaTSYKrKMF2g3ST4RZ4= @@ -97,20 +95,20 @@ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnr github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= -github.com/klauspost/compress v1.17.11/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-20250425174750-c15742ce6043 h1:AuSmNaSDJbGbBgNFYJgcq/8eAFSwuKADm7CLyEMLCSs= -github.com/loft-sh/admin-apis v0.0.0-20250425174750-c15742ce6043/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.4.0-alpha.3 h1:X0E/RnOMAHrrsWjTQCKBz9y4F7wTEmQHOgpYo0Kgw7E= -github.com/loft-sh/agentapi/v4 v4.4.0-alpha.3/go.mod h1:2ik+TI+fGtoINeFc9BqlUCJSupyRUek70Qbr3WpB6/4= -github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459 h1:6SrgBtT1S9ANsQMoO/O0Mq+hs9EbC5te5kPqOBfg5UI= -github.com/loft-sh/apiserver v0.0.0-20250206205835-422f1d472459/go.mod h1:rung3jsKjaVAtykQN0vWmFHhx2A/umpRyAae8BJVSeE= +github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae h1:nyrRyiEi1mssYel6z3NaUiHBaFG2bBA6HCsADWxSMo0= +github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.4.0-alpha.5 h1:CRlDSqGMjUISFtwC+Xfw50iMD4/w1QS0P6iRDZI9eyc= +github.com/loft-sh/agentapi/v4 v4.4.0-alpha.5/go.mod h1:N6gGurI16TFYeD9eBZ2nK7D8LX1iaH2IHm8Hzt61Kbc= +github.com/loft-sh/apiserver v0.0.0-20250508152823-e8b51d3b592b h1:v/yQiR772ioVe5RfEVFjewN7iEtgUlgpiMfv+Q/8CZw= +github.com/loft-sh/apiserver v0.0.0-20250508152823-e8b51d3b592b/go.mod h1:O8dvTzapPh7Fvg7tYReb/wtOIwPSTYTYfXZFKF/peTo= 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= @@ -133,12 +131,12 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE 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.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= -github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= +github.com/prometheus/client_golang v1.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= +github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJNllA= -github.com/prometheus/common v0.60.0/go.mod h1:h0LYf1R1deLSKtD4Vdg8gy4RuOvENW2J/h19V5NADQw= +github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= +github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= @@ -157,6 +155,8 @@ github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8w 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= @@ -173,40 +173,40 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= -go.etcd.io/etcd/api/v3 v3.5.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.16 h1:kQrn9o5czVNaukf2A2At43cE9ZtWauOtf9vRZuiKXow= -go.etcd.io/etcd/client/v2 v2.305.16/go.mod h1:h9YxWCzcdvZENbfzBTFCnoNumr2ax3F19sKMqHFmXHE= -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.16 h1:cnavs5WSPWeK4TYwPYfmcr3Joz9BH+TZ6qoUtz6/+mc= -go.etcd.io/etcd/pkg/v3 v3.5.16/go.mod h1:+lutCZHG5MBBFI/U4eYT5yL7sJfnexsoM20Y0t2uNuY= -go.etcd.io/etcd/raft/v3 v3.5.16 h1:zBXA3ZUpYs1AwiLGPafYAKKl/CORn/uaxYDwlNwndAk= -go.etcd.io/etcd/raft/v3 v3.5.16/go.mod h1:P4UP14AxofMJ/54boWilabqqWoW9eLodl6I5GdGzazI= -go.etcd.io/etcd/server/v3 v3.5.16 h1:d0/SAdJ3vVsZvF8IFVb1k8zqMZ+heGcNfft71ul9GWE= -go.etcd.io/etcd/server/v3 v3.5.16/go.mod h1:ynhyZZpdDp1Gq49jkUg5mfkDWZwXnn3eIqCqtJnrD/s= +go.etcd.io/etcd/api/v3 v3.5.21 h1:A6O2/JDb3tvHhiIz3xf9nJ7REHvtEFJJ3veW3FbCnS8= +go.etcd.io/etcd/api/v3 v3.5.21/go.mod h1:c3aH5wcvXv/9dqIw2Y810LDXJfhSYdHQ0vxmP3CCHVY= +go.etcd.io/etcd/client/pkg/v3 v3.5.21 h1:lPBu71Y7osQmzlflM9OfeIV2JlmpBjqBNlLtcoBqUTc= +go.etcd.io/etcd/client/pkg/v3 v3.5.21/go.mod h1:BgqT/IXPjK9NkeSDjbzwsHySX3yIle2+ndz28nVsjUs= +go.etcd.io/etcd/client/v2 v2.305.21 h1:eLiFfexc2mE+pTLz9WwnoEsX5JTTpLCYVivKkmVXIRA= +go.etcd.io/etcd/client/v2 v2.305.21/go.mod h1:OKkn4hlYNf43hpjEM3Ke3aRdUkhSl8xjKjSf8eCq2J8= +go.etcd.io/etcd/client/v3 v3.5.21 h1:T6b1Ow6fNjOLOtM0xSoKNQt1ASPCLWrF9XMHcH9pEyY= +go.etcd.io/etcd/client/v3 v3.5.21/go.mod h1:mFYy67IOqmbRf/kRUvsHixzo3iG+1OF2W2+jVIQRAnU= +go.etcd.io/etcd/pkg/v3 v3.5.21 h1:jUItxeKyrDuVuWhdh0HtjUANwyuzcb7/FAeUfABmQsk= +go.etcd.io/etcd/pkg/v3 v3.5.21/go.mod h1:wpZx8Egv1g4y+N7JAsqi2zoUiBIUWznLjqJbylDjWgU= +go.etcd.io/etcd/raft/v3 v3.5.21 h1:dOmE0mT55dIUsX77TKBLq+RgyumsQuYeiRQnW/ylugk= +go.etcd.io/etcd/raft/v3 v3.5.21/go.mod h1:fmcuY5R2SNkklU4+fKVBQi2biVp5vafMrWUEj4TJ4Cs= +go.etcd.io/etcd/server/v3 v3.5.21 h1:9w0/k12majtgarGmlMVuhwXRI2ob3/d1Ik3X5TKo0yU= +go.etcd.io/etcd/server/v3 v3.5.21/go.mod h1:G1mOzdwuzKT1VRL7SqRchli/qcFrtLBTAQ4lV20sXXo= go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.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/google.golang.org/grpc/otelgrpc v0.58.0 h1:PS8wXpbyaDJQ2VDHHncMe9Vct0Zn1fEjpsjrLxGJoSc= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0/go.mod h1:HDBUsEjOuRC0EzKZ1bSaRGZWUBAzo+MhAcUUORSr4D0= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 h1:yd02MEjBdJkG3uabWP9apV+OuWRIXGDuJEUJbOHmCFU= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0/go.mod h1:umTcuxiv1n/s/S6/c2AT/g2CQ7u5C59sHDNmfSwgz7Q= go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= go.opentelemetry.io/otel v1.33.0/go.mod h1:SUUkR6csvUQl+yjReHu5uM3EtVV7MBm5FHKRlNx4I8I= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.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/exporters/otlp/otlptrace v1.33.0 h1:Vh5HayB/0HHfOQA7Ctx69E/Y/DcQSMPpKANYVMQ7fBA= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0/go.mod h1:cpgtDBaqD/6ok/UG0jT15/uKjAY8mRA53diogHBg3UI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 h1:5pojmb1U1AogINhN3SurB+zm/nIcusopeBNp42f45QM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0/go.mod h1:57gTHJSE5S1tqg+EKsLPlTWhpHMsWlVmer+LA926XiA= go.opentelemetry.io/otel/metric v1.33.0 h1:r+JOocAyeRVXD8lZpjdQjzMadVZp2M4WmQ+5WtEnklQ= go.opentelemetry.io/otel/metric v1.33.0/go.mod h1:L9+Fyctbp6HFTddIxClbQkjtubW6O9QS3Ann/M82u6M= -go.opentelemetry.io/otel/sdk v1.30.0 h1:cHdik6irO49R5IysVhdn8oaiR9m8XluDaJAs4DfOrYE= -go.opentelemetry.io/otel/sdk v1.30.0/go.mod h1:p14X4Ok8S+sygzblytT1nqG98QG2KYKv++HE0LY/mhg= +go.opentelemetry.io/otel/sdk v1.33.0 h1:iax7M131HuAm9QkZotNHEfstof92xM+N8sr3uHXc2IM= +go.opentelemetry.io/otel/sdk v1.33.0/go.mod h1:A1Q5oi7/9XaMlIWzPSxLRWOI8nG3FnzHJNbiENQuihM= go.opentelemetry.io/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qqW2d/s= go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= -go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= -go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= +go.opentelemetry.io/proto/otlp v1.4.0 h1:TA9WRvW6zMwP+Ssb6fLoUIuirti1gGbP28GcKG1jgeg= +go.opentelemetry.io/proto/otlp v1.4.0/go.mod h1:PPBWZIP98o2ElSqI35IHfu7hIhSwvc5N38Jw8pXuGFY= go.uber.org/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= @@ -228,8 +228,8 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn 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.37.0 h1:1zLorHbz+LYj7MQlSf1+2tPIIgibq2eL5xkrGk6f+2c= -golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= +golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -264,14 +264,14 @@ 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.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= -google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q= +google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 h1:8ZmaLZE4XWrtU3MyClkYqqtl6Oegr3235h7jxsDyqCY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU= +google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0= +google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw= +google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= +google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -288,35 +288,38 @@ 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.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc= -k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k= -k8s.io/apiextensions-apiserver v0.32.1 h1:hjkALhRUeCariC8DiVmb5jj0VjIc1N0DREP32+6UXZw= -k8s.io/apiextensions-apiserver v0.32.1/go.mod h1:sxWIGuGiYov7Io1fAS2X06NjMIk5CbRHc2StSmbaQto= -k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs= -k8s.io/apimachinery v0.32.1/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= -k8s.io/apiserver v0.32.1 h1:oo0OozRos66WFq87Zc5tclUX2r0mymoVHRq8JmR7Aak= -k8s.io/apiserver v0.32.1/go.mod h1:UcB9tWjBY7aryeI5zAgzVJB/6k7E97bkr1RgqDz0jPw= -k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU= -k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg= -k8s.io/component-base v0.32.1 h1:/5IfJ0dHIKBWysGV0yKTFfacZ5yNV1sulPh3ilJjRZk= -k8s.io/component-base v0.32.1/go.mod h1:j1iMMHi/sqAHeG5z+O9BFNCF698a1u0186zkjMZQ28w= +k8s.io/api v0.33.1 h1:tA6Cf3bHnLIrUK4IqEgb2v++/GYUtqiu9sRVk3iBXyw= +k8s.io/api v0.33.1/go.mod h1:87esjTn9DRSRTD4fWMXamiXxJhpOIREjWOSjsW1kEHw= +k8s.io/apiextensions-apiserver v0.33.1 h1:N7ccbSlRN6I2QBcXevB73PixX2dQNIW0ZRuguEE91zI= +k8s.io/apiextensions-apiserver v0.33.1/go.mod h1:uNQ52z1A1Gu75QSa+pFK5bcXc4hq7lpOXbweZgi4dqA= +k8s.io/apimachinery v0.33.1 h1:mzqXWV8tW9Rw4VeW9rEkqvnxj59k1ezDUl20tFK/oM4= +k8s.io/apimachinery v0.33.1/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= +k8s.io/apiserver v0.33.1 h1:yLgLUPDVC6tHbNcw5uE9mo1T6ELhJj7B0geifra3Qdo= +k8s.io/apiserver v0.33.1/go.mod h1:VMbE4ArWYLO01omz+k8hFjAdYfc3GVAYPrhP2tTKccs= +k8s.io/client-go v0.33.1 h1:ZZV/Ks2g92cyxWkRRnfUDsnhNn28eFpt26aGc8KbXF4= +k8s.io/client-go v0.33.1/go.mod h1:JAsUrl1ArO7uRVFWfcj6kOomSlCv+JpvIsp6usAGefA= +k8s.io/component-base v0.33.1 h1:EoJ0xA+wr77T+G8p6T3l4efT2oNwbqBVKR71E0tBIaI= +k8s.io/component-base v0.33.1/go.mod h1:guT/w/6piyPfTgq7gfvgetyXMIh10zuXA6cRRm3rDuY= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y= -k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f/go.mod h1:R/HEjbvWI0qdfb8viZUeVZm0X6IZnxAydC7YU42CMw4= -k8s.io/metrics v0.32.1 h1:Ou4nrEtZS2vFf7OJCf9z3+2kr0A00kQzfoSwxg0gXps= -k8s.io/metrics v0.32.1/go.mod h1:cLnai9XKYby1tNMX+xe8p9VLzTqrxYPcmqfCBoWObcM= +k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= +k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= +k8s.io/metrics v0.33.1 h1:Ypd5ITCf+fM+LDNFk7hESXTc3vh02CQYGiwRoVRaGsM= +k8s.io/metrics v0.33.1/go.mod h1:wK8cFTK5ykBdhL0Wy4RZwLH28XM7j/Klc+NQrMRWVxg= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo= -sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUoEKRkHKSmGjxb6lWwrBlJsXc+eUYQHM= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= sigs.k8s.io/controller-runtime v0.20.1 h1:JbGMAG/X94NeM3xvjenVUaBjy6Ui4Ogd/J5ZtjZnHaE= sigs.k8s.io/controller-runtime v0.20.1/go.mod h1:BrP3w158MwvB3ZbNpaAcIKkHQ7YGpYnzpoSTZ8E14WU= sigs.k8s.io/controller-tools v0.16.4 h1:VXmar78eDXbx1by/H09ikEq1hiq3bqInxuV3lMr3GmQ= sigs.k8s.io/controller-tools v0.16.4/go.mod h1:kcsZyYMXiOFuBhofSPtkB90zTSxVRxVVyvtKQcx3q1A= sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= -sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA= -sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4= +sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= +sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= +sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= From 6c1202b287ae04a5d2bae36ca4d7e30ff58933cf Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 11 Jul 2025 21:20:20 +0000 Subject: [PATCH 21/30] [skip ci] repo-sync --- go.mod | 4 +- go.sum | 8 +- ...virtualclusterinstance_kubeconfig_types.go | 6 + .../management/v1/zz_generated.conversion.go | 4 + .../management/zz_generated.api.register.go | 2 + .../versioned/fake/clientset_generated.go | 7 +- .../typed/management/v1/management_client.go | 12 +- .../typed/storage/v1/storage_client.go | 12 +- .../v1/virtualcluster_client.go | 12 +- .../management/v1/agentauditevent.go | 16 +- .../management/v1/announcement.go | 16 +- .../externalversions/management/v1/app.go | 16 +- .../externalversions/management/v1/backup.go | 16 +- .../externalversions/management/v1/cluster.go | 16 +- .../management/v1/clusteraccess.go | 16 +- .../management/v1/clusterroletemplate.go | 16 +- .../externalversions/management/v1/config.go | 16 +- .../v1/convertvirtualclusterconfig.go | 16 +- .../management/v1/databaseconnector.go | 16 +- .../v1/devpodenvironmenttemplate.go | 16 +- .../management/v1/devpodworkspaceinstance.go | 16 +- .../management/v1/devpodworkspacepreset.go | 16 +- .../management/v1/devpodworkspacetemplate.go | 16 +- .../v1/directclusterendpointtoken.go | 16 +- .../externalversions/management/v1/event.go | 16 +- .../externalversions/management/v1/feature.go | 16 +- .../management/v1/ingressauthtoken.go | 16 +- .../externalversions/management/v1/license.go | 16 +- .../management/v1/licensetoken.go | 16 +- .../management/v1/loftupgrade.go | 16 +- .../management/v1/oidcclient.go | 16 +- .../management/v1/ownedaccesskey.go | 16 +- .../externalversions/management/v1/project.go | 16 +- .../management/v1/projectsecret.go | 16 +- .../management/v1/redirecttoken.go | 16 +- .../management/v1/registervirtualcluster.go | 16 +- .../management/v1/resetaccesskey.go | 16 +- .../externalversions/management/v1/self.go | 16 +- .../management/v1/selfsubjectaccessreview.go | 16 +- .../management/v1/sharedsecret.go | 16 +- .../management/v1/spaceinstance.go | 16 +- .../management/v1/spacetemplate.go | 16 +- .../management/v1/subjectaccessreview.go | 16 +- .../externalversions/management/v1/task.go | 16 +- .../externalversions/management/v1/team.go | 16 +- .../v1/translatevclusterresourcename.go | 16 +- .../externalversions/management/v1/user.go | 16 +- .../management/v1/virtualclusterinstance.go | 16 +- .../management/v1/virtualclusterschema.go | 16 +- .../management/v1/virtualclustertemplate.go | 16 +- .../externalversions/storage/v1/accesskey.go | 16 +- .../externalversions/storage/v1/app.go | 16 +- .../externalversions/storage/v1/cluster.go | 16 +- .../storage/v1/clusteraccess.go | 16 +- .../storage/v1/clusterroletemplate.go | 16 +- .../storage/v1/devpodenvironmenttemplate.go | 16 +- .../storage/v1/devpodworkspaceinstance.go | 16 +- .../storage/v1/devpodworkspacepreset.go | 16 +- .../storage/v1/devpodworkspacetemplate.go | 16 +- .../storage/v1/networkpeer.go | 16 +- .../externalversions/storage/v1/project.go | 16 +- .../storage/v1/sharedsecret.go | 16 +- .../storage/v1/spaceinstance.go | 16 +- .../storage/v1/spacetemplate.go | 16 +- .../externalversions/storage/v1/task.go | 16 +- .../externalversions/storage/v1/team.go | 16 +- .../externalversions/storage/v1/user.go | 16 +- .../storage/v1/virtualclusterinstance.go | 16 +- .../storage/v1/virtualclustertemplate.go | 16 +- .../virtualcluster/v1/helmrelease.go | 16 +- pkg/openapi/zz_generated.openapi.go | 970 ++++++++++++++++-- 71 files changed, 1779 insertions(+), 234 deletions(-) diff --git a/go.mod b/go.mod index c95f7f9a..0a13b6e8 100644 --- a/go.mod +++ b/go.mod @@ -7,8 +7,8 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae - github.com/loft-sh/agentapi/v4 v4.4.0-alpha.5 - github.com/loft-sh/apiserver v0.0.0-20250508152823-e8b51d3b592b + github.com/loft-sh/agentapi/v4 v4.4.0-alpha.7 + github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 google.golang.org/grpc v1.68.1 google.golang.org/protobuf v1.36.5 k8s.io/api v0.33.1 diff --git a/go.sum b/go.sum index 7c0fe98d..aa4b208b 100644 --- a/go.sum +++ b/go.sum @@ -105,10 +105,10 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae h1:nyrRyiEi1mssYel6z3NaUiHBaFG2bBA6HCsADWxSMo0= github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.4.0-alpha.5 h1:CRlDSqGMjUISFtwC+Xfw50iMD4/w1QS0P6iRDZI9eyc= -github.com/loft-sh/agentapi/v4 v4.4.0-alpha.5/go.mod h1:N6gGurI16TFYeD9eBZ2nK7D8LX1iaH2IHm8Hzt61Kbc= -github.com/loft-sh/apiserver v0.0.0-20250508152823-e8b51d3b592b h1:v/yQiR772ioVe5RfEVFjewN7iEtgUlgpiMfv+Q/8CZw= -github.com/loft-sh/apiserver v0.0.0-20250508152823-e8b51d3b592b/go.mod h1:O8dvTzapPh7Fvg7tYReb/wtOIwPSTYTYfXZFKF/peTo= +github.com/loft-sh/agentapi/v4 v4.4.0-alpha.7 h1:u3SatYgsAW/4BM3GSmN8hwaNDl/QM8VkfyJqiiqJmKs= +github.com/loft-sh/agentapi/v4 v4.4.0-alpha.7/go.mod h1:PiGvXqHI8SmsbJ6lMUgmybTkD+Q2Pn/1IoWuYTg+lCI= +github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 h1:CucC57Nm4cfTsktoj6UaSSh29q/adSLrDcALh377SP4= +github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2/go.mod h1:ROoLzugsusno4FKi+Lju6VN62u9mROLi3MvLrqC3cA4= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 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/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index ed36fab6..331d58b1 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -10837,6 +10837,8 @@ func Convert_management_VirtualClusterInstanceKubeConfigList_To_v1_VirtualCluste func autoConvert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualClusterInstanceKubeConfigSpec(in *VirtualClusterInstanceKubeConfigSpec, out *management.VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { out.CertificateTTL = (*int32)(unsafe.Pointer(in.CertificateTTL)) + out.Server = in.Server + out.ClientCert = in.ClientCert return nil } @@ -10847,6 +10849,8 @@ func Convert_v1_VirtualClusterInstanceKubeConfigSpec_To_management_VirtualCluste func autoConvert_management_VirtualClusterInstanceKubeConfigSpec_To_v1_VirtualClusterInstanceKubeConfigSpec(in *management.VirtualClusterInstanceKubeConfigSpec, out *VirtualClusterInstanceKubeConfigSpec, s conversion.Scope) error { out.CertificateTTL = (*int32)(unsafe.Pointer(in.CertificateTTL)) + out.Server = in.Server + out.ClientCert = in.ClientCert return nil } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 6d51054c..9e7e919f 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -2989,6 +2989,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 { diff --git a/pkg/clientset/versioned/fake/clientset_generated.go b/pkg/clientset/versioned/fake/clientset_generated.go index 9490a481..1ab266bd 100644 --- a/pkg/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clientset/versioned/fake/clientset_generated.go @@ -10,6 +10,7 @@ import ( fakestoragev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1/fake" virtualclusterv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/virtualcluster/v1" fakevirtualclusterv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/virtualcluster/v1/fake" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -37,9 +38,13 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} cs.AddReactor("*", "*", testing.ObjectReaction(o)) cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { + var opts metav1.ListOptions + if watchActcion, ok := action.(testing.WatchActionImpl); ok { + opts = watchActcion.ListOptions + } gvr := action.GetResource() ns := action.GetNamespace() - watch, err := o.Watch(gvr, ns) + watch, err := o.Watch(gvr, ns, opts) if err != nil { return false, nil, err } diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 3deda38e..36dfa556 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -229,9 +229,7 @@ func (c *ManagementV1Client) VirtualClusterTemplates() VirtualClusterTemplateInt // where httpClient was generated with rest.HTTPClientFor(c). func NewForConfig(c *rest.Config) (*ManagementV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) httpClient, err := rest.HTTPClientFor(&config) if err != nil { return nil, err @@ -243,9 +241,7 @@ func NewForConfig(c *rest.Config) (*ManagementV1Client, error) { // Note the http client provided takes precedence over the configured transport values. func NewForConfigAndClient(c *rest.Config, h *http.Client) (*ManagementV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) client, err := rest.RESTClientForConfigAndClient(&config, h) if err != nil { return nil, err @@ -268,7 +264,7 @@ func New(c rest.Interface) *ManagementV1Client { return &ManagementV1Client{c} } -func setConfigDefaults(config *rest.Config) error { +func setConfigDefaults(config *rest.Config) { gv := managementv1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" @@ -277,8 +273,6 @@ func setConfigDefaults(config *rest.Config) error { 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/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index 618c696b..327e3857 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -119,9 +119,7 @@ func (c *StorageV1Client) VirtualClusterTemplates() VirtualClusterTemplateInterf // where httpClient was generated with rest.HTTPClientFor(c). func NewForConfig(c *rest.Config) (*StorageV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) httpClient, err := rest.HTTPClientFor(&config) if err != nil { return nil, err @@ -133,9 +131,7 @@ func NewForConfig(c *rest.Config) (*StorageV1Client, error) { // Note the http client provided takes precedence over the configured transport values. func NewForConfigAndClient(c *rest.Config, h *http.Client) (*StorageV1Client, error) { config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } + setConfigDefaults(&config) client, err := rest.RESTClientForConfigAndClient(&config, h) if err != nil { return nil, err @@ -158,7 +154,7 @@ func New(c rest.Interface) *StorageV1Client { return &StorageV1Client{c} } -func setConfigDefaults(config *rest.Config) error { +func setConfigDefaults(config *rest.Config) { gv := storagev1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" @@ -167,8 +163,6 @@ func setConfigDefaults(config *rest.Config) error { 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/virtualcluster/v1/virtualcluster_client.go b/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go index 9808b48b..ea9b87cb 100644 --- a/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go +++ b/pkg/clientset/versioned/typed/virtualcluster/v1/virtualcluster_client.go @@ -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,7 +64,7 @@ func New(c rest.Interface) *VirtualclusterV1Client { return &VirtualclusterV1Client{c} } -func setConfigDefaults(config *rest.Config) error { +func setConfigDefaults(config *rest.Config) { gv := virtualclusterv1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" @@ -77,8 +73,6 @@ func setConfigDefaults(config *rest.Config) error { if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() } - - return nil } // RESTClient returns a RESTClient that is used to communicate diff --git a/pkg/informers/externalversions/management/v1/agentauditevent.go b/pkg/informers/externalversions/management/v1/agentauditevent.go index d5023067..ba5ce176 100644 --- a/pkg/informers/externalversions/management/v1/agentauditevent.go +++ b/pkg/informers/externalversions/management/v1/agentauditevent.go @@ -45,13 +45,25 @@ func NewFilteredAgentAuditEventInformer(client versioned.Interface, resyncPeriod if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().AgentAuditEvents().List(context.TODO(), options) + return client.ManagementV1().AgentAuditEvents().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().AgentAuditEvents().Watch(context.TODO(), options) + return client.ManagementV1().AgentAuditEvents().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().AgentAuditEvents().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().AgentAuditEvents().Watch(ctx, options) }, }, &apismanagementv1.AgentAuditEvent{}, diff --git a/pkg/informers/externalversions/management/v1/announcement.go b/pkg/informers/externalversions/management/v1/announcement.go index d6f81ce7..db71b750 100644 --- a/pkg/informers/externalversions/management/v1/announcement.go +++ b/pkg/informers/externalversions/management/v1/announcement.go @@ -45,13 +45,25 @@ func NewFilteredAnnouncementInformer(client versioned.Interface, resyncPeriod ti if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Announcements().List(context.TODO(), options) + return client.ManagementV1().Announcements().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Announcements().Watch(context.TODO(), options) + return client.ManagementV1().Announcements().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Announcements().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Announcements().Watch(ctx, options) }, }, &apismanagementv1.Announcement{}, diff --git a/pkg/informers/externalversions/management/v1/app.go b/pkg/informers/externalversions/management/v1/app.go index 6a8ef3a2..d274e5be 100644 --- a/pkg/informers/externalversions/management/v1/app.go +++ b/pkg/informers/externalversions/management/v1/app.go @@ -45,13 +45,25 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Apps().List(context.TODO(), options) + return client.ManagementV1().Apps().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Apps().Watch(context.TODO(), options) + return client.ManagementV1().Apps().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Apps().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Apps().Watch(ctx, options) }, }, &apismanagementv1.App{}, diff --git a/pkg/informers/externalversions/management/v1/backup.go b/pkg/informers/externalversions/management/v1/backup.go index 1e386a09..6cd9489d 100644 --- a/pkg/informers/externalversions/management/v1/backup.go +++ b/pkg/informers/externalversions/management/v1/backup.go @@ -45,13 +45,25 @@ func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Dur if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Backups().List(context.TODO(), options) + return client.ManagementV1().Backups().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Backups().Watch(context.TODO(), options) + return client.ManagementV1().Backups().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Backups().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Backups().Watch(ctx, options) }, }, &apismanagementv1.Backup{}, diff --git a/pkg/informers/externalversions/management/v1/cluster.go b/pkg/informers/externalversions/management/v1/cluster.go index 586c775b..7c363f61 100644 --- a/pkg/informers/externalversions/management/v1/cluster.go +++ b/pkg/informers/externalversions/management/v1/cluster.go @@ -45,13 +45,25 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Clusters().List(context.TODO(), options) + return client.ManagementV1().Clusters().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Clusters().Watch(context.TODO(), options) + return client.ManagementV1().Clusters().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Clusters().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Clusters().Watch(ctx, options) }, }, &apismanagementv1.Cluster{}, diff --git a/pkg/informers/externalversions/management/v1/clusteraccess.go b/pkg/informers/externalversions/management/v1/clusteraccess.go index 68ae0e57..76db4926 100644 --- a/pkg/informers/externalversions/management/v1/clusteraccess.go +++ b/pkg/informers/externalversions/management/v1/clusteraccess.go @@ -45,13 +45,25 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterAccesses().List(context.TODO(), options) + return client.ManagementV1().ClusterAccesses().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterAccesses().Watch(context.TODO(), options) + return client.ManagementV1().ClusterAccesses().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterAccesses().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterAccesses().Watch(ctx, options) }, }, &apismanagementv1.ClusterAccess{}, diff --git a/pkg/informers/externalversions/management/v1/clusterroletemplate.go b/pkg/informers/externalversions/management/v1/clusterroletemplate.go index cf825868..fd5ff155 100644 --- a/pkg/informers/externalversions/management/v1/clusterroletemplate.go +++ b/pkg/informers/externalversions/management/v1/clusterroletemplate.go @@ -45,13 +45,25 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterRoleTemplates().List(context.TODO(), options) + return client.ManagementV1().ClusterRoleTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ClusterRoleTemplates().Watch(context.TODO(), options) + return client.ManagementV1().ClusterRoleTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterRoleTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ClusterRoleTemplates().Watch(ctx, options) }, }, &apismanagementv1.ClusterRoleTemplate{}, diff --git a/pkg/informers/externalversions/management/v1/config.go b/pkg/informers/externalversions/management/v1/config.go index b3ebc170..c6be9711 100644 --- a/pkg/informers/externalversions/management/v1/config.go +++ b/pkg/informers/externalversions/management/v1/config.go @@ -45,13 +45,25 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Configs().List(context.TODO(), options) + return client.ManagementV1().Configs().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Configs().Watch(context.TODO(), options) + return client.ManagementV1().Configs().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Configs().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Configs().Watch(ctx, options) }, }, &apismanagementv1.Config{}, diff --git a/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go b/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go index 14075bbf..0b1d9554 100644 --- a/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go +++ b/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go @@ -45,13 +45,25 @@ func NewFilteredConvertVirtualClusterConfigInformer(client versioned.Interface, if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ConvertVirtualClusterConfigs().List(context.TODO(), options) + return client.ManagementV1().ConvertVirtualClusterConfigs().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(context.TODO(), options) + return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ConvertVirtualClusterConfigs().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(ctx, options) }, }, &apismanagementv1.ConvertVirtualClusterConfig{}, diff --git a/pkg/informers/externalversions/management/v1/databaseconnector.go b/pkg/informers/externalversions/management/v1/databaseconnector.go index 3cb49c80..d577c73c 100644 --- a/pkg/informers/externalversions/management/v1/databaseconnector.go +++ b/pkg/informers/externalversions/management/v1/databaseconnector.go @@ -45,13 +45,25 @@ func NewFilteredDatabaseConnectorInformer(client versioned.Interface, resyncPeri if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DatabaseConnectors().List(context.TODO(), 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.TODO(), options) + return client.ManagementV1().DatabaseConnectors().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DatabaseConnectors().Watch(ctx, options) }, }, &apismanagementv1.DatabaseConnector{}, diff --git a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go index bb33cbde..c8ef75ca 100644 --- a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go +++ b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go @@ -45,13 +45,25 @@ func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, re if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodEnvironmentTemplates().List(context.TODO(), options) + return client.ManagementV1().DevPodEnvironmentTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodEnvironmentTemplates().Watch(context.TODO(), options) + return client.ManagementV1().DevPodEnvironmentTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodEnvironmentTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodEnvironmentTemplates().Watch(ctx, options) }, }, &apismanagementv1.DevPodEnvironmentTemplate{}, diff --git a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go index a3d8663d..9272771c 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go @@ -46,13 +46,25 @@ func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, name if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(context.TODO(), options) + return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(context.TODO(), options) + return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(ctx, options) }, }, &apismanagementv1.DevPodWorkspaceInstance{}, diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go index d4b9feff..3295fe46 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go @@ -45,13 +45,25 @@ func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resync if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspacePresets().List(context.TODO(), options) + return client.ManagementV1().DevPodWorkspacePresets().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspacePresets().Watch(context.TODO(), options) + return client.ManagementV1().DevPodWorkspacePresets().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspacePresets().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspacePresets().Watch(ctx, options) }, }, &apismanagementv1.DevPodWorkspacePreset{}, diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go index 8996945c..1a4eaa39 100644 --- a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go +++ b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go @@ -45,13 +45,25 @@ func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspaceTemplates().List(context.TODO(), options) + return client.ManagementV1().DevPodWorkspaceTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DevPodWorkspaceTemplates().Watch(context.TODO(), options) + return client.ManagementV1().DevPodWorkspaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevPodWorkspaceTemplates().Watch(ctx, options) }, }, &apismanagementv1.DevPodWorkspaceTemplate{}, diff --git a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go index b4e83ddf..f83aa2a6 100644 --- a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go +++ b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go @@ -45,13 +45,25 @@ func NewFilteredDirectClusterEndpointTokenInformer(client versioned.Interface, r if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DirectClusterEndpointTokens().List(context.TODO(), options) + return client.ManagementV1().DirectClusterEndpointTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().DirectClusterEndpointTokens().Watch(context.TODO(), options) + return client.ManagementV1().DirectClusterEndpointTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DirectClusterEndpointTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DirectClusterEndpointTokens().Watch(ctx, options) }, }, &apismanagementv1.DirectClusterEndpointToken{}, diff --git a/pkg/informers/externalversions/management/v1/event.go b/pkg/informers/externalversions/management/v1/event.go index 5d4baf11..f391f355 100644 --- a/pkg/informers/externalversions/management/v1/event.go +++ b/pkg/informers/externalversions/management/v1/event.go @@ -45,13 +45,25 @@ func NewFilteredEventInformer(client versioned.Interface, resyncPeriod time.Dura if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Events().List(context.TODO(), options) + return client.ManagementV1().Events().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Events().Watch(context.TODO(), options) + return client.ManagementV1().Events().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Events().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Events().Watch(ctx, options) }, }, &apismanagementv1.Event{}, diff --git a/pkg/informers/externalversions/management/v1/feature.go b/pkg/informers/externalversions/management/v1/feature.go index 84b2e2e0..b22906ce 100644 --- a/pkg/informers/externalversions/management/v1/feature.go +++ b/pkg/informers/externalversions/management/v1/feature.go @@ -45,13 +45,25 @@ func NewFilteredFeatureInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Features().List(context.TODO(), options) + return client.ManagementV1().Features().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Features().Watch(context.TODO(), options) + return client.ManagementV1().Features().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Features().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Features().Watch(ctx, options) }, }, &apismanagementv1.Feature{}, diff --git a/pkg/informers/externalversions/management/v1/ingressauthtoken.go b/pkg/informers/externalversions/management/v1/ingressauthtoken.go index f3594bcb..8300d484 100644 --- a/pkg/informers/externalversions/management/v1/ingressauthtoken.go +++ b/pkg/informers/externalversions/management/v1/ingressauthtoken.go @@ -45,13 +45,25 @@ func NewFilteredIngressAuthTokenInformer(client versioned.Interface, resyncPerio if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().IngressAuthTokens().List(context.TODO(), options) + return client.ManagementV1().IngressAuthTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().IngressAuthTokens().Watch(context.TODO(), options) + return client.ManagementV1().IngressAuthTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().IngressAuthTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().IngressAuthTokens().Watch(ctx, options) }, }, &apismanagementv1.IngressAuthToken{}, diff --git a/pkg/informers/externalversions/management/v1/license.go b/pkg/informers/externalversions/management/v1/license.go index 1dc2b349..e24d5746 100644 --- a/pkg/informers/externalversions/management/v1/license.go +++ b/pkg/informers/externalversions/management/v1/license.go @@ -45,13 +45,25 @@ func NewFilteredLicenseInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Licenses().List(context.TODO(), options) + return client.ManagementV1().Licenses().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Licenses().Watch(context.TODO(), options) + return client.ManagementV1().Licenses().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Licenses().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Licenses().Watch(ctx, options) }, }, &apismanagementv1.License{}, diff --git a/pkg/informers/externalversions/management/v1/licensetoken.go b/pkg/informers/externalversions/management/v1/licensetoken.go index 46a9ee7c..fb69a4df 100644 --- a/pkg/informers/externalversions/management/v1/licensetoken.go +++ b/pkg/informers/externalversions/management/v1/licensetoken.go @@ -45,13 +45,25 @@ func NewFilteredLicenseTokenInformer(client versioned.Interface, resyncPeriod ti if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LicenseTokens().List(context.TODO(), options) + return client.ManagementV1().LicenseTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LicenseTokens().Watch(context.TODO(), options) + return client.ManagementV1().LicenseTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LicenseTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LicenseTokens().Watch(ctx, options) }, }, &apismanagementv1.LicenseToken{}, diff --git a/pkg/informers/externalversions/management/v1/loftupgrade.go b/pkg/informers/externalversions/management/v1/loftupgrade.go index ecec84c9..69bb42bd 100644 --- a/pkg/informers/externalversions/management/v1/loftupgrade.go +++ b/pkg/informers/externalversions/management/v1/loftupgrade.go @@ -45,13 +45,25 @@ func NewFilteredLoftUpgradeInformer(client versioned.Interface, resyncPeriod tim if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LoftUpgrades().List(context.TODO(), options) + return client.ManagementV1().LoftUpgrades().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().LoftUpgrades().Watch(context.TODO(), options) + return client.ManagementV1().LoftUpgrades().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LoftUpgrades().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().LoftUpgrades().Watch(ctx, options) }, }, &apismanagementv1.LoftUpgrade{}, diff --git a/pkg/informers/externalversions/management/v1/oidcclient.go b/pkg/informers/externalversions/management/v1/oidcclient.go index f510574d..7c9d9b82 100644 --- a/pkg/informers/externalversions/management/v1/oidcclient.go +++ b/pkg/informers/externalversions/management/v1/oidcclient.go @@ -45,13 +45,25 @@ func NewFilteredOIDCClientInformer(client versioned.Interface, resyncPeriod time if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OIDCClients().List(context.TODO(), options) + return client.ManagementV1().OIDCClients().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OIDCClients().Watch(context.TODO(), options) + return client.ManagementV1().OIDCClients().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OIDCClients().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OIDCClients().Watch(ctx, options) }, }, &apismanagementv1.OIDCClient{}, diff --git a/pkg/informers/externalversions/management/v1/ownedaccesskey.go b/pkg/informers/externalversions/management/v1/ownedaccesskey.go index b671f936..413b6b3e 100644 --- a/pkg/informers/externalversions/management/v1/ownedaccesskey.go +++ b/pkg/informers/externalversions/management/v1/ownedaccesskey.go @@ -45,13 +45,25 @@ func NewFilteredOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OwnedAccessKeys().List(context.TODO(), options) + return client.ManagementV1().OwnedAccessKeys().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().OwnedAccessKeys().Watch(context.TODO(), options) + return client.ManagementV1().OwnedAccessKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OwnedAccessKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().OwnedAccessKeys().Watch(ctx, options) }, }, &apismanagementv1.OwnedAccessKey{}, diff --git a/pkg/informers/externalversions/management/v1/project.go b/pkg/informers/externalversions/management/v1/project.go index db5db79b..91424968 100644 --- a/pkg/informers/externalversions/management/v1/project.go +++ b/pkg/informers/externalversions/management/v1/project.go @@ -45,13 +45,25 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Projects().List(context.TODO(), options) + return client.ManagementV1().Projects().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Projects().Watch(context.TODO(), options) + return client.ManagementV1().Projects().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Projects().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Projects().Watch(ctx, options) }, }, &apismanagementv1.Project{}, diff --git a/pkg/informers/externalversions/management/v1/projectsecret.go b/pkg/informers/externalversions/management/v1/projectsecret.go index 935dc23c..dd994bc6 100644 --- a/pkg/informers/externalversions/management/v1/projectsecret.go +++ b/pkg/informers/externalversions/management/v1/projectsecret.go @@ -46,13 +46,25 @@ func NewFilteredProjectSecretInformer(client versioned.Interface, namespace stri if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ProjectSecrets(namespace).List(context.TODO(), options) + return client.ManagementV1().ProjectSecrets(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ProjectSecrets(namespace).Watch(context.TODO(), options) + return client.ManagementV1().ProjectSecrets(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ProjectSecrets(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ProjectSecrets(namespace).Watch(ctx, options) }, }, &apismanagementv1.ProjectSecret{}, diff --git a/pkg/informers/externalversions/management/v1/redirecttoken.go b/pkg/informers/externalversions/management/v1/redirecttoken.go index 505ef605..8b2c5469 100644 --- a/pkg/informers/externalversions/management/v1/redirecttoken.go +++ b/pkg/informers/externalversions/management/v1/redirecttoken.go @@ -45,13 +45,25 @@ func NewFilteredRedirectTokenInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RedirectTokens().List(context.TODO(), options) + return client.ManagementV1().RedirectTokens().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RedirectTokens().Watch(context.TODO(), options) + return client.ManagementV1().RedirectTokens().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RedirectTokens().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RedirectTokens().Watch(ctx, options) }, }, &apismanagementv1.RedirectToken{}, diff --git a/pkg/informers/externalversions/management/v1/registervirtualcluster.go b/pkg/informers/externalversions/management/v1/registervirtualcluster.go index eec5a0c0..ac30f569 100644 --- a/pkg/informers/externalversions/management/v1/registervirtualcluster.go +++ b/pkg/informers/externalversions/management/v1/registervirtualcluster.go @@ -45,13 +45,25 @@ func NewFilteredRegisterVirtualClusterInformer(client versioned.Interface, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RegisterVirtualClusters().List(context.TODO(), options) + return client.ManagementV1().RegisterVirtualClusters().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().RegisterVirtualClusters().Watch(context.TODO(), options) + return client.ManagementV1().RegisterVirtualClusters().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RegisterVirtualClusters().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().RegisterVirtualClusters().Watch(ctx, options) }, }, &apismanagementv1.RegisterVirtualCluster{}, diff --git a/pkg/informers/externalversions/management/v1/resetaccesskey.go b/pkg/informers/externalversions/management/v1/resetaccesskey.go index 0e386c58..b732fb32 100644 --- a/pkg/informers/externalversions/management/v1/resetaccesskey.go +++ b/pkg/informers/externalversions/management/v1/resetaccesskey.go @@ -45,13 +45,25 @@ func NewFilteredResetAccessKeyInformer(client versioned.Interface, resyncPeriod if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ResetAccessKeys().List(context.TODO(), options) + return client.ManagementV1().ResetAccessKeys().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().ResetAccessKeys().Watch(context.TODO(), options) + return client.ManagementV1().ResetAccessKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ResetAccessKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().ResetAccessKeys().Watch(ctx, options) }, }, &apismanagementv1.ResetAccessKey{}, diff --git a/pkg/informers/externalversions/management/v1/self.go b/pkg/informers/externalversions/management/v1/self.go index 08fc2727..f03cb854 100644 --- a/pkg/informers/externalversions/management/v1/self.go +++ b/pkg/informers/externalversions/management/v1/self.go @@ -45,13 +45,25 @@ func NewFilteredSelfInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Selves().List(context.TODO(), options) + return client.ManagementV1().Selves().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Selves().Watch(context.TODO(), options) + return client.ManagementV1().Selves().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Selves().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Selves().Watch(ctx, options) }, }, &apismanagementv1.Self{}, diff --git a/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go b/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go index 7416da01..a7757685 100644 --- a/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go +++ b/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go @@ -45,13 +45,25 @@ func NewFilteredSelfSubjectAccessReviewInformer(client versioned.Interface, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SelfSubjectAccessReviews().List(context.TODO(), options) + return client.ManagementV1().SelfSubjectAccessReviews().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SelfSubjectAccessReviews().Watch(context.TODO(), options) + return client.ManagementV1().SelfSubjectAccessReviews().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SelfSubjectAccessReviews().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SelfSubjectAccessReviews().Watch(ctx, options) }, }, &apismanagementv1.SelfSubjectAccessReview{}, diff --git a/pkg/informers/externalversions/management/v1/sharedsecret.go b/pkg/informers/externalversions/management/v1/sharedsecret.go index fbae392b..fee5af61 100644 --- a/pkg/informers/externalversions/management/v1/sharedsecret.go +++ b/pkg/informers/externalversions/management/v1/sharedsecret.go @@ -46,13 +46,25 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SharedSecrets(namespace).List(context.TODO(), options) + return client.ManagementV1().SharedSecrets(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SharedSecrets(namespace).Watch(context.TODO(), options) + return client.ManagementV1().SharedSecrets(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SharedSecrets(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SharedSecrets(namespace).Watch(ctx, options) }, }, &apismanagementv1.SharedSecret{}, diff --git a/pkg/informers/externalversions/management/v1/spaceinstance.go b/pkg/informers/externalversions/management/v1/spaceinstance.go index 1873629b..d4635dd2 100644 --- a/pkg/informers/externalversions/management/v1/spaceinstance.go +++ b/pkg/informers/externalversions/management/v1/spaceinstance.go @@ -46,13 +46,25 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceInstances(namespace).List(context.TODO(), options) + return client.ManagementV1().SpaceInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceInstances(namespace).Watch(context.TODO(), options) + return client.ManagementV1().SpaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceInstances(namespace).Watch(ctx, options) }, }, &apismanagementv1.SpaceInstance{}, diff --git a/pkg/informers/externalversions/management/v1/spacetemplate.go b/pkg/informers/externalversions/management/v1/spacetemplate.go index 85065979..f6d4b175 100644 --- a/pkg/informers/externalversions/management/v1/spacetemplate.go +++ b/pkg/informers/externalversions/management/v1/spacetemplate.go @@ -45,13 +45,25 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceTemplates().List(context.TODO(), options) + return client.ManagementV1().SpaceTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SpaceTemplates().Watch(context.TODO(), options) + return client.ManagementV1().SpaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SpaceTemplates().Watch(ctx, options) }, }, &apismanagementv1.SpaceTemplate{}, diff --git a/pkg/informers/externalversions/management/v1/subjectaccessreview.go b/pkg/informers/externalversions/management/v1/subjectaccessreview.go index 1974ff8b..5ceb98d3 100644 --- a/pkg/informers/externalversions/management/v1/subjectaccessreview.go +++ b/pkg/informers/externalversions/management/v1/subjectaccessreview.go @@ -45,13 +45,25 @@ func NewFilteredSubjectAccessReviewInformer(client versioned.Interface, resyncPe if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SubjectAccessReviews().List(context.TODO(), options) + return client.ManagementV1().SubjectAccessReviews().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().SubjectAccessReviews().Watch(context.TODO(), options) + return client.ManagementV1().SubjectAccessReviews().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SubjectAccessReviews().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().SubjectAccessReviews().Watch(ctx, options) }, }, &apismanagementv1.SubjectAccessReview{}, diff --git a/pkg/informers/externalversions/management/v1/task.go b/pkg/informers/externalversions/management/v1/task.go index daf3ec65..75945c14 100644 --- a/pkg/informers/externalversions/management/v1/task.go +++ b/pkg/informers/externalversions/management/v1/task.go @@ -45,13 +45,25 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Tasks().List(context.TODO(), options) + return client.ManagementV1().Tasks().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Tasks().Watch(context.TODO(), options) + return client.ManagementV1().Tasks().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Tasks().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Tasks().Watch(ctx, options) }, }, &apismanagementv1.Task{}, diff --git a/pkg/informers/externalversions/management/v1/team.go b/pkg/informers/externalversions/management/v1/team.go index c7a643d7..9e3fb4d7 100644 --- a/pkg/informers/externalversions/management/v1/team.go +++ b/pkg/informers/externalversions/management/v1/team.go @@ -45,13 +45,25 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Teams().List(context.TODO(), options) + return client.ManagementV1().Teams().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Teams().Watch(context.TODO(), options) + return client.ManagementV1().Teams().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Teams().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Teams().Watch(ctx, options) }, }, &apismanagementv1.Team{}, diff --git a/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go b/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go index 821b883f..3891d6e6 100644 --- a/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go +++ b/pkg/informers/externalversions/management/v1/translatevclusterresourcename.go @@ -45,13 +45,25 @@ func NewFilteredTranslateVClusterResourceNameInformer(client versioned.Interface if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().TranslateVClusterResourceNames().List(context.TODO(), options) + return client.ManagementV1().TranslateVClusterResourceNames().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().TranslateVClusterResourceNames().Watch(context.TODO(), options) + return client.ManagementV1().TranslateVClusterResourceNames().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().TranslateVClusterResourceNames().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().TranslateVClusterResourceNames().Watch(ctx, options) }, }, &apismanagementv1.TranslateVClusterResourceName{}, diff --git a/pkg/informers/externalversions/management/v1/user.go b/pkg/informers/externalversions/management/v1/user.go index 23eb77e4..c51b4755 100644 --- a/pkg/informers/externalversions/management/v1/user.go +++ b/pkg/informers/externalversions/management/v1/user.go @@ -45,13 +45,25 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Users().List(context.TODO(), options) + return client.ManagementV1().Users().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().Users().Watch(context.TODO(), options) + return client.ManagementV1().Users().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Users().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().Users().Watch(ctx, options) }, }, &apismanagementv1.User{}, diff --git a/pkg/informers/externalversions/management/v1/virtualclusterinstance.go b/pkg/informers/externalversions/management/v1/virtualclusterinstance.go index a860ab0d..662f9b49 100644 --- a/pkg/informers/externalversions/management/v1/virtualclusterinstance.go +++ b/pkg/informers/externalversions/management/v1/virtualclusterinstance.go @@ -46,13 +46,25 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterInstances(namespace).List(context.TODO(), options) + return client.ManagementV1().VirtualClusterInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterInstances(namespace).Watch(context.TODO(), options) + return client.ManagementV1().VirtualClusterInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterInstances(namespace).Watch(ctx, options) }, }, &apismanagementv1.VirtualClusterInstance{}, diff --git a/pkg/informers/externalversions/management/v1/virtualclusterschema.go b/pkg/informers/externalversions/management/v1/virtualclusterschema.go index 48275a7c..0a4f670a 100644 --- a/pkg/informers/externalversions/management/v1/virtualclusterschema.go +++ b/pkg/informers/externalversions/management/v1/virtualclusterschema.go @@ -45,13 +45,25 @@ func NewFilteredVirtualClusterSchemaInformer(client versioned.Interface, resyncP if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterSchemas().List(context.TODO(), 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.TODO(), options) + return client.ManagementV1().VirtualClusterSchemas().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterSchemas().Watch(ctx, options) }, }, &apismanagementv1.VirtualClusterSchema{}, diff --git a/pkg/informers/externalversions/management/v1/virtualclustertemplate.go b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go index 7c872244..028169c7 100644 --- a/pkg/informers/externalversions/management/v1/virtualclustertemplate.go +++ b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go @@ -45,13 +45,25 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterTemplates().List(context.TODO(), options) + return client.ManagementV1().VirtualClusterTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.ManagementV1().VirtualClusterTemplates().Watch(context.TODO(), options) + return client.ManagementV1().VirtualClusterTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().VirtualClusterTemplates().Watch(ctx, options) }, }, &apismanagementv1.VirtualClusterTemplate{}, diff --git a/pkg/informers/externalversions/storage/v1/accesskey.go b/pkg/informers/externalversions/storage/v1/accesskey.go index b5cd21a1..9e5a0507 100644 --- a/pkg/informers/externalversions/storage/v1/accesskey.go +++ b/pkg/informers/externalversions/storage/v1/accesskey.go @@ -45,13 +45,25 @@ func NewFilteredAccessKeyInformer(client versioned.Interface, resyncPeriod time. if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().AccessKeys().List(context.TODO(), options) + return client.StorageV1().AccessKeys().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().AccessKeys().Watch(context.TODO(), options) + return client.StorageV1().AccessKeys().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().AccessKeys().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().AccessKeys().Watch(ctx, options) }, }, &apisstoragev1.AccessKey{}, diff --git a/pkg/informers/externalversions/storage/v1/app.go b/pkg/informers/externalversions/storage/v1/app.go index 28596436..9ae2a59e 100644 --- a/pkg/informers/externalversions/storage/v1/app.go +++ b/pkg/informers/externalversions/storage/v1/app.go @@ -45,13 +45,25 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Apps().List(context.TODO(), options) + return client.StorageV1().Apps().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Apps().Watch(context.TODO(), options) + return client.StorageV1().Apps().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Apps().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Apps().Watch(ctx, options) }, }, &apisstoragev1.App{}, diff --git a/pkg/informers/externalversions/storage/v1/cluster.go b/pkg/informers/externalversions/storage/v1/cluster.go index ab49d3ef..d9c97273 100644 --- a/pkg/informers/externalversions/storage/v1/cluster.go +++ b/pkg/informers/externalversions/storage/v1/cluster.go @@ -45,13 +45,25 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Clusters().List(context.TODO(), options) + return client.StorageV1().Clusters().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Clusters().Watch(context.TODO(), options) + return client.StorageV1().Clusters().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Clusters().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Clusters().Watch(ctx, options) }, }, &apisstoragev1.Cluster{}, diff --git a/pkg/informers/externalversions/storage/v1/clusteraccess.go b/pkg/informers/externalversions/storage/v1/clusteraccess.go index 2edbfbb8..fb763676 100644 --- a/pkg/informers/externalversions/storage/v1/clusteraccess.go +++ b/pkg/informers/externalversions/storage/v1/clusteraccess.go @@ -45,13 +45,25 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterAccesses().List(context.TODO(), options) + return client.StorageV1().ClusterAccesses().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterAccesses().Watch(context.TODO(), options) + return client.StorageV1().ClusterAccesses().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterAccesses().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterAccesses().Watch(ctx, options) }, }, &apisstoragev1.ClusterAccess{}, diff --git a/pkg/informers/externalversions/storage/v1/clusterroletemplate.go b/pkg/informers/externalversions/storage/v1/clusterroletemplate.go index f90c150b..f2d0fe21 100644 --- a/pkg/informers/externalversions/storage/v1/clusterroletemplate.go +++ b/pkg/informers/externalversions/storage/v1/clusterroletemplate.go @@ -45,13 +45,25 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterRoleTemplates().List(context.TODO(), options) + return client.StorageV1().ClusterRoleTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().ClusterRoleTemplates().Watch(context.TODO(), options) + return client.StorageV1().ClusterRoleTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterRoleTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().ClusterRoleTemplates().Watch(ctx, options) }, }, &apisstoragev1.ClusterRoleTemplate{}, diff --git a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go index 875c59d3..ee51c870 100644 --- a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go +++ b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go @@ -45,13 +45,25 @@ func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, re if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodEnvironmentTemplates().List(context.TODO(), options) + return client.StorageV1().DevPodEnvironmentTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodEnvironmentTemplates().Watch(context.TODO(), options) + return client.StorageV1().DevPodEnvironmentTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodEnvironmentTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodEnvironmentTemplates().Watch(ctx, options) }, }, &apisstoragev1.DevPodEnvironmentTemplate{}, diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go index 21b97c4a..03fd1e2a 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go @@ -46,13 +46,25 @@ func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, name if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(context.TODO(), options) + return client.StorageV1().DevPodWorkspaceInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(context.TODO(), options) + return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(ctx, options) }, }, &apisstoragev1.DevPodWorkspaceInstance{}, diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go index fe70fc4e..d8ee4e6f 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go @@ -45,13 +45,25 @@ func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resync if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspacePresets().List(context.TODO(), options) + return client.StorageV1().DevPodWorkspacePresets().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspacePresets().Watch(context.TODO(), options) + return client.StorageV1().DevPodWorkspacePresets().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspacePresets().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspacePresets().Watch(ctx, options) }, }, &apisstoragev1.DevPodWorkspacePreset{}, diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go index 6b9e5fe4..5884e4df 100644 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go +++ b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go @@ -45,13 +45,25 @@ func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspaceTemplates().List(context.TODO(), options) + return client.StorageV1().DevPodWorkspaceTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().DevPodWorkspaceTemplates().Watch(context.TODO(), options) + return client.StorageV1().DevPodWorkspaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevPodWorkspaceTemplates().Watch(ctx, options) }, }, &apisstoragev1.DevPodWorkspaceTemplate{}, diff --git a/pkg/informers/externalversions/storage/v1/networkpeer.go b/pkg/informers/externalversions/storage/v1/networkpeer.go index f3ff9b5f..cd02b75e 100644 --- a/pkg/informers/externalversions/storage/v1/networkpeer.go +++ b/pkg/informers/externalversions/storage/v1/networkpeer.go @@ -45,13 +45,25 @@ func NewFilteredNetworkPeerInformer(client versioned.Interface, resyncPeriod tim if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().NetworkPeers().List(context.TODO(), options) + return client.StorageV1().NetworkPeers().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().NetworkPeers().Watch(context.TODO(), options) + return client.StorageV1().NetworkPeers().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NetworkPeers().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NetworkPeers().Watch(ctx, options) }, }, &apisstoragev1.NetworkPeer{}, diff --git a/pkg/informers/externalversions/storage/v1/project.go b/pkg/informers/externalversions/storage/v1/project.go index 9302bd5e..c4604b05 100644 --- a/pkg/informers/externalversions/storage/v1/project.go +++ b/pkg/informers/externalversions/storage/v1/project.go @@ -45,13 +45,25 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Projects().List(context.TODO(), options) + return client.StorageV1().Projects().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Projects().Watch(context.TODO(), options) + return client.StorageV1().Projects().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Projects().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Projects().Watch(ctx, options) }, }, &apisstoragev1.Project{}, diff --git a/pkg/informers/externalversions/storage/v1/sharedsecret.go b/pkg/informers/externalversions/storage/v1/sharedsecret.go index bd701d78..9c46e736 100644 --- a/pkg/informers/externalversions/storage/v1/sharedsecret.go +++ b/pkg/informers/externalversions/storage/v1/sharedsecret.go @@ -46,13 +46,25 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SharedSecrets(namespace).List(context.TODO(), options) + return client.StorageV1().SharedSecrets(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SharedSecrets(namespace).Watch(context.TODO(), options) + return client.StorageV1().SharedSecrets(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SharedSecrets(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SharedSecrets(namespace).Watch(ctx, options) }, }, &apisstoragev1.SharedSecret{}, diff --git a/pkg/informers/externalversions/storage/v1/spaceinstance.go b/pkg/informers/externalversions/storage/v1/spaceinstance.go index 5084df96..b72aa667 100644 --- a/pkg/informers/externalversions/storage/v1/spaceinstance.go +++ b/pkg/informers/externalversions/storage/v1/spaceinstance.go @@ -46,13 +46,25 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceInstances(namespace).List(context.TODO(), options) + return client.StorageV1().SpaceInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceInstances(namespace).Watch(context.TODO(), options) + return client.StorageV1().SpaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceInstances(namespace).Watch(ctx, options) }, }, &apisstoragev1.SpaceInstance{}, diff --git a/pkg/informers/externalversions/storage/v1/spacetemplate.go b/pkg/informers/externalversions/storage/v1/spacetemplate.go index b58b1f8c..a648e194 100644 --- a/pkg/informers/externalversions/storage/v1/spacetemplate.go +++ b/pkg/informers/externalversions/storage/v1/spacetemplate.go @@ -45,13 +45,25 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceTemplates().List(context.TODO(), options) + return client.StorageV1().SpaceTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().SpaceTemplates().Watch(context.TODO(), options) + return client.StorageV1().SpaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().SpaceTemplates().Watch(ctx, options) }, }, &apisstoragev1.SpaceTemplate{}, diff --git a/pkg/informers/externalversions/storage/v1/task.go b/pkg/informers/externalversions/storage/v1/task.go index c4e8e1da..7ab2bdf5 100644 --- a/pkg/informers/externalversions/storage/v1/task.go +++ b/pkg/informers/externalversions/storage/v1/task.go @@ -45,13 +45,25 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Tasks().List(context.TODO(), options) + return client.StorageV1().Tasks().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Tasks().Watch(context.TODO(), options) + return client.StorageV1().Tasks().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Tasks().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Tasks().Watch(ctx, options) }, }, &apisstoragev1.Task{}, diff --git a/pkg/informers/externalversions/storage/v1/team.go b/pkg/informers/externalversions/storage/v1/team.go index 0d6e22e3..45bde13f 100644 --- a/pkg/informers/externalversions/storage/v1/team.go +++ b/pkg/informers/externalversions/storage/v1/team.go @@ -45,13 +45,25 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Teams().List(context.TODO(), options) + return client.StorageV1().Teams().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Teams().Watch(context.TODO(), options) + return client.StorageV1().Teams().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Teams().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Teams().Watch(ctx, options) }, }, &apisstoragev1.Team{}, diff --git a/pkg/informers/externalversions/storage/v1/user.go b/pkg/informers/externalversions/storage/v1/user.go index defbb77c..f3667848 100644 --- a/pkg/informers/externalversions/storage/v1/user.go +++ b/pkg/informers/externalversions/storage/v1/user.go @@ -45,13 +45,25 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Users().List(context.TODO(), options) + return client.StorageV1().Users().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().Users().Watch(context.TODO(), options) + return client.StorageV1().Users().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Users().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().Users().Watch(ctx, options) }, }, &apisstoragev1.User{}, diff --git a/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go b/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go index c8b985b8..077aa2fa 100644 --- a/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go +++ b/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go @@ -46,13 +46,25 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterInstances(namespace).List(context.TODO(), options) + return client.StorageV1().VirtualClusterInstances(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterInstances(namespace).Watch(context.TODO(), options) + return client.StorageV1().VirtualClusterInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterInstances(namespace).Watch(ctx, options) }, }, &apisstoragev1.VirtualClusterInstance{}, diff --git a/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go b/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go index 4c9c1022..5fc23153 100644 --- a/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go +++ b/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go @@ -45,13 +45,25 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterTemplates().List(context.TODO(), options) + return client.StorageV1().VirtualClusterTemplates().List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.StorageV1().VirtualClusterTemplates().Watch(context.TODO(), options) + return client.StorageV1().VirtualClusterTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().VirtualClusterTemplates().Watch(ctx, options) }, }, &apisstoragev1.VirtualClusterTemplate{}, diff --git a/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go b/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go index 8316b6c0..e15c416c 100644 --- a/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go +++ b/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go @@ -46,13 +46,25 @@ func NewFilteredHelmReleaseInformer(client versioned.Interface, namespace string if tweakListOptions != nil { tweakListOptions(&options) } - return client.VirtualclusterV1().HelmReleases(namespace).List(context.TODO(), options) + return client.VirtualclusterV1().HelmReleases(namespace).List(context.Background(), options) }, WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.VirtualclusterV1().HelmReleases(namespace).Watch(context.TODO(), options) + return client.VirtualclusterV1().HelmReleases(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.VirtualclusterV1().HelmReleases(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.VirtualclusterV1().HelmReleases(namespace).Watch(ctx, options) }, }, &apisvirtualclusterv1.HelmRelease{}, diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 88a50303..14760ec6 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -893,10 +893,16 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundle": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleList": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref), "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidate": schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidateList": schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidateSpec": schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref), "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), @@ -1012,6 +1018,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), + "k8s.io/api/core/v1.NodeSwapStatus": schema_k8sio_api_core_v1_NodeSwapStatus(ref), "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), @@ -1178,6 +1185,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), + "k8s.io/api/networking/v1.IPAddress": schema_k8sio_api_networking_v1_IPAddress(ref), + "k8s.io/api/networking/v1.IPAddressList": schema_k8sio_api_networking_v1_IPAddressList(ref), + "k8s.io/api/networking/v1.IPAddressSpec": schema_k8sio_api_networking_v1_IPAddressSpec(ref), "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), @@ -1202,7 +1212,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), + "k8s.io/api/networking/v1.ParentReference": schema_k8sio_api_networking_v1_ParentReference(ref), "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), + "k8s.io/api/networking/v1.ServiceCIDR": schema_k8sio_api_networking_v1_ServiceCIDR(ref), + "k8s.io/api/networking/v1.ServiceCIDRList": schema_k8sio_api_networking_v1_ServiceCIDRList(ref), + "k8s.io/api/networking/v1.ServiceCIDRSpec": schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref), + "k8s.io/api/networking/v1.ServiceCIDRStatus": schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref), "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), @@ -19373,6 +19388,20 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref comm Format: "int32", }, }, + "server": { + SchemaProps: spec.SchemaProps{ + Description: "Server allows user to override server in the kubeconfig.", + Type: []string{"string"}, + Format: "", + }, + }, + "clientCert": { + SchemaProps: spec.SchemaProps{ + Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -32242,9 +32271,10 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32406,9 +32436,10 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32507,9 +32538,10 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -33907,9 +33939,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -35555,28 +35588,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", }, @@ -35588,6 +35621,13 @@ func schema_k8sio_api_apps_v1_DeploymentStatus(ref common.ReferenceCallback) com Format: "int32", }, }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -35788,7 +35828,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetList(ref common.ReferenceCallback) commo }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -35818,7 +35858,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", }, @@ -35838,7 +35878,7 @@ func schema_k8sio_api_apps_v1_ReplicaSetSpec(ref common.ReferenceCallback) commo }, "template": { SchemaProps: spec.SchemaProps{ - Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", + Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template", Default: map[string]interface{}{}, Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), }, @@ -35861,7 +35901,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", @@ -35869,21 +35909,28 @@ func schema_k8sio_api_apps_v1_ReplicaSetStatus(ref common.ReferenceCallback) com }, "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of pods that have labels matching the labels of the pod template of the replicaset.", + Description: "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -36307,7 +36354,7 @@ func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) comm }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ @@ -36862,42 +36909,49 @@ func schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "observedGeneration is the generation observed by the deployment controller.", + Description: "The generation observed by the deployment controller.", Type: []string{"integer"}, Format: "int64", }, }, "replicas": { SchemaProps: spec.SchemaProps{ - Description: "replicas is the total number of non-terminated pods targeted by this deployment (their labels match the selector).", + Description: "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", Type: []string{"integer"}, Format: "int32", }, }, "updatedReplicas": { SchemaProps: spec.SchemaProps{ - Description: "updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec.", + Description: "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.", + Description: "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + Description: "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", Type: []string{"integer"}, Format: "int32", }, }, "unavailableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "unavailableReplicas is the total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + Description: "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -36914,7 +36968,7 @@ func schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref common.ReferenceCallback }, }, SchemaProps: spec.SchemaProps{ - Description: "Conditions represent the latest available observations of a deployment's current state.", + Description: "Represents the latest available observations of a deployment's current state.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -37452,7 +37506,7 @@ func schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref common.ReferenceCallback) }, }, }, - Required: []string{"template", "serviceName"}, + Required: []string{"template"}, }, }, Dependencies: []string{ @@ -38284,28 +38338,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", }, @@ -38317,6 +38371,13 @@ func schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref common.ReferenceCallback Format: "int32", }, }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -38516,7 +38577,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref common.ReferenceCallback) }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -38546,7 +38607,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", }, @@ -38566,7 +38627,7 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref common.ReferenceCallback) }, "template": { SchemaProps: spec.SchemaProps{ - Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", + Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template", Default: map[string]interface{}{}, Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), }, @@ -38589,7 +38650,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", @@ -38597,21 +38658,28 @@ func schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref common.ReferenceCallback }, "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of pods that have labels matching the labels of the pod template of the replicaset.", + Description: "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "readyReplicas is the number of pods targeted by this ReplicaSet controller with a Ready Condition.", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -39151,7 +39219,7 @@ func schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref common.ReferenceCallback) }, }, }, - Required: []string{"selector", "template", "serviceName"}, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ @@ -44692,7 +44760,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "successPolicy": { SchemaProps: spec.SchemaProps{ - Description: "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).", + Description: "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.", Ref: ref("k8s.io/api/batch/v1.SuccessPolicy"), }, }, @@ -44705,14 +44773,14 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "backoffLimitPerIndex": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + Description: "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable.", Type: []string{"integer"}, Format: "int32", }, }, "maxFailedIndexes": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + Description: "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5.", Type: []string{"integer"}, Format: "int32", }, @@ -44860,7 +44928,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: "", }, @@ -45039,7 +45107,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: "", @@ -45764,6 +45832,130 @@ func schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref c } } +func schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata contains the object metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec contains the signer (if any) and trust anchors.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec"), + }, + }, + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "metadata contains the list metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is a collection of ClusterTrustBundle objects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/certificates/v1beta1.ClusterTrustBundle"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/certificates/v1beta1.ClusterTrustBundle", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundleSpec contains the signer and trust anchors.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "signerName": { + SchemaProps: spec.SchemaProps{ + Description: "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + Type: []string{"string"}, + Format: "", + }, + }, + "trustBundle": { + SchemaProps: spec.SchemaProps{ + Description: "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"trustBundle"}, + }, + }, + } +} + func schema_k8sio_api_coordination_v1_Lease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -45963,6 +46155,158 @@ func schema_k8sio_api_coordination_v1beta1_Lease(ref common.ReferenceCallback) c } } +func schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/coordination/v1beta1.LeaseCandidateSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/coordination/v1beta1.LeaseCandidateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidateList is a list of Lease objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is a list of schema objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/coordination/v1beta1.LeaseCandidate"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/coordination/v1beta1.LeaseCandidate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "LeaseCandidateSpec is a specification of a Lease.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "leaseName": { + SchemaProps: spec.SchemaProps{ + Description: "LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "pingTime": { + SchemaProps: spec.SchemaProps{ + Description: "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "renewTime": { + SchemaProps: spec.SchemaProps{ + Description: "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "binaryVersion": { + SchemaProps: spec.SchemaProps{ + Description: "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "emulationVersion": { + SchemaProps: spec.SchemaProps{ + Description: "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + Type: []string{"string"}, + Format: "", + }, + }, + "strategy": { + SchemaProps: spec.SchemaProps{ + Description: "Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"leaseName", "binaryVersion", "strategy"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, + } +} + func schema_k8sio_api_coordination_v1beta1_LeaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -48175,6 +48519,14 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm }, }, }, + "stopSignal": { + SchemaProps: spec.SchemaProps{ + Description: "StopSignal reports the effective stop signal for this container\n\nPossible enum values:\n - `\"SIGABRT\"`\n - `\"SIGALRM\"`\n - `\"SIGBUS\"`\n - `\"SIGCHLD\"`\n - `\"SIGCLD\"`\n - `\"SIGCONT\"`\n - `\"SIGFPE\"`\n - `\"SIGHUP\"`\n - `\"SIGILL\"`\n - `\"SIGINT\"`\n - `\"SIGIO\"`\n - `\"SIGIOT\"`\n - `\"SIGKILL\"`\n - `\"SIGPIPE\"`\n - `\"SIGPOLL\"`\n - `\"SIGPROF\"`\n - `\"SIGPWR\"`\n - `\"SIGQUIT\"`\n - `\"SIGRTMAX\"`\n - `\"SIGRTMAX-1\"`\n - `\"SIGRTMAX-10\"`\n - `\"SIGRTMAX-11\"`\n - `\"SIGRTMAX-12\"`\n - `\"SIGRTMAX-13\"`\n - `\"SIGRTMAX-14\"`\n - `\"SIGRTMAX-2\"`\n - `\"SIGRTMAX-3\"`\n - `\"SIGRTMAX-4\"`\n - `\"SIGRTMAX-5\"`\n - `\"SIGRTMAX-6\"`\n - `\"SIGRTMAX-7\"`\n - `\"SIGRTMAX-8\"`\n - `\"SIGRTMAX-9\"`\n - `\"SIGRTMIN\"`\n - `\"SIGRTMIN+1\"`\n - `\"SIGRTMIN+10\"`\n - `\"SIGRTMIN+11\"`\n - `\"SIGRTMIN+12\"`\n - `\"SIGRTMIN+13\"`\n - `\"SIGRTMIN+14\"`\n - `\"SIGRTMIN+15\"`\n - `\"SIGRTMIN+2\"`\n - `\"SIGRTMIN+3\"`\n - `\"SIGRTMIN+4\"`\n - `\"SIGRTMIN+5\"`\n - `\"SIGRTMIN+6\"`\n - `\"SIGRTMIN+7\"`\n - `\"SIGRTMIN+8\"`\n - `\"SIGRTMIN+9\"`\n - `\"SIGSEGV\"`\n - `\"SIGSTKFLT\"`\n - `\"SIGSTOP\"`\n - `\"SIGSYS\"`\n - `\"SIGTERM\"`\n - `\"SIGTRAP\"`\n - `\"SIGTSTP\"`\n - `\"SIGTTIN\"`\n - `\"SIGTTOU\"`\n - `\"SIGURG\"`\n - `\"SIGUSR1\"`\n - `\"SIGUSR2\"`\n - `\"SIGVTALRM\"`\n - `\"SIGWINCH\"`\n - `\"SIGXCPU\"`\n - `\"SIGXFSZ\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"SIGABRT", "SIGALRM", "SIGBUS", "SIGCHLD", "SIGCLD", "SIGCONT", "SIGFPE", "SIGHUP", "SIGILL", "SIGINT", "SIGIO", "SIGIOT", "SIGKILL", "SIGPIPE", "SIGPOLL", "SIGPROF", "SIGPWR", "SIGQUIT", "SIGRTMAX", "SIGRTMAX-1", "SIGRTMAX-10", "SIGRTMAX-11", "SIGRTMAX-12", "SIGRTMAX-13", "SIGRTMAX-14", "SIGRTMAX-2", "SIGRTMAX-3", "SIGRTMAX-4", "SIGRTMAX-5", "SIGRTMAX-6", "SIGRTMAX-7", "SIGRTMAX-8", "SIGRTMAX-9", "SIGRTMIN", "SIGRTMIN+1", "SIGRTMIN+10", "SIGRTMIN+11", "SIGRTMIN+12", "SIGRTMIN+13", "SIGRTMIN+14", "SIGRTMIN+15", "SIGRTMIN+2", "SIGRTMIN+3", "SIGRTMIN+4", "SIGRTMIN+5", "SIGRTMIN+6", "SIGRTMIN+7", "SIGRTMIN+8", "SIGRTMIN+9", "SIGSEGV", "SIGSTKFLT", "SIGSTOP", "SIGSYS", "SIGTERM", "SIGTRAP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", "SIGUSR1", "SIGUSR2", "SIGVTALRM", "SIGWINCH", "SIGXCPU", "SIGXFSZ"}, + }, + }, }, Required: []string{"name", "ready", "restartCount", "image", "imageID"}, }, @@ -48377,7 +48729,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": { @@ -48426,7 +48778,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": { @@ -48475,7 +48827,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": { @@ -48547,7 +48899,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": { @@ -48602,7 +48954,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": { @@ -48653,12 +49005,12 @@ func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EnvFromSource represents the source of a set of ConfigMaps", + Description: "EnvFromSource represents the source of a set of ConfigMaps or Secrets", Type: []string{"object"}, Properties: map[string]spec.Schema{ "prefix": { SchemaProps: spec.SchemaProps{ - Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + Description: "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.", Type: []string{"string"}, Format: "", }, @@ -50560,6 +50912,14 @@ func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.Ope Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), }, }, + "stopSignal": { + SchemaProps: spec.SchemaProps{ + Description: "StopSignal defines which signal will be sent to a container when it is being stopped. If not specified, the default is defined by the container runtime in use. StopSignal can only be set for Pods with a non-empty .spec.os.name\n\nPossible enum values:\n - `\"SIGABRT\"`\n - `\"SIGALRM\"`\n - `\"SIGBUS\"`\n - `\"SIGCHLD\"`\n - `\"SIGCLD\"`\n - `\"SIGCONT\"`\n - `\"SIGFPE\"`\n - `\"SIGHUP\"`\n - `\"SIGILL\"`\n - `\"SIGINT\"`\n - `\"SIGIO\"`\n - `\"SIGIOT\"`\n - `\"SIGKILL\"`\n - `\"SIGPIPE\"`\n - `\"SIGPOLL\"`\n - `\"SIGPROF\"`\n - `\"SIGPWR\"`\n - `\"SIGQUIT\"`\n - `\"SIGRTMAX\"`\n - `\"SIGRTMAX-1\"`\n - `\"SIGRTMAX-10\"`\n - `\"SIGRTMAX-11\"`\n - `\"SIGRTMAX-12\"`\n - `\"SIGRTMAX-13\"`\n - `\"SIGRTMAX-14\"`\n - `\"SIGRTMAX-2\"`\n - `\"SIGRTMAX-3\"`\n - `\"SIGRTMAX-4\"`\n - `\"SIGRTMAX-5\"`\n - `\"SIGRTMAX-6\"`\n - `\"SIGRTMAX-7\"`\n - `\"SIGRTMAX-8\"`\n - `\"SIGRTMAX-9\"`\n - `\"SIGRTMIN\"`\n - `\"SIGRTMIN+1\"`\n - `\"SIGRTMIN+10\"`\n - `\"SIGRTMIN+11\"`\n - `\"SIGRTMIN+12\"`\n - `\"SIGRTMIN+13\"`\n - `\"SIGRTMIN+14\"`\n - `\"SIGRTMIN+15\"`\n - `\"SIGRTMIN+2\"`\n - `\"SIGRTMIN+3\"`\n - `\"SIGRTMIN+4\"`\n - `\"SIGRTMIN+5\"`\n - `\"SIGRTMIN+6\"`\n - `\"SIGRTMIN+7\"`\n - `\"SIGRTMIN+8\"`\n - `\"SIGRTMIN+9\"`\n - `\"SIGSEGV\"`\n - `\"SIGSTKFLT\"`\n - `\"SIGSTOP\"`\n - `\"SIGSYS\"`\n - `\"SIGTERM\"`\n - `\"SIGTRAP\"`\n - `\"SIGTSTP\"`\n - `\"SIGTTIN\"`\n - `\"SIGTTOU\"`\n - `\"SIGURG\"`\n - `\"SIGUSR1\"`\n - `\"SIGUSR2\"`\n - `\"SIGVTALRM\"`\n - `\"SIGWINCH\"`\n - `\"SIGXCPU\"`\n - `\"SIGXFSZ\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"SIGABRT", "SIGALRM", "SIGBUS", "SIGCHLD", "SIGCLD", "SIGCONT", "SIGFPE", "SIGHUP", "SIGILL", "SIGINT", "SIGIO", "SIGIOT", "SIGKILL", "SIGPIPE", "SIGPOLL", "SIGPROF", "SIGPWR", "SIGQUIT", "SIGRTMAX", "SIGRTMAX-1", "SIGRTMAX-10", "SIGRTMAX-11", "SIGRTMAX-12", "SIGRTMAX-13", "SIGRTMAX-14", "SIGRTMAX-2", "SIGRTMAX-3", "SIGRTMAX-4", "SIGRTMAX-5", "SIGRTMAX-6", "SIGRTMAX-7", "SIGRTMAX-8", "SIGRTMAX-9", "SIGRTMIN", "SIGRTMIN+1", "SIGRTMIN+10", "SIGRTMIN+11", "SIGRTMIN+12", "SIGRTMIN+13", "SIGRTMIN+14", "SIGRTMIN+15", "SIGRTMIN+2", "SIGRTMIN+3", "SIGRTMIN+4", "SIGRTMIN+5", "SIGRTMIN+6", "SIGRTMIN+7", "SIGRTMIN+8", "SIGRTMIN+9", "SIGSEGV", "SIGSTKFLT", "SIGSTOP", "SIGSYS", "SIGTERM", "SIGTRAP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", "SIGUSR1", "SIGUSR2", "SIGVTALRM", "SIGWINCH", "SIGXCPU", "SIGXFSZ"}, + }, + }, }, }, }, @@ -52236,6 +52596,26 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op } } +func schema_k8sio_api_core_v1_NodeSwapStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeSwapStatus represents swap memory information.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Total amount of swap memory in bytes.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + }, + }, + } +} + func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -52323,10 +52703,18 @@ func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) commo Format: "", }, }, + "swap": { + SchemaProps: spec.SchemaProps{ + Description: "Swap Info reported by the node.", + Ref: ref("k8s.io/api/core/v1.NodeSwapStatus"), + }, + }, }, Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, }, }, + Dependencies: []string{ + "k8s.io/api/core/v1.NodeSwapStatus"}, } } @@ -53596,7 +53984,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{ @@ -53616,7 +54004,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{ @@ -53768,6 +54156,13 @@ func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common. Format: "", }, }, + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "If set, this represents the .metadata.generation that the pod condition was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + Type: []string{"integer"}, + Format: "int64", + }, + }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", @@ -54571,7 +54966,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, SchemaProps: spec.SchemaProps{ - Description: "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + Description: "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -55028,6 +55423,13 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Description: "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", Type: []string{"object"}, Properties: map[string]spec.Schema{ + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "If set, this represents the .metadata.generation that the pod status was set based upon. This is an alpha field. Enable PodObservedGenerationTracking to be able to use this field.", + Type: []string{"integer"}, + Format: "int64", + }, + }, "phase": { SchemaProps: spec.SchemaProps{ Description: "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", @@ -55213,7 +55615,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: "", }, @@ -56174,6 +56576,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", }, @@ -56181,6 +56584,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", }, @@ -56533,7 +56937,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"}, }, }, }, @@ -56974,11 +57378,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": { @@ -58127,7 +58531,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 a beta 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: "", }, @@ -58610,7 +59014,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"}, @@ -58618,7 +59022,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"}, @@ -58930,7 +59334,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "image": { SchemaProps: spec.SchemaProps{ - Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", Ref: ref("k8s.io/api/core/v1.ImageVolumeSource"), }, }, @@ -59375,7 +59779,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "image": { SchemaProps: spec.SchemaProps{ - Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", Ref: ref("k8s.io/api/core/v1.ImageVolumeSource"), }, }, @@ -60376,28 +60780,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", }, @@ -60409,6 +60813,13 @@ func schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref common.ReferenceCa Format: "int32", }, }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", + Type: []string{"integer"}, + Format: "int32", + }, + }, "conditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -61504,7 +61915,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref common.ReferenceCall }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -61534,7 +61945,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", }, @@ -61554,7 +61965,7 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref common.ReferenceCall }, "template": { SchemaProps: spec.SchemaProps{ - Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", + Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template", Default: map[string]interface{}{}, Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), }, @@ -61576,7 +61987,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", @@ -61584,21 +61995,28 @@ func schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref common.ReferenceCa }, "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of pods that have labels matching the labels of the pod template of the replicaset.", + Description: "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.", Type: []string{"integer"}, Format: "int32", }, }, "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of ready replicas for this replica set.", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", Type: []string{"integer"}, Format: "int32", }, }, "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "terminatingReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is an alpha field. Enable DeploymentReplicaSetTerminatingReplicas to be able to use this field.", Type: []string{"integer"}, Format: "int32", }, @@ -61910,6 +62328,122 @@ func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCal } } +func schema_k8sio_api_networking_v1_IPAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.IPAddressSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.IPAddressSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_networking_v1_IPAddressList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IPAddressList contains a list of IPAddress.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of IPAddresses.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.IPAddress"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.IPAddress", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_networking_v1_IPAddressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IPAddressSpec describe the attributes in an IP Address.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "parentRef": { + SchemaProps: spec.SchemaProps{ + Description: "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.", + Ref: ref("k8s.io/api/networking/v1.ParentReference"), + }, + }, + }, + Required: []string{"parentRef"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.ParentReference"}, + } +} + func schema_k8sio_api_networking_v1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -62930,6 +63464,48 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba } } +func schema_k8sio_api_networking_v1_ParentReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ParentReference describes a reference to a parent object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { + SchemaProps: spec.SchemaProps{ + Description: "Group is the group of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + "resource": { + SchemaProps: spec.SchemaProps{ + Description: "Resource is the resource of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the object being referenced.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"resource", "name"}, + }, + }, + } +} + func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -62962,6 +63538,179 @@ func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallb } } +func schema_k8sio_api_networking_v1_ServiceCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.ServiceCIDRSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.ServiceCIDRStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.ServiceCIDRSpec", "k8s.io/api/networking/v1.ServiceCIDRStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDRList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDRList contains a list of ServiceCIDR objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of ServiceCIDRs.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/networking/v1.ServiceCIDR"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/networking/v1.ServiceCIDR", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cidrs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, + } +} + func schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -64545,7 +65294,7 @@ func schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref common.Referenc }, "unhealthyPodEvictionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).\n\nPossible enum values:\n - `\"AlwaysAllow\"` policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n - `\"IfHealthyBudget\"` policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.", + Description: "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nPossible enum values:\n - `\"AlwaysAllow\"` policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n - `\"IfHealthyBudget\"` policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.", Type: []string{"string"}, Format: "", Enum: []interface{}{"AlwaysAllow", "IfHealthyBudget"}, @@ -67227,6 +67976,13 @@ func schema_k8sio_api_storage_v1_CSIDriverSpec(ref common.ReferenceCallback) com Format: "", }, }, + "nodeAllocatableUpdatePeriodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -67986,6 +68742,13 @@ func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) commo Format: "", }, }, + "errorCode": { + SchemaProps: spec.SchemaProps{ + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -68481,6 +69244,13 @@ func schema_k8sio_api_storage_v1alpha1_VolumeError(ref common.ReferenceCallback) Format: "", }, }, + "errorCode": { + SchemaProps: spec.SchemaProps{ + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -68672,6 +69442,13 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref common.ReferenceCallback Format: "", }, }, + "nodeAllocatableUpdatePeriodSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", + }, + }, }, }, }, @@ -69542,6 +70319,13 @@ func schema_k8sio_api_storage_v1beta1_VolumeError(ref common.ReferenceCallback) Format: "", }, }, + "errorCode": { + SchemaProps: spec.SchemaProps{ + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, }, }, @@ -72166,16 +72950,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": { From 79ced155df08b40c26e015e6da76df5548116ed7 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 23 Jul 2025 16:21:08 +0000 Subject: [PATCH 22/30] [skip ci] repo-sync --- go.mod | 18 +- go.sum | 52 +- .../install/zz_generated.api.register.go | 6 + pkg/apis/management/v1/nodeclaim_types.go | 33 + pkg/apis/management/v1/nodeprovider_types.go | 33 + pkg/apis/management/v1/nodetype_types.go | 41 + .../v1/zz_generated.api.register.go | 48 + .../management/v1/zz_generated.conversion.go | 402 + .../management/v1/zz_generated.deepcopy.go | 285 + .../management/zz_generated.api.register.go | 502 +- pkg/apis/management/zz_generated.deepcopy.go | 285 + pkg/apis/storage/v1/networkpeer_types.go | 2 +- pkg/apis/storage/v1/nodeclaim_types.go | 119 + pkg/apis/storage/v1/nodeprovider_types.go | 167 + pkg/apis/storage/v1/nodetype_types.go | 211 + pkg/apis/storage/v1/zz_generated.deepcopy.go | 521 ++ pkg/apis/zz_generated.api.register.go | 2 + .../v1/fake/fake_management_client.go | 12 + .../management/v1/fake/fake_nodeclaim.go | 32 + .../management/v1/fake/fake_nodeprovider.go | 34 + .../typed/management/v1/fake/fake_nodetype.go | 32 + .../management/v1/generated_expansion.go | 6 + .../typed/management/v1/management_client.go | 15 + .../typed/management/v1/nodeclaim.go | 54 + .../typed/management/v1/nodeprovider.go | 54 + .../versioned/typed/management/v1/nodetype.go | 54 + .../typed/storage/v1/fake/fake_nodeclaim.go | 32 + .../storage/v1/fake/fake_nodeprovider.go | 34 + .../typed/storage/v1/fake/fake_nodetype.go | 32 + .../storage/v1/fake/fake_storage_client.go | 12 + .../typed/storage/v1/generated_expansion.go | 6 + .../versioned/typed/storage/v1/nodeclaim.go | 54 + .../typed/storage/v1/nodeprovider.go | 54 + .../versioned/typed/storage/v1/nodetype.go | 54 + .../typed/storage/v1/storage_client.go | 15 + pkg/informers/externalversions/generic.go | 12 + .../management/v1/interface.go | 21 + .../management/v1/nodeclaim.go | 86 + .../management/v1/nodeprovider.go | 85 + .../management/v1/nodetype.go | 85 + .../externalversions/storage/v1/interface.go | 21 + .../externalversions/storage/v1/nodeclaim.go | 86 + .../storage/v1/nodeprovider.go | 85 + .../externalversions/storage/v1/nodetype.go | 85 + .../management/v1/expansion_generated.go | 16 + pkg/listers/management/v1/nodeclaim.go | 54 + pkg/listers/management/v1/nodeprovider.go | 32 + pkg/listers/management/v1/nodetype.go | 32 + pkg/listers/storage/v1/expansion_generated.go | 16 + pkg/listers/storage/v1/nodeclaim.go | 54 + pkg/listers/storage/v1/nodeprovider.go | 32 + pkg/listers/storage/v1/nodetype.go | 32 + pkg/openapi/zz_generated.openapi.go | 7331 ++++++++++------- 53 files changed, 8536 insertions(+), 2942 deletions(-) create mode 100644 pkg/apis/management/v1/nodeclaim_types.go create mode 100644 pkg/apis/management/v1/nodeprovider_types.go create mode 100644 pkg/apis/management/v1/nodetype_types.go create mode 100644 pkg/apis/storage/v1/nodeclaim_types.go create mode 100644 pkg/apis/storage/v1/nodeprovider_types.go create mode 100644 pkg/apis/storage/v1/nodetype_types.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go create mode 100644 pkg/clientset/versioned/typed/management/v1/nodeclaim.go create mode 100644 pkg/clientset/versioned/typed/management/v1/nodeprovider.go create mode 100644 pkg/clientset/versioned/typed/management/v1/nodetype.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/nodeclaim.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/nodeprovider.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/nodetype.go create mode 100644 pkg/informers/externalversions/management/v1/nodeclaim.go create mode 100644 pkg/informers/externalversions/management/v1/nodeprovider.go create mode 100644 pkg/informers/externalversions/management/v1/nodetype.go create mode 100644 pkg/informers/externalversions/storage/v1/nodeclaim.go create mode 100644 pkg/informers/externalversions/storage/v1/nodeprovider.go create mode 100644 pkg/informers/externalversions/storage/v1/nodetype.go create mode 100644 pkg/listers/management/v1/nodeclaim.go create mode 100644 pkg/listers/management/v1/nodeprovider.go create mode 100644 pkg/listers/management/v1/nodetype.go create mode 100644 pkg/listers/storage/v1/nodeclaim.go create mode 100644 pkg/listers/storage/v1/nodeprovider.go create mode 100644 pkg/listers/storage/v1/nodetype.go diff --git a/go.mod b/go.mod index 0a13b6e8..ab415516 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae - github.com/loft-sh/agentapi/v4 v4.4.0-alpha.7 + github.com/loft-sh/agentapi/v4 v4.5.0-next.1 github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 google.golang.org/grpc v1.68.1 google.golang.org/protobuf v1.36.5 @@ -36,7 +36,7 @@ require ( github.com/emicklei/go-restful/v3 v3.12.1 // indirect github.com/evanphx/json-patch/v5 v5.9.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -50,6 +50,7 @@ require ( github.com/google/cel-go v0.23.2 // indirect github.com/google/gnostic-models v0.6.9 // indirect github.com/google/go-cmp v0.7.0 // indirect + github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect @@ -66,8 +67,8 @@ require ( github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.62.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/spf13/cobra v1.8.1 // indirect - github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/cobra v1.9.1 // indirect + github.com/spf13/pflag v1.0.6 // indirect github.com/stoewer/go-strcase v1.3.0 // indirect github.com/x448/float16 v0.8.4 // indirect go.etcd.io/etcd/api/v3 v3.5.21 // indirect @@ -83,21 +84,22 @@ require ( go.opentelemetry.io/otel/sdk v1.33.0 // indirect go.opentelemetry.io/otel/trace v1.33.0 // indirect go.opentelemetry.io/proto/otlp v1.4.0 // indirect + go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/crypto v0.36.0 // indirect golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect - golang.org/x/mod v0.22.0 // indirect + golang.org/x/mod v0.24.0 // indirect golang.org/x/net v0.38.0 // indirect golang.org/x/oauth2 v0.28.0 // indirect golang.org/x/sync v0.12.0 // indirect - golang.org/x/sys v0.31.0 // indirect + golang.org/x/sys v0.32.0 // indirect golang.org/x/term v0.30.0 // indirect golang.org/x/text v0.23.0 // indirect golang.org/x/time v0.9.0 // indirect - golang.org/x/tools v0.29.0 // indirect + golang.org/x/tools v0.31.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index aa4b208b..012be96f 100644 --- a/go.sum +++ b/go.sum @@ -16,7 +16,7 @@ github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -29,8 +29,8 @@ github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0 github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= -github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= +github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= @@ -71,8 +71,8 @@ github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX 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-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= -github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/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.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= @@ -105,8 +105,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae h1:nyrRyiEi1mssYel6z3NaUiHBaFG2bBA6HCsADWxSMo0= github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.4.0-alpha.7 h1:u3SatYgsAW/4BM3GSmN8hwaNDl/QM8VkfyJqiiqJmKs= -github.com/loft-sh/agentapi/v4 v4.4.0-alpha.7/go.mod h1:PiGvXqHI8SmsbJ6lMUgmybTkD+Q2Pn/1IoWuYTg+lCI= +github.com/loft-sh/agentapi/v4 v4.5.0-next.1 h1:cTKk4CIjvuY+p63hCL+SqoRuFnINyHzlsIe+I5snyjQ= +github.com/loft-sh/agentapi/v4 v4.5.0-next.1/go.mod h1:wERN3GDmvqTcKC2NvsYMPwvfXzEd3pXxRyvDSLTxU48= github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 h1:CucC57Nm4cfTsktoj6UaSSh29q/adSLrDcALh377SP4= github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2/go.mod h1:ROoLzugsusno4FKi+Lju6VN62u9mROLi3MvLrqC3cA4= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -122,10 +122,10 @@ 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.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= -github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= -github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= -github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= +github.com/onsi/ginkgo/v2 v2.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus= +github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8= +github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y= +github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -146,10 +146,10 @@ github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= -github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= -github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= +github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= +github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= +github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stoewer/go-strcase v1.3.0 h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs= github.com/stoewer/go-strcase v1.3.0/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -207,6 +207,8 @@ go.opentelemetry.io/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qq go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= go.opentelemetry.io/proto/otlp v1.4.0 h1:TA9WRvW6zMwP+Ssb6fLoUIuirti1gGbP28GcKG1jgeg= go.opentelemetry.io/proto/otlp v1.4.0/go.mod h1:PPBWZIP98o2ElSqI35IHfu7hIhSwvc5N38Jw8pXuGFY= +go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= +go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= @@ -222,8 +224,8 @@ golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 h1:yqrTHse8TCMW1M1ZCP+VAR/l0 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.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= +golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -240,8 +242,8 @@ golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= +golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -254,20 +256,20 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm 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.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= -golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= +golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU= +golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= -google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= +google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk= +google.golang.org/genproto v0.0.0-20241118233622-e639e219e697/go.mod h1:JJrvXBWRZaFMxBufik1a4RpFw4HhgVtBBWQeQgUj2cc= google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q= google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 h1:8ZmaLZE4XWrtU3MyClkYqqtl6Oegr3235h7jxsDyqCY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0= google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw= google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index 39fa4b80..fecc15c8 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -83,6 +83,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.LicenseTokenList{}, &management.LoftUpgrade{}, &management.LoftUpgradeList{}, + &management.NodeClaim{}, + &management.NodeClaimList{}, + &management.NodeProvider{}, + &management.NodeProviderList{}, + &management.NodeType{}, + &management.NodeTypeList{}, &management.OIDCClient{}, &management.OIDCClientList{}, &management.OwnedAccessKey{}, diff --git a/pkg/apis/management/v1/nodeclaim_types.go b/pkg/apis/management/v1/nodeclaim_types.go new file mode 100644 index 00000000..a9dff856 --- /dev/null +++ b/pkg/apis/management/v1/nodeclaim_types.go @@ -0,0 +1,33 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="VCluster",type="string",JSONPath=".spec.vClusterRef" +// +kubebuilder:printcolumn:name="NodeType",type="string",JSONPath=".spec.nodeTypeRef" +// +kubebuilder:subresource:status + +// NodeClaim holds the node claim for vCluster. +// +k8s:openapi-gen=true +// +resource:path=nodeclaims,rest=NodeClaimREST,statusRest=NodeClaimStatusREST +type NodeClaim struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeClaimSpec `json:"spec,omitempty"` + Status NodeClaimStatus `json:"status,omitempty"` +} + +// NodeClaimSpec defines spec of node claim. +type NodeClaimSpec struct { + storagev1.NodeClaimSpec `json:",inline"` +} + +type NodeClaimStatus struct { + storagev1.NodeClaimStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/nodeprovider_types.go b/pkg/apis/management/v1/nodeprovider_types.go new file mode 100644 index 00000000..82f6b5c8 --- /dev/null +++ b/pkg/apis/management/v1/nodeprovider_types.go @@ -0,0 +1,33 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeProvider holds the information of a node provider config. +// This resource defines various ways a node can be provisioned or configured. +// +k8s:openapi-gen=true +// +resource:path=nodeproviders,rest=NodeProviderREST,statusRest=NodeProviderStatusREST +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +// NodeProviderSpec defines the desired state of NodeProvider. +// Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time. +type NodeProviderSpec struct { + storagev1.NodeProviderSpec `json:",inline"` +} + +// NodeProviderStatus defines the observed state of NodeProvider. +type NodeProviderStatus struct { + storagev1.NodeProviderStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/nodetype_types.go b/pkg/apis/management/v1/nodetype_types.go new file mode 100644 index 00000000..2c739139 --- /dev/null +++ b/pkg/apis/management/v1/nodetype_types.go @@ -0,0 +1,41 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Available",type="integer",JSONPath=".status.capacity.available" +// +kubebuilder:printcolumn:name="Total",type="integer",JSONPath=".status.capacity.total" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:resource:scope=Cluster + +// NodeType holds the information of a node type. +// +k8s:openapi-gen=true +// +resource:path=nodetypes,rest=NodeTypeREST,statusRest=NodeTypeStatusREST +type NodeType struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` +} + +func (a *NodeType) GetAllProperties() []corev1.NodeSelectorRequirement { + return (&storagev1.NodeType{ + ObjectMeta: a.ObjectMeta, + Spec: a.Spec.NodeTypeSpec, + Status: a.Status.NodeTypeStatus, + }).GetAllProperties() +} + +type NodeTypeSpec struct { + storagev1.NodeTypeSpec `json:",inline"` +} +type NodeTypeStatus struct { + storagev1.NodeTypeStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 0b74ceca..47285141 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -74,6 +74,12 @@ func addKnownTypes(scheme *runtime.Scheme) error { &LicenseTokenList{}, &LoftUpgrade{}, &LoftUpgradeList{}, + &NodeClaim{}, + &NodeClaimList{}, + &NodeProvider{}, + &NodeProviderList{}, + &NodeType{}, + &NodeTypeList{}, &OIDCClient{}, &OIDCClientList{}, &OwnedAccessKey{}, @@ -276,6 +282,24 @@ var ( ), management.ManagementLicenseTokenStorage, management.ManagementLoftUpgradeStorage, + management.ManagementNodeClaimStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeClaimStatus, + func() runtime.Object { return &NodeClaim{} }, // Register versioned resource + func() runtime.Object { return &NodeClaimList{} }, // Register versioned resource list + management.NewNodeClaimStatusREST), + management.ManagementNodeProviderStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeProviderStatus, + func() runtime.Object { return &NodeProvider{} }, // Register versioned resource + func() runtime.Object { return &NodeProviderList{} }, // Register versioned resource list + management.NewNodeProviderStatusREST), + management.ManagementNodeTypeStorage, + builders.NewApiResourceWithStorage( + management.InternalNodeTypeStatus, + func() runtime.Object { return &NodeType{} }, // Register versioned resource + func() runtime.Object { return &NodeTypeList{} }, // Register versioned resource list + management.NewNodeTypeStatusREST), management.ManagementOIDCClientStorage, management.ManagementOwnedAccessKeyStorage, management.ManagementProjectStorage, @@ -778,6 +802,30 @@ type LoftUpgradeList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type NodeClaimList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeClaim `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProviderList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProvider `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeTypeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeType `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type OIDCClientList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 331d58b1..2e423441 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -1710,6 +1710,126 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*NodeTypeList)(nil), (*management.NodeTypeList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeTypeList_To_management_NodeTypeList(a.(*NodeTypeList), b.(*management.NodeTypeList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.NodeTypeList)(nil), (*NodeTypeList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeTypeList_To_v1_NodeTypeList(a.(*management.NodeTypeList), b.(*NodeTypeList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*NodeTypeSpec)(nil), (*management.NodeTypeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec(a.(*NodeTypeSpec), b.(*management.NodeTypeSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.NodeTypeSpec)(nil), (*NodeTypeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec(a.(*management.NodeTypeSpec), b.(*NodeTypeSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*NodeTypeStatus)(nil), (*management.NodeTypeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus(a.(*NodeTypeStatus), b.(*management.NodeTypeStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.NodeTypeStatus)(nil), (*NodeTypeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(a.(*management.NodeTypeStatus), b.(*NodeTypeStatus), scope) + }); err != nil { + return err + } if err := s.AddGeneratedConversionFunc((*OIDC)(nil), (*management.OIDC)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_OIDC_To_management_OIDC(a.(*OIDC), b.(*management.OIDC), scope) }); err != nil { @@ -7512,6 +7632,288 @@ func Convert_management_ManagementRole_To_v1_ManagementRole(in *management.Manag return autoConvert_management_ManagementRole_To_v1_ManagementRole(in, out, s) } +func autoConvert_v1_NodeClaim_To_management_NodeClaim(in *NodeClaim, out *management.NodeClaim, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_NodeClaim_To_management_NodeClaim is an autogenerated conversion function. +func Convert_v1_NodeClaim_To_management_NodeClaim(in *NodeClaim, out *management.NodeClaim, s conversion.Scope) error { + return autoConvert_v1_NodeClaim_To_management_NodeClaim(in, out, s) +} + +func autoConvert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out *NodeClaim, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_NodeClaim_To_v1_NodeClaim is an autogenerated conversion function. +func Convert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out *NodeClaim, s conversion.Scope) error { + return autoConvert_management_NodeClaim_To_v1_NodeClaim(in, out, s) +} + +func autoConvert_v1_NodeClaimList_To_management_NodeClaimList(in *NodeClaimList, out *management.NodeClaimList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeClaim)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_NodeClaimList_To_management_NodeClaimList is an autogenerated conversion function. +func Convert_v1_NodeClaimList_To_management_NodeClaimList(in *NodeClaimList, out *management.NodeClaimList, s conversion.Scope) error { + return autoConvert_v1_NodeClaimList_To_management_NodeClaimList(in, out, s) +} + +func autoConvert_management_NodeClaimList_To_v1_NodeClaimList(in *management.NodeClaimList, out *NodeClaimList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeClaim)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_NodeClaimList_To_v1_NodeClaimList is an autogenerated conversion function. +func Convert_management_NodeClaimList_To_v1_NodeClaimList(in *management.NodeClaimList, out *NodeClaimList, s conversion.Scope) error { + return autoConvert_management_NodeClaimList_To_v1_NodeClaimList(in, out, s) +} + +func autoConvert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in *NodeClaimSpec, out *management.NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec + return nil +} + +// Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec is an autogenerated conversion function. +func Convert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in *NodeClaimSpec, out *management.NodeClaimSpec, s conversion.Scope) error { + return autoConvert_v1_NodeClaimSpec_To_management_NodeClaimSpec(in, out, s) +} + +func autoConvert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in *management.NodeClaimSpec, out *NodeClaimSpec, s conversion.Scope) error { + out.NodeClaimSpec = in.NodeClaimSpec + return nil +} + +// Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec is an autogenerated conversion function. +func Convert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in *management.NodeClaimSpec, out *NodeClaimSpec, s conversion.Scope) error { + return autoConvert_management_NodeClaimSpec_To_v1_NodeClaimSpec(in, out, s) +} + +func autoConvert_v1_NodeClaimStatus_To_management_NodeClaimStatus(in *NodeClaimStatus, out *management.NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus + return nil +} + +// Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus is an autogenerated conversion function. +func Convert_v1_NodeClaimStatus_To_management_NodeClaimStatus(in *NodeClaimStatus, out *management.NodeClaimStatus, s conversion.Scope) error { + return autoConvert_v1_NodeClaimStatus_To_management_NodeClaimStatus(in, out, s) +} + +func autoConvert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.NodeClaimStatus, out *NodeClaimStatus, s conversion.Scope) error { + out.NodeClaimStatus = in.NodeClaimStatus + return nil +} + +// Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus is an autogenerated conversion function. +func Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.NodeClaimStatus, out *NodeClaimStatus, s conversion.Scope) error { + return autoConvert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in, out, s) +} + +func autoConvert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_NodeProvider_To_management_NodeProvider is an autogenerated conversion function. +func Convert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { + return autoConvert_v1_NodeProvider_To_management_NodeProvider(in, out, s) +} + +func autoConvert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_NodeProvider_To_v1_NodeProvider is an autogenerated conversion function. +func Convert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + return autoConvert_management_NodeProvider_To_v1_NodeProvider(in, out, s) +} + +func autoConvert_v1_NodeProviderList_To_management_NodeProviderList(in *NodeProviderList, out *management.NodeProviderList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeProvider)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_NodeProviderList_To_management_NodeProviderList is an autogenerated conversion function. +func Convert_v1_NodeProviderList_To_management_NodeProviderList(in *NodeProviderList, out *management.NodeProviderList, s conversion.Scope) error { + return autoConvert_v1_NodeProviderList_To_management_NodeProviderList(in, out, s) +} + +func autoConvert_management_NodeProviderList_To_v1_NodeProviderList(in *management.NodeProviderList, out *NodeProviderList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeProvider)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_NodeProviderList_To_v1_NodeProviderList is an autogenerated conversion function. +func Convert_management_NodeProviderList_To_v1_NodeProviderList(in *management.NodeProviderList, out *NodeProviderList, s conversion.Scope) error { + return autoConvert_management_NodeProviderList_To_v1_NodeProviderList(in, out, s) +} + +func autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec + return nil +} + +// Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec is an autogenerated conversion function. +func Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in *NodeProviderSpec, out *management.NodeProviderSpec, s conversion.Scope) error { + return autoConvert_v1_NodeProviderSpec_To_management_NodeProviderSpec(in, out, s) +} + +func autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + out.NodeProviderSpec = in.NodeProviderSpec + return nil +} + +// Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec is an autogenerated conversion function. +func Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in *management.NodeProviderSpec, out *NodeProviderSpec, s conversion.Scope) error { + return autoConvert_management_NodeProviderSpec_To_v1_NodeProviderSpec(in, out, s) +} + +func autoConvert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus + return nil +} + +// Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus is an autogenerated conversion function. +func Convert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in *NodeProviderStatus, out *management.NodeProviderStatus, s conversion.Scope) error { + return autoConvert_v1_NodeProviderStatus_To_management_NodeProviderStatus(in, out, s) +} + +func autoConvert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + out.NodeProviderStatus = in.NodeProviderStatus + return nil +} + +// Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus is an autogenerated conversion function. +func Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *management.NodeProviderStatus, out *NodeProviderStatus, s conversion.Scope) error { + return autoConvert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in, out, s) +} + +func autoConvert_v1_NodeType_To_management_NodeType(in *NodeType, out *management.NodeType, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeTypeSpec_To_management_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeTypeStatus_To_management_NodeTypeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_NodeType_To_management_NodeType is an autogenerated conversion function. +func Convert_v1_NodeType_To_management_NodeType(in *NodeType, out *management.NodeType, s conversion.Scope) error { + return autoConvert_v1_NodeType_To_management_NodeType(in, out, s) +} + +func autoConvert_management_NodeType_To_v1_NodeType(in *management.NodeType, out *NodeType, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeTypeSpec_To_v1_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeTypeStatus_To_v1_NodeTypeStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_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_NodeTypeList_To_management_NodeTypeList(in *NodeTypeList, out *management.NodeTypeList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeType)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_NodeTypeList_To_v1_NodeTypeList(in *management.NodeTypeList, out *NodeTypeList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeType)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_NodeTypeSpec_To_management_NodeTypeSpec(in *NodeTypeSpec, out *management.NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec + return nil +} + +// 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_NodeTypeSpec_To_v1_NodeTypeSpec(in *management.NodeTypeSpec, out *NodeTypeSpec, s conversion.Scope) error { + out.NodeTypeSpec = in.NodeTypeSpec + return nil +} + +// 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_NodeTypeStatus_To_management_NodeTypeStatus(in *NodeTypeStatus, out *management.NodeTypeStatus, s conversion.Scope) error { + out.NodeTypeStatus = in.NodeTypeStatus + return nil +} + +// 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_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 diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index ab16dcfd..8936875c 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -4457,6 +4457,291 @@ func (in *ManagementRole) DeepCopy() *ManagementRole { 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 NodeClaim. +func (in *NodeClaim) DeepCopy() *NodeClaim { + if in == nil { + return nil + } + 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 *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 NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { + if in == nil { + return nil + } + 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 *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { + *out = *in + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) + 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 + 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { + *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 + } + 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 *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 NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { + if in == nil { + return nil + } + 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 *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { + *out = *in + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) + return +} + +// 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(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 + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) + 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 *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 *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 *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { + *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + return +} + +// 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(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 *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { + *out = *in + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) + return +} + +// 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(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 *OIDC) DeepCopyInto(out *OIDC) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 9e7e919f..7a9e9879 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -255,7 +255,49 @@ var ( NewLoftUpgradeREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewLoftUpgradeRESTFunc(Factory) } - NewLoftUpgradeRESTFunc NewRESTFunc + NewLoftUpgradeRESTFunc NewRESTFunc + ManagementNodeClaimStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeClaim, + func() runtime.Object { return &NodeClaim{} }, // Register versioned resource + func() runtime.Object { return &NodeClaimList{} }, // Register versioned resource list + NewNodeClaimREST, + ) + NewNodeClaimREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeClaimRESTFunc(Factory) + } + NewNodeClaimRESTFunc NewRESTFunc + NewNodeClaimStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeClaimStatusRESTFunc(Factory) + } + NewNodeClaimStatusRESTFunc NewRESTFunc + ManagementNodeProviderStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeProvider, + func() runtime.Object { return &NodeProvider{} }, // Register versioned resource + func() runtime.Object { return &NodeProviderList{} }, // Register versioned resource list + NewNodeProviderREST, + ) + NewNodeProviderREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeProviderRESTFunc(Factory) + } + NewNodeProviderRESTFunc NewRESTFunc + NewNodeProviderStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeProviderStatusRESTFunc(Factory) + } + NewNodeProviderStatusRESTFunc NewRESTFunc + ManagementNodeTypeStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalNodeType, + func() runtime.Object { return &NodeType{} }, // Register versioned resource + func() runtime.Object { return &NodeTypeList{} }, // Register versioned resource list + NewNodeTypeREST, + ) + NewNodeTypeREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeTypeRESTFunc(Factory) + } + NewNodeTypeRESTFunc NewRESTFunc + NewNodeTypeStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewNodeTypeStatusRESTFunc(Factory) + } + NewNodeTypeStatusRESTFunc NewRESTFunc ManagementOIDCClientStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalOIDCClient, func() runtime.Object { return &OIDCClient{} }, // Register versioned resource @@ -860,6 +902,42 @@ var ( func() runtime.Object { return &LoftUpgrade{} }, func() runtime.Object { return &LoftUpgradeList{} }, ) + InternalNodeClaim = builders.NewInternalResource( + "nodeclaims", + "NodeClaim", + func() runtime.Object { return &NodeClaim{} }, + func() runtime.Object { return &NodeClaimList{} }, + ) + InternalNodeClaimStatus = builders.NewInternalResourceStatus( + "nodeclaims", + "NodeClaimStatus", + func() runtime.Object { return &NodeClaim{} }, + func() runtime.Object { return &NodeClaimList{} }, + ) + InternalNodeProvider = builders.NewInternalResource( + "nodeproviders", + "NodeProvider", + func() runtime.Object { return &NodeProvider{} }, + func() runtime.Object { return &NodeProviderList{} }, + ) + InternalNodeProviderStatus = builders.NewInternalResourceStatus( + "nodeproviders", + "NodeProviderStatus", + func() runtime.Object { return &NodeProvider{} }, + func() runtime.Object { return &NodeProviderList{} }, + ) + InternalNodeType = builders.NewInternalResource( + "nodetypes", + "NodeType", + func() runtime.Object { return &NodeType{} }, + func() runtime.Object { return &NodeTypeList{} }, + ) + InternalNodeTypeStatus = builders.NewInternalResourceStatus( + "nodetypes", + "NodeTypeStatus", + func() runtime.Object { return &NodeType{} }, + func() runtime.Object { return &NodeTypeList{} }, + ) InternalOIDCClient = builders.NewInternalResource( "oidcclients", "OIDCClient", @@ -1339,6 +1417,12 @@ var ( InternalLicenseTokenStatus, InternalLoftUpgrade, InternalLoftUpgradeStatus, + InternalNodeClaim, + InternalNodeClaimStatus, + InternalNodeProvider, + InternalNodeProviderStatus, + InternalNodeType, + InternalNodeTypeStatus, InternalOIDCClient, InternalOIDCClientStatus, InternalOwnedAccessKey, @@ -2249,7 +2333,7 @@ type KioskStatus struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { @@ -2335,6 +2419,63 @@ type ManagementRole struct { AssignedVia AssignedVia `json:"assignedVia,omitempty"` } +// +genclient +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeClaim struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeClaimSpec `json:"spec,omitempty"` + Status NodeClaimStatus `json:"status,omitempty"` +} + +type NodeClaimSpec struct { + storagev1.NodeClaimSpec `json:",inline"` +} + +type NodeClaimStatus struct { + storagev1.NodeClaimStatus `json:",inline"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +type NodeProviderSpec struct { + storagev1.NodeProviderSpec `json:",inline"` +} + +type NodeProviderStatus struct { + storagev1.NodeProviderStatus `json:",inline"` +} + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeType struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` +} + +type NodeTypeSpec struct { + storagev1.NodeTypeSpec `json:",inline"` +} + +type NodeTypeStatus struct { + storagev1.NodeTypeStatus `json:",inline"` +} + type OIDC struct { Enabled bool `json:"enabled,omitempty"` WildcardRedirect bool `json:"wildcardRedirect,omitempty"` @@ -5816,6 +5957,363 @@ func (s *storageLoftUpgrade) DeleteLoftUpgrade(ctx context.Context, id string) ( return sync, err } +// NodeClaim Functions and Structs +// +// +k8s:deepcopy-gen=false +type NodeClaimStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type NodeClaimStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeClaimList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeClaim `json:"items"` +} + +func (NodeClaim) NewStatus() interface{} { + return NodeClaimStatus{} +} + +func (pc *NodeClaim) GetStatus() interface{} { + return pc.Status +} + +func (pc *NodeClaim) SetStatus(s interface{}) { + pc.Status = s.(NodeClaimStatus) +} + +func (pc *NodeClaim) GetSpec() interface{} { + return pc.Spec +} + +func (pc *NodeClaim) SetSpec(s interface{}) { + pc.Spec = s.(NodeClaimSpec) +} + +func (pc *NodeClaim) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *NodeClaim) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc NodeClaim) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store NodeClaim. +// +k8s:deepcopy-gen=false +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 NewNodeClaimRegistry(sp builders.StandardStorageProvider) NodeClaimRegistry { + return &storageNodeClaim{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageNodeClaim struct { + builders.StandardStorageProvider +} + +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") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*NodeClaimList), err +} + +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.(*NodeClaim), nil +} + +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.(*NodeClaim), nil +} + +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.(*NodeClaim), nil +} + +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 +} + +// NodeProvider Functions and Structs +// +// +k8s:deepcopy-gen=false +type NodeProviderStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type NodeProviderStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProviderList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProvider `json:"items"` +} + +func (NodeProvider) NewStatus() interface{} { + return NodeProviderStatus{} +} + +func (pc *NodeProvider) GetStatus() interface{} { + return pc.Status +} + +func (pc *NodeProvider) SetStatus(s interface{}) { + pc.Status = s.(NodeProviderStatus) +} + +func (pc *NodeProvider) GetSpec() interface{} { + return pc.Spec +} + +func (pc *NodeProvider) SetSpec(s interface{}) { + pc.Spec = s.(NodeProviderSpec) +} + +func (pc *NodeProvider) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *NodeProvider) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc NodeProvider) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store NodeProvider. +// +k8s:deepcopy-gen=false +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 NewNodeProviderRegistry(sp builders.StandardStorageProvider) NodeProviderRegistry { + return &storageNodeProvider{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageNodeProvider struct { + builders.StandardStorageProvider +} + +func (s *storageNodeProvider) ListNodeProviders(ctx context.Context, options *internalversion.ListOptions) (*NodeProviderList, error) { + if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { + return nil, fmt.Errorf("field selector not supported yet") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*NodeProviderList), err +} + +func (s *storageNodeProvider) GetNodeProvider(ctx context.Context, id string, options *metav1.GetOptions) (*NodeProvider, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*NodeProvider), nil +} + +func (s *storageNodeProvider) CreateNodeProvider(ctx context.Context, object *NodeProvider) (*NodeProvider, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*NodeProvider), nil +} + +func (s *storageNodeProvider) UpdateNodeProvider(ctx context.Context, object *NodeProvider) (*NodeProvider, error) { + st := s.GetStandardStorage() + obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) + if err != nil { + return nil, err + } + return obj.(*NodeProvider), nil +} + +func (s *storageNodeProvider) DeleteNodeProvider(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + +// NodeType Functions and Structs +// +// +k8s:deepcopy-gen=false +type NodeTypeStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type NodeTypeStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeTypeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeType `json:"items"` +} + +func (NodeType) NewStatus() interface{} { + return NodeTypeStatus{} +} + +func (pc *NodeType) GetStatus() interface{} { + return pc.Status +} + +func (pc *NodeType) SetStatus(s interface{}) { + pc.Status = s.(NodeTypeStatus) +} + +func (pc *NodeType) GetSpec() interface{} { + return pc.Spec +} + +func (pc *NodeType) SetSpec(s interface{}) { + pc.Spec = s.(NodeTypeSpec) +} + +func (pc *NodeType) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *NodeType) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc NodeType) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store NodeType. +// +k8s:deepcopy-gen=false +type NodeTypeRegistry interface { + ListNodeTypes(ctx context.Context, options *internalversion.ListOptions) (*NodeTypeList, error) + GetNodeType(ctx context.Context, id string, options *metav1.GetOptions) (*NodeType, error) + CreateNodeType(ctx context.Context, id *NodeType) (*NodeType, error) + UpdateNodeType(ctx context.Context, id *NodeType) (*NodeType, error) + DeleteNodeType(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewNodeTypeRegistry(sp builders.StandardStorageProvider) NodeTypeRegistry { + return &storageNodeType{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageNodeType struct { + builders.StandardStorageProvider +} + +func (s *storageNodeType) ListNodeTypes(ctx context.Context, options *internalversion.ListOptions) (*NodeTypeList, error) { + if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { + return nil, fmt.Errorf("field selector not supported yet") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*NodeTypeList), err +} + +func (s *storageNodeType) GetNodeType(ctx context.Context, id string, options *metav1.GetOptions) (*NodeType, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*NodeType), nil +} + +func (s *storageNodeType) CreateNodeType(ctx context.Context, object *NodeType) (*NodeType, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*NodeType), nil +} + +func (s *storageNodeType) UpdateNodeType(ctx context.Context, object *NodeType) (*NodeType, error) { + st := s.GetStandardStorage() + obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) + if err != nil { + return nil, err + } + return obj.(*NodeType), nil +} + +func (s *storageNodeType) DeleteNodeType(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + // OIDCClient Functions and Structs // // +k8s:deepcopy-gen=false diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 91f35f80..e137b878 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -4415,6 +4415,291 @@ func (in *ManagementRole) DeepCopy() *ManagementRole { 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 NodeClaim. +func (in *NodeClaim) DeepCopy() *NodeClaim { + if in == nil { + return nil + } + 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 *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 NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { + if in == nil { + return nil + } + 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 *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { + *out = *in + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) + 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 + 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { + *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 + } + 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 *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 NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { + if in == nil { + return nil + } + 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 *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { + *out = *in + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) + return +} + +// 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(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 + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) + 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 *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 *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 *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { + *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + return +} + +// 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(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 *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { + *out = *in + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) + return +} + +// 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(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 *OIDC) DeepCopyInto(out *OIDC) { *out = *in diff --git a/pkg/apis/storage/v1/networkpeer_types.go b/pkg/apis/storage/v1/networkpeer_types.go index 7613af7b..2c2cfe3c 100644 --- a/pkg/apis/storage/v1/networkpeer_types.go +++ b/pkg/apis/storage/v1/networkpeer_types.go @@ -12,7 +12,7 @@ import ( // +k8s:openapi-gen=true type NetworkPeer struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkPeerSpec `json:"spec,omitempty"` Status NetworkPeerStatus `json:"status,omitempty"` diff --git a/pkg/apis/storage/v1/nodeclaim_types.go b/pkg/apis/storage/v1/nodeclaim_types.go new file mode 100644 index 00000000..81f7e76f --- /dev/null +++ b/pkg/apis/storage/v1/nodeclaim_types.go @@ -0,0 +1,119 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + // NodeClaim conditions + ConditionTypeProvisioned = "Provisioned" + // ConditionTypeScheduled is the condition that indicates if the node claim is scheduled. + ConditionTypeScheduled = "Scheduled" +) + +var ( + NodeClaimConditions = []agentstoragev1.ConditionType{ + ConditionTypeProvisioned, + ConditionTypeScheduled, + } +) + +// NodeClaimPhase defines the phase of the NodeClaim +type NodeClaimPhase string + +const ( + // NodeClaimPhasePending is the initial state of a NodeClaim. + NodeClaimPhasePending NodeClaimPhase = "Pending" + // NodeClaimPhaseAvailable means the underlying node has been successfully provisioned. + NodeClaimPhaseAvailable NodeClaimPhase = "Available" + // NodeClaimPhaseFailed means the provisioning process has failed. + NodeClaimPhaseFailed NodeClaimPhase = "Failed" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="VCluster",type="string",JSONPath=".spec.vClusterRef" +// +kubebuilder:printcolumn:name="NodeType",type="string",JSONPath=".spec.nodeTypeRef" +// +kubebuilder:subresource:status + +// NodeClaim holds the node claim for vCluster. +// +k8s:openapi-gen=true +type NodeClaim struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeClaimSpec `json:"spec,omitempty"` + Status NodeClaimStatus `json:"status,omitempty"` +} + +func (a *NodeClaim) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeClaim) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +// NodeClaimSpec defines spec of node claim. +type NodeClaimSpec struct { + // Taints will be applied to the NodeClaim's node. + // +optional + Taints []corev1.Taint `json:"taints,omitempty"` + + // StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically + // within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by + // daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning + // purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them. + // +optional + StartupTaints []corev1.Taint `json:"startupTaints,omitempty"` + + // KubeletArgs are additional arguments to pass to the kubelet. + // +optional + KubeletArgs map[string]string `json:"kubeletArgs,omitempty"` + + // DesiredCapacity specifies the resources requested by the NodeClaim. + DesiredCapacity corev1.ResourceList `json:"desiredCapacity,omitempty"` + + // Requirements are the requirements for the NodeClaim. + Requirements []corev1.NodeSelectorRequirement `json:"requirements,omitempty"` + + // NodeTypeRef is the name of the NodeType that this NodeClaim is based on. + NodeTypeRef string `json:"nodeTypeRef,omitempty"` + + // VClusterRef references source vCluster. This is required. + VClusterRef string `json:"vClusterRef"` +} + +type NodeClaimStatus struct { + // Phase is the current lifecycle phase of the NodeClaim. + // +optional + Phase NodeClaimPhase `json:"phase,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Message describes the reason in human-readable form + // +optional + Message string `json:"message,omitempty"` + + // Conditions describe the current state of the platform NodeClaim. + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeClaimList contains a list of NodeClaim +type NodeClaimList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeClaim `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeClaim{}, &NodeClaimList{}) +} diff --git a/pkg/apis/storage/v1/nodeprovider_types.go b/pkg/apis/storage/v1/nodeprovider_types.go new file mode 100644 index 00000000..1aa79fa9 --- /dev/null +++ b/pkg/apis/storage/v1/nodeprovider_types.go @@ -0,0 +1,167 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + NodeProviderTypeBCM string = "bcm" + NodeProviderTypePods string = "pods" + NodeProviderTypeKubeVirt string = "kubeVirt" + + // NodeProviderConditionTypeInitialized is the condition that indicates if the node provider is initialized. + NodeProviderConditionTypeInitialized = "Initialized" +) + +var ( + NodeProviderConditions = []agentstoragev1.ConditionType{ + NodeProviderConditionTypeInitialized, + } +) + +// NodeProviderPhase defines the phase of the NodeProvider +type NodeProviderPhase string + +const ( + // NodeProviderPhasePending is the initial state of a NodeProvider. + NodeProviderPhasePending NodeProviderPhase = "Pending" + // NodeProviderPhaseAvailable means the underlying node has been successfully provisioned. + NodeProviderPhaseAvailable NodeProviderPhase = "Available" + // NodeProviderPhaseFailed means the provisioning process has failed. + NodeProviderPhaseFailed NodeProviderPhase = "Failed" + // NodeProvider specific label + NodeProvidedManagedTypeIndicatorLabel = "autoscaling.loft.sh/managed-by" + + // BCM specific annotations + NodeTypeNodesAnnotation = "bcm.loft.sh/nodes" + NodeTypeNodeGroupsAnnotation = "bcm.loft.sh/node-groups" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeProvider holds the information of a node provider config. +// This resource defines various ways a node can be provisioned or configured. +// +k8s:openapi-gen=true +type NodeProvider struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeProviderSpec `json:"spec,omitempty"` + Status NodeProviderStatus `json:"status,omitempty"` +} + +func (a *NodeProvider) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeProvider) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +// NodeProviderSpec defines the desired state of NodeProvider. +// Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time. +type NodeProviderSpec struct { + // Pods configures a node provider based on Kubernetes Pods. + // This can be used for simpler, pod-based node provisioning for testing or demos. + // +optional + Pods *NodeProviderPods `json:"pods,omitempty"` + + // BCM configures a node provider for BCM Bare Metal Cloud environments. + // +optional + BCM *NodeProviderBCM `json:"bcm,omitempty"` + + // Kubevirt configures a node provider using KubeVirt, enabling virtual machines + // to be provisioned as nodes within a vCluster. + // +optional + KubeVirt *NodeProviderKubeVirt `json:"kubeVirt,omitempty"` + + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +// NodeProviderPodsSpec defines the configuration for a pod-based node provider. +type NodeProviderPods struct { + // Image is the container image to use for the pod-based node provider. + Image string `json:"image,omitempty"` +} + +// NodeProviderBCMSpec defines the configuration for a BCM node provider. +type NodeProviderBCM struct { + // SecretRef is a reference to secret with keys for BCM auth. + SecretRef *NamespacedRef `json:"secretRef"` + + // Endpoint is a address for head node. + Endpoint string `json:"endpoint"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []BCMNodeTypeSpec `json:"nodeTypes,omitempty"` +} + +type BCMNodeTypeSpec struct { + NodeTypeSpec `json:",inline"` + + // Name is the name of this node type. + Name string `json:"name"` + + // Nodes specifies nodes. + Nodes []string `json:"nodes,omitempty"` + + // NodeGroups is the name of the node groups to use for this provider. + NodeGroups []string `json:"nodeGroups,omitempty"` +} + +type NamespacedRef struct { + // Name is the name of this resource + Name string `json:"name"` + // Namespace is the namespace of this resource + Namespace string `json:"namespace"` +} + +// NodeProviderKubeVirt defines the configuration for a KubeVirt node provider. +type NodeProviderKubeVirt struct { + // If KubeVirt is deployed inside one of the vClusters, reference this vCluster here. + // Otherwise it will be assumed to run in the same host cluster as platform. + // +optional + VirtualClusterRef *VirtualClusterClusterRef `json:"virtualClusterRef,omitempty"` + + // TargetNamespace is the namespace within the KubeVirt cluster where the + // VirtualMachines and their secrets will be created. + // +optional + TargetNamespace string `json:"targetNamespace,omitempty"` +} + +// NodeProviderStatus defines the observed state of NodeProvider. +type NodeProviderStatus struct { + // Conditions describe the current state of the platform NodeProvider. + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Phase is the current lifecycle phase of the NodeProvider. + // +optional + Phase NodeProviderPhase `json:"phase,omitempty"` + + // Message is a human-readable message indicating details about why the NodeProvider is in its current state. + // +optional + Message string `json:"message,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeProviderList contains a list of NodeProvider +type NodeProviderList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProvider `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeProvider{}, &NodeProviderList{}) +} diff --git a/pkg/apis/storage/v1/nodetype_types.go b/pkg/apis/storage/v1/nodetype_types.go new file mode 100644 index 00000000..57ecd71d --- /dev/null +++ b/pkg/apis/storage/v1/nodetype_types.go @@ -0,0 +1,211 @@ +package v1 + +import ( + "strings" + + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + NodeProviderPropertyKey = "vcluster.com/node-provider" + NodeTypePropertyKey = "vcluster.com/node-type" + + // NodeTypeConditionTypeInitialized is the condition that indicates if the node type is initialized. + NodeTypeConditionTypeInitialized = "Initialized" +) + +var ( + NodeTypeConditions = []agentstoragev1.ConditionType{ + NodeTypeConditionTypeInitialized, + } +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Available",type="integer",JSONPath=".status.capacity.available" +// +kubebuilder:printcolumn:name="Total",type="integer",JSONPath=".status.capacity.total" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:resource:scope=Cluster + +// NodeType holds the information of a node type. +// +k8s:openapi-gen=true +type NodeType struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata"` + + Spec NodeTypeSpec `json:"spec,omitempty"` + Status NodeTypeStatus `json:"status,omitempty"` +} + +func (a *NodeType) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeType) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +type NodeTypeSpec struct { + // ProviderRef is the node provider to use for this node type. + // +optional + ProviderRef string `json:"providerRef,omitempty"` + + // Zone is the zone of the node type. If empty, will default to "global". + // +optional + Zone string `json:"zone,omitempty"` + + // Region is the region of the node type. + // +optional + Region string `json:"region,omitempty"` + + // Properties returns a flexible set of properties that may be selected for scheduling. + Properties map[string]string `json:"properties,omitempty"` + + // Resources lists the full resources for a single node. + Resources corev1.ResourceList `json:"resources,omitempty"` + + // Overhead defines the resource overhead for this node type. + // +optional + Overhead *NodeTypeOverhead `json:"overhead,omitempty"` + + // Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated + // from the resources specified. + // +optional + Cost int64 `json:"cost,omitempty"` + + // DisplayName is the name that should be displayed in the UI + // +optional + DisplayName string `json:"displayName,omitempty"` +} + +func (a *NodeType) GetAllProperties() []corev1.NodeSelectorRequirement { + // default properties + zone := "global" + if a.Spec.Zone != "" { + zone = a.Spec.Zone + } + + // build all properties + allProperties := []corev1.NodeSelectorRequirement{ + { + Key: corev1.LabelInstanceTypeStable, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Name}, + }, + { + Key: corev1.LabelOSStable, + Operator: corev1.NodeSelectorOpIn, + Values: []string{string(corev1.Linux)}, + }, + { + Key: corev1.LabelTopologyZone, + Operator: corev1.NodeSelectorOpIn, + Values: []string{zone}, + }, + { + Key: "karpenter.sh/capacity-type", + Operator: corev1.NodeSelectorOpIn, + Values: []string{"on-demand"}, + }, + { + Key: NodeProviderPropertyKey, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Spec.ProviderRef}, + }, + { + Key: NodeTypePropertyKey, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Name}, + }, + } + if a.Spec.Region != "" { + allProperties = append(allProperties, corev1.NodeSelectorRequirement{ + Key: corev1.LabelTopologyRegion, + Operator: corev1.NodeSelectorOpIn, + Values: []string{a.Spec.Region}, + }) + } + + // add custom properties + for key, value := range a.Spec.Properties { + allProperties = append(allProperties, corev1.NodeSelectorRequirement{ + Key: key, + Operator: corev1.NodeSelectorOpIn, + Values: strings.Split(value, ","), + }) + } + + return allProperties +} + +// NodeTypeOverhead defines the resource overhead for a node type. +type NodeTypeOverhead struct { + // KubeReserved is the resource overhead for kubelet and other Kubernetes system daemons. + // +optional + KubeReserved corev1.ResourceList `json:"kubeReserved,omitempty"` +} + +// NodeTypePhase defines the phase of the NodeType +type NodeTypePhase string + +const ( + // PhasePending is the initial state of a NodeType. + NodeTypePhasePending NodeTypePhase = "Pending" + // NodeTypePhaseAvailable means the provisioning process has failed. + NodeTypePhaseAvailable NodeTypePhase = "Available" + // NodeTypePhaseFailed means the provisioning process has failed. + NodeTypePhaseFailed NodeTypePhase = "Failed" +) + +// NodeTypeStatus holds the status of a node type +type NodeTypeStatus struct { + // Phase is the current lifecycle phase of the NodeType. + // +optional + Phase NodeTypePhase `json:"phase,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Message describes the reason in human-readable form + // +optional + Message string `json:"message,omitempty"` + + // Capacity is the capacity of the node type. + // +optional + Capacity *NodeTypeCapacity `json:"capacity,omitempty"` + + // Conditions holds several conditions the node type might be in + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` +} + +type NodeTypeCapacity struct { + // Total is the total number of nodes of this type + // +optional + Total int `json:"total,omitempty"` + + // Available is the number of available nodes of this type + // +optional + Available int `json:"available,omitempty"` + + // Provisioned is the number of already provisioned nodes of this type + // +optional + Provisioned int `json:"provisioned,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeTypeList contains a list of NodeType +type NodeTypeList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeType `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeType{}, &NodeTypeList{}) +} diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index 9c6dc090..5e1a7c02 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -881,6 +881,33 @@ func (in *ArgoSSOSpec) DeepCopy() *ArgoSSOSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BCMNodeTypeSpec) DeepCopyInto(out *BCMNodeTypeSpec) { + *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) + } + if in.NodeGroups != nil { + in, out := &in.NodeGroups, &out.NodeGroups + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BCMNodeTypeSpec. +func (in *BCMNodeTypeSpec) DeepCopy() *BCMNodeTypeSpec { + if in == nil { + return nil + } + out := new(BCMNodeTypeSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Chart) DeepCopyInto(out *Chart) { *out = *in @@ -3305,6 +3332,22 @@ func (in *NamespacePattern) DeepCopy() *NamespacePattern { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NamespacedRef) DeepCopyInto(out *NamespacedRef) { + *out = *in + return +} + +// 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(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 *NetworkPeer) DeepCopyInto(out *NetworkPeer) { *out = *in @@ -3413,6 +3456,484 @@ func (in *NetworkPeerStatus) DeepCopy() *NetworkPeerStatus { 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 NodeClaim. +func (in *NodeClaim) DeepCopy() *NodeClaim { + if in == nil { + return nil + } + 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 *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 NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { + if in == nil { + return nil + } + 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 *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { + *out = *in + if in.Taints != nil { + in, out := &in.Taints, &out.Taints + *out = make([]corev1.Taint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.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 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { + *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 + } + 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 NodeProviderBCM. +func (in *NodeProviderBCM) DeepCopy() *NodeProviderBCM { + if in == nil { + return nil + } + 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 *NodeProviderKubeVirt) DeepCopyInto(out *NodeProviderKubeVirt) { + *out = *in + if in.VirtualClusterRef != nil { + in, out := &in.VirtualClusterRef, &out.VirtualClusterRef + *out = new(VirtualClusterClusterRef) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new 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 NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { + if in == nil { + return nil + } + 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 *NodeProviderPods) DeepCopyInto(out *NodeProviderPods) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderPods. +func (in *NodeProviderPods) DeepCopy() *NodeProviderPods { + if in == nil { + return nil + } + out := new(NodeProviderPods) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { + *out = *in + if in.Pods != nil { + in, out := &in.Pods, &out.Pods + *out = new(NodeProviderPods) + **out = **in + } + if in.BCM != nil { + in, out := &in.BCM, &out.BCM + *out = new(NodeProviderBCM) + (*in).DeepCopyInto(*out) + } + if in.KubeVirt != nil { + in, out := &in.KubeVirt, &out.KubeVirt + *out = new(NodeProviderKubeVirt) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { + if in == nil { + return nil + } + 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 *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 + 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 NodeTypeOverhead. +func (in *NodeTypeOverhead) DeepCopy() *NodeTypeOverhead { + if in == nil { + return nil + } + out := new(NodeTypeOverhead) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { + *out = *in + if in.Properties != nil { + in, out := &in.Properties, &out.Properties + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make(corev1.ResourceList, len(*in)) + for key, val := range *in { + (*out)[key] = val.DeepCopy() + } + } + if in.Overhead != nil { + in, out := &in.Overhead, &out.Overhead + *out = new(NodeTypeOverhead) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. +func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { + if in == nil { + return nil + } + 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 *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { + *out = *in + if in.Capacity != nil { + in, out := &in.Capacity, &out.Capacity + *out = new(NodeTypeCapacity) + **out = **in + } + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make(storagev1.Conditions, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. +func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { + if in == nil { + return nil + } + 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 *ObjectsStatus) DeepCopyInto(out *ObjectsStatus) { *out = *in diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index baab20ef..f7296d4c 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -59,6 +59,8 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "License", "LicenseToken", "LoftUpgrade", + "NodeProvider", + "NodeType", "OIDCClient", "OwnedAccessKey", "Project", 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 f9756ce2..5eb70229 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go @@ -96,6 +96,18 @@ func (c *FakeManagementV1) LoftUpgrades() v1.LoftUpgradeInterface { return newFakeLoftUpgrades(c) } +func (c *FakeManagementV1) NodeClaims(namespace string) v1.NodeClaimInterface { + return newFakeNodeClaims(c, namespace) +} + +func (c *FakeManagementV1) NodeProviders() v1.NodeProviderInterface { + return newFakeNodeProviders(c) +} + +func (c *FakeManagementV1) NodeTypes() v1.NodeTypeInterface { + return newFakeNodeTypes(c) +} + func (c *FakeManagementV1) OIDCClients() v1.OIDCClientInterface { return newFakeOIDCClients(c) } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go new file mode 100644 index 00000000..ac6fa3cd --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeclaim.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeClaims implements NodeClaimInterface +type fakeNodeClaims struct { + *gentype.FakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList] + Fake *FakeManagementV1 +} + +func newFakeNodeClaims(fake *FakeManagementV1, namespace string) managementv1.NodeClaimInterface { + return &fakeNodeClaims{ + gentype.NewFakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("nodeclaims"), + v1.SchemeGroupVersion.WithKind("NodeClaim"), + func() *v1.NodeClaim { return &v1.NodeClaim{} }, + func() *v1.NodeClaimList { return &v1.NodeClaimList{} }, + func(dst, src *v1.NodeClaimList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeClaimList) []*v1.NodeClaim { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeClaimList, items []*v1.NodeClaim) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go new file mode 100644 index 00000000..f30f98ce --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodeprovider.go @@ -0,0 +1,34 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeProviders implements NodeProviderInterface +type fakeNodeProviders struct { + *gentype.FakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList] + Fake *FakeManagementV1 +} + +func newFakeNodeProviders(fake *FakeManagementV1) managementv1.NodeProviderInterface { + return &fakeNodeProviders{ + gentype.NewFakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodeproviders"), + v1.SchemeGroupVersion.WithKind("NodeProvider"), + func() *v1.NodeProvider { return &v1.NodeProvider{} }, + func() *v1.NodeProviderList { return &v1.NodeProviderList{} }, + func(dst, src *v1.NodeProviderList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeProviderList) []*v1.NodeProvider { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeProviderList, items []*v1.NodeProvider) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go new file mode 100644 index 00000000..563e7ebf --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_nodetype.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeTypes implements NodeTypeInterface +type fakeNodeTypes struct { + *gentype.FakeClientWithList[*v1.NodeType, *v1.NodeTypeList] + Fake *FakeManagementV1 +} + +func newFakeNodeTypes(fake *FakeManagementV1) managementv1.NodeTypeInterface { + return &fakeNodeTypes{ + gentype.NewFakeClientWithList[*v1.NodeType, *v1.NodeTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodetypes"), + v1.SchemeGroupVersion.WithKind("NodeType"), + func() *v1.NodeType { return &v1.NodeType{} }, + func() *v1.NodeTypeList { return &v1.NodeTypeList{} }, + func(dst, src *v1.NodeTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeTypeList) []*v1.NodeType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeTypeList, items []*v1.NodeType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index 647c7bdb..2d309e34 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -44,6 +44,12 @@ type LicenseTokenExpansion interface{} type LoftUpgradeExpansion interface{} +type NodeClaimExpansion interface{} + +type NodeProviderExpansion interface{} + +type NodeTypeExpansion interface{} + type OIDCClientExpansion interface{} type OwnedAccessKeyExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 36dfa556..8e89aa01 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -33,6 +33,9 @@ type ManagementV1Interface interface { LicensesGetter LicenseTokensGetter LoftUpgradesGetter + NodeClaimsGetter + NodeProvidersGetter + NodeTypesGetter OIDCClientsGetter OwnedAccessKeysGetter ProjectsGetter @@ -144,6 +147,18 @@ func (c *ManagementV1Client) LoftUpgrades() LoftUpgradeInterface { return newLoftUpgrades(c) } +func (c *ManagementV1Client) NodeClaims(namespace string) NodeClaimInterface { + return newNodeClaims(c, namespace) +} + +func (c *ManagementV1Client) NodeProviders() NodeProviderInterface { + return newNodeProviders(c) +} + +func (c *ManagementV1Client) NodeTypes() NodeTypeInterface { + return newNodeTypes(c) +} + func (c *ManagementV1Client) OIDCClients() OIDCClientInterface { return newOIDCClients(c) } diff --git a/pkg/clientset/versioned/typed/management/v1/nodeclaim.go b/pkg/clientset/versioned/typed/management/v1/nodeclaim.go new file mode 100644 index 00000000..4810e862 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// NodeClaimsGetter has a method to return a NodeClaimInterface. +// A group's client should implement this interface. +type NodeClaimsGetter interface { + NodeClaims(namespace string) NodeClaimInterface +} + +// NodeClaimInterface has methods to work with NodeClaim resources. +type NodeClaimInterface interface { + Create(ctx context.Context, nodeClaim *managementv1.NodeClaim, opts metav1.CreateOptions) (*managementv1.NodeClaim, error) + Update(ctx context.Context, nodeClaim *managementv1.NodeClaim, opts metav1.UpdateOptions) (*managementv1.NodeClaim, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeClaim *managementv1.NodeClaim, opts metav1.UpdateOptions) (*managementv1.NodeClaim, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.NodeClaim, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeClaimList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.NodeClaim, err error) + NodeClaimExpansion +} + +// nodeClaims implements NodeClaimInterface +type nodeClaims struct { + *gentype.ClientWithList[*managementv1.NodeClaim, *managementv1.NodeClaimList] +} + +// newNodeClaims returns a NodeClaims +func newNodeClaims(c *ManagementV1Client, namespace string) *nodeClaims { + return &nodeClaims{ + gentype.NewClientWithList[*managementv1.NodeClaim, *managementv1.NodeClaimList]( + "nodeclaims", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *managementv1.NodeClaim { return &managementv1.NodeClaim{} }, + func() *managementv1.NodeClaimList { return &managementv1.NodeClaimList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/nodeprovider.go b/pkg/clientset/versioned/typed/management/v1/nodeprovider.go new file mode 100644 index 00000000..0805fa32 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodeprovider.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// NodeProvidersGetter has a method to return a NodeProviderInterface. +// A group's client should implement this interface. +type NodeProvidersGetter interface { + NodeProviders() NodeProviderInterface +} + +// NodeProviderInterface has methods to work with NodeProvider resources. +type NodeProviderInterface interface { + Create(ctx context.Context, nodeProvider *managementv1.NodeProvider, opts metav1.CreateOptions) (*managementv1.NodeProvider, error) + Update(ctx context.Context, nodeProvider *managementv1.NodeProvider, opts metav1.UpdateOptions) (*managementv1.NodeProvider, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeProvider *managementv1.NodeProvider, opts metav1.UpdateOptions) (*managementv1.NodeProvider, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.NodeProvider, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeProviderList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.NodeProvider, err error) + NodeProviderExpansion +} + +// nodeProviders implements NodeProviderInterface +type nodeProviders struct { + *gentype.ClientWithList[*managementv1.NodeProvider, *managementv1.NodeProviderList] +} + +// newNodeProviders returns a NodeProviders +func newNodeProviders(c *ManagementV1Client) *nodeProviders { + return &nodeProviders{ + gentype.NewClientWithList[*managementv1.NodeProvider, *managementv1.NodeProviderList]( + "nodeproviders", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.NodeProvider { return &managementv1.NodeProvider{} }, + func() *managementv1.NodeProviderList { return &managementv1.NodeProviderList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/nodetype.go b/pkg/clientset/versioned/typed/management/v1/nodetype.go new file mode 100644 index 00000000..927ce499 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/nodetype.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// NodeTypesGetter has a method to return a NodeTypeInterface. +// A group's client should implement this interface. +type NodeTypesGetter interface { + NodeTypes() NodeTypeInterface +} + +// NodeTypeInterface has methods to work with NodeType resources. +type NodeTypeInterface interface { + Create(ctx context.Context, nodeType *managementv1.NodeType, opts metav1.CreateOptions) (*managementv1.NodeType, error) + Update(ctx context.Context, nodeType *managementv1.NodeType, opts metav1.UpdateOptions) (*managementv1.NodeType, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeType *managementv1.NodeType, opts metav1.UpdateOptions) (*managementv1.NodeType, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.NodeType, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.NodeTypeList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.NodeType, err error) + NodeTypeExpansion +} + +// nodeTypes implements NodeTypeInterface +type nodeTypes struct { + *gentype.ClientWithList[*managementv1.NodeType, *managementv1.NodeTypeList] +} + +// newNodeTypes returns a NodeTypes +func newNodeTypes(c *ManagementV1Client) *nodeTypes { + return &nodeTypes{ + gentype.NewClientWithList[*managementv1.NodeType, *managementv1.NodeTypeList]( + "nodetypes", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.NodeType { return &managementv1.NodeType{} }, + func() *managementv1.NodeTypeList { return &managementv1.NodeTypeList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go new file mode 100644 index 00000000..0a616de8 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeclaim.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeClaims implements NodeClaimInterface +type fakeNodeClaims struct { + *gentype.FakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList] + Fake *FakeStorageV1 +} + +func newFakeNodeClaims(fake *FakeStorageV1, namespace string) storagev1.NodeClaimInterface { + return &fakeNodeClaims{ + gentype.NewFakeClientWithList[*v1.NodeClaim, *v1.NodeClaimList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("nodeclaims"), + v1.SchemeGroupVersion.WithKind("NodeClaim"), + func() *v1.NodeClaim { return &v1.NodeClaim{} }, + func() *v1.NodeClaimList { return &v1.NodeClaimList{} }, + func(dst, src *v1.NodeClaimList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeClaimList) []*v1.NodeClaim { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeClaimList, items []*v1.NodeClaim) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go new file mode 100644 index 00000000..a9b95616 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeprovider.go @@ -0,0 +1,34 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeProviders implements NodeProviderInterface +type fakeNodeProviders struct { + *gentype.FakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList] + Fake *FakeStorageV1 +} + +func newFakeNodeProviders(fake *FakeStorageV1) storagev1.NodeProviderInterface { + return &fakeNodeProviders{ + gentype.NewFakeClientWithList[*v1.NodeProvider, *v1.NodeProviderList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodeproviders"), + v1.SchemeGroupVersion.WithKind("NodeProvider"), + func() *v1.NodeProvider { return &v1.NodeProvider{} }, + func() *v1.NodeProviderList { return &v1.NodeProviderList{} }, + func(dst, src *v1.NodeProviderList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeProviderList) []*v1.NodeProvider { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeProviderList, items []*v1.NodeProvider) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go new file mode 100644 index 00000000..981d9d58 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_nodetype.go @@ -0,0 +1,32 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeNodeTypes implements NodeTypeInterface +type fakeNodeTypes struct { + *gentype.FakeClientWithList[*v1.NodeType, *v1.NodeTypeList] + Fake *FakeStorageV1 +} + +func newFakeNodeTypes(fake *FakeStorageV1) storagev1.NodeTypeInterface { + return &fakeNodeTypes{ + gentype.NewFakeClientWithList[*v1.NodeType, *v1.NodeTypeList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("nodetypes"), + v1.SchemeGroupVersion.WithKind("NodeType"), + func() *v1.NodeType { return &v1.NodeType{} }, + func() *v1.NodeTypeList { return &v1.NodeTypeList{} }, + func(dst, src *v1.NodeTypeList) { dst.ListMeta = src.ListMeta }, + func(list *v1.NodeTypeList) []*v1.NodeType { return gentype.ToPointerSlice(list.Items) }, + func(list *v1.NodeTypeList, items []*v1.NodeType) { list.Items = gentype.FromPointerSlice(items) }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go index 340e6f83..adfa7c98 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go @@ -52,6 +52,18 @@ func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { return newFakeNetworkPeers(c) } +func (c *FakeStorageV1) NodeClaims(namespace string) v1.NodeClaimInterface { + return newFakeNodeClaims(c, namespace) +} + +func (c *FakeStorageV1) NodeProviders() v1.NodeProviderInterface { + return newFakeNodeProviders(c) +} + +func (c *FakeStorageV1) NodeTypes() v1.NodeTypeInterface { + return newFakeNodeTypes(c) +} + func (c *FakeStorageV1) Projects() v1.ProjectInterface { return newFakeProjects(c) } diff --git a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go index f9278164..17b6bd7c 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -22,6 +22,12 @@ type DevPodWorkspaceTemplateExpansion interface{} type NetworkPeerExpansion interface{} +type NodeClaimExpansion interface{} + +type NodeProviderExpansion interface{} + +type NodeTypeExpansion interface{} + type ProjectExpansion interface{} type SharedSecretExpansion interface{} diff --git a/pkg/clientset/versioned/typed/storage/v1/nodeclaim.go b/pkg/clientset/versioned/typed/storage/v1/nodeclaim.go new file mode 100644 index 00000000..afe5c41d --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// NodeClaimsGetter has a method to return a NodeClaimInterface. +// A group's client should implement this interface. +type NodeClaimsGetter interface { + NodeClaims(namespace string) NodeClaimInterface +} + +// NodeClaimInterface has methods to work with NodeClaim resources. +type NodeClaimInterface interface { + Create(ctx context.Context, nodeClaim *storagev1.NodeClaim, opts metav1.CreateOptions) (*storagev1.NodeClaim, error) + Update(ctx context.Context, nodeClaim *storagev1.NodeClaim, opts metav1.UpdateOptions) (*storagev1.NodeClaim, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeClaim *storagev1.NodeClaim, opts metav1.UpdateOptions) (*storagev1.NodeClaim, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.NodeClaim, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeClaimList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.NodeClaim, err error) + NodeClaimExpansion +} + +// nodeClaims implements NodeClaimInterface +type nodeClaims struct { + *gentype.ClientWithList[*storagev1.NodeClaim, *storagev1.NodeClaimList] +} + +// newNodeClaims returns a NodeClaims +func newNodeClaims(c *StorageV1Client, namespace string) *nodeClaims { + return &nodeClaims{ + gentype.NewClientWithList[*storagev1.NodeClaim, *storagev1.NodeClaimList]( + "nodeclaims", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *storagev1.NodeClaim { return &storagev1.NodeClaim{} }, + func() *storagev1.NodeClaimList { return &storagev1.NodeClaimList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/nodeprovider.go b/pkg/clientset/versioned/typed/storage/v1/nodeprovider.go new file mode 100644 index 00000000..626673ce --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodeprovider.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// NodeProvidersGetter has a method to return a NodeProviderInterface. +// A group's client should implement this interface. +type NodeProvidersGetter interface { + NodeProviders() NodeProviderInterface +} + +// NodeProviderInterface has methods to work with NodeProvider resources. +type NodeProviderInterface interface { + Create(ctx context.Context, nodeProvider *storagev1.NodeProvider, opts metav1.CreateOptions) (*storagev1.NodeProvider, error) + Update(ctx context.Context, nodeProvider *storagev1.NodeProvider, opts metav1.UpdateOptions) (*storagev1.NodeProvider, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeProvider *storagev1.NodeProvider, opts metav1.UpdateOptions) (*storagev1.NodeProvider, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.NodeProvider, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeProviderList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.NodeProvider, err error) + NodeProviderExpansion +} + +// nodeProviders implements NodeProviderInterface +type nodeProviders struct { + *gentype.ClientWithList[*storagev1.NodeProvider, *storagev1.NodeProviderList] +} + +// newNodeProviders returns a NodeProviders +func newNodeProviders(c *StorageV1Client) *nodeProviders { + return &nodeProviders{ + gentype.NewClientWithList[*storagev1.NodeProvider, *storagev1.NodeProviderList]( + "nodeproviders", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.NodeProvider { return &storagev1.NodeProvider{} }, + func() *storagev1.NodeProviderList { return &storagev1.NodeProviderList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/nodetype.go b/pkg/clientset/versioned/typed/storage/v1/nodetype.go new file mode 100644 index 00000000..82376efe --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/nodetype.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// NodeTypesGetter has a method to return a NodeTypeInterface. +// A group's client should implement this interface. +type NodeTypesGetter interface { + NodeTypes() NodeTypeInterface +} + +// NodeTypeInterface has methods to work with NodeType resources. +type NodeTypeInterface interface { + Create(ctx context.Context, nodeType *storagev1.NodeType, opts metav1.CreateOptions) (*storagev1.NodeType, error) + Update(ctx context.Context, nodeType *storagev1.NodeType, opts metav1.UpdateOptions) (*storagev1.NodeType, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, nodeType *storagev1.NodeType, opts metav1.UpdateOptions) (*storagev1.NodeType, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.NodeType, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.NodeTypeList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.NodeType, err error) + NodeTypeExpansion +} + +// nodeTypes implements NodeTypeInterface +type nodeTypes struct { + *gentype.ClientWithList[*storagev1.NodeType, *storagev1.NodeTypeList] +} + +// newNodeTypes returns a NodeTypes +func newNodeTypes(c *StorageV1Client) *nodeTypes { + return &nodeTypes{ + gentype.NewClientWithList[*storagev1.NodeType, *storagev1.NodeTypeList]( + "nodetypes", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.NodeType { return &storagev1.NodeType{} }, + func() *storagev1.NodeTypeList { return &storagev1.NodeTypeList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index 327e3857..3592fd71 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -22,6 +22,9 @@ type StorageV1Interface interface { DevPodWorkspacePresetsGetter DevPodWorkspaceTemplatesGetter NetworkPeersGetter + NodeClaimsGetter + NodeProvidersGetter + NodeTypesGetter ProjectsGetter SharedSecretsGetter SpaceInstancesGetter @@ -78,6 +81,18 @@ func (c *StorageV1Client) NetworkPeers() NetworkPeerInterface { return newNetworkPeers(c) } +func (c *StorageV1Client) NodeClaims(namespace string) NodeClaimInterface { + return newNodeClaims(c, namespace) +} + +func (c *StorageV1Client) NodeProviders() NodeProviderInterface { + return newNodeProviders(c) +} + +func (c *StorageV1Client) NodeTypes() NodeTypeInterface { + return newNodeTypes(c) +} + func (c *StorageV1Client) Projects() ProjectInterface { return newProjects(c) } diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index b8f407e9..977fa759 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -81,6 +81,12 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().LicenseTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("loftupgrades"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().LoftUpgrades().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("nodeclaims"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeClaims().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("nodeproviders"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeProviders().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("nodetypes"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeTypes().Informer()}, nil case v1.SchemeGroupVersion.WithResource("oidcclients"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().OIDCClients().Informer()}, nil case v1.SchemeGroupVersion.WithResource("ownedaccesskeys"): @@ -143,6 +149,12 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceTemplates().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("networkpeers"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NetworkPeers().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("nodeclaims"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeClaims().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("nodeproviders"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeProviders().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("nodetypes"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NodeTypes().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("projects"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().Projects().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("sharedsecrets"): diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index 7bf7c76c..75fbff39 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -50,6 +50,12 @@ type Interface interface { LicenseTokens() LicenseTokenInformer // LoftUpgrades returns a LoftUpgradeInformer. LoftUpgrades() LoftUpgradeInformer + // NodeClaims returns a NodeClaimInformer. + NodeClaims() NodeClaimInformer + // NodeProviders returns a NodeProviderInformer. + NodeProviders() NodeProviderInformer + // NodeTypes returns a NodeTypeInformer. + NodeTypes() NodeTypeInformer // OIDCClients returns a OIDCClientInformer. OIDCClients() OIDCClientInformer // OwnedAccessKeys returns a OwnedAccessKeyInformer. @@ -208,6 +214,21 @@ func (v *version) LoftUpgrades() LoftUpgradeInformer { return &loftUpgradeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } +// NodeClaims returns a NodeClaimInformer. +func (v *version) NodeClaims() NodeClaimInformer { + return &nodeClaimInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// NodeProviders returns a NodeProviderInformer. +func (v *version) NodeProviders() NodeProviderInformer { + return &nodeProviderInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + +// NodeTypes returns a NodeTypeInformer. +func (v *version) NodeTypes() NodeTypeInformer { + return &nodeTypeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // OIDCClients returns a OIDCClientInformer. func (v *version) OIDCClients() OIDCClientInformer { return &oIDCClientInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/management/v1/nodeclaim.go b/pkg/informers/externalversions/management/v1/nodeclaim.go new file mode 100644 index 00000000..33f46b22 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodeclaim.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeClaimInformer provides access to a shared informer and lister for +// NodeClaims. +type NodeClaimInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeClaimLister +} + +type nodeClaimInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeClaimInformer constructs a new informer for NodeClaim type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeClaimInformer constructs a new informer for NodeClaim type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeClaims(namespace).Watch(ctx, options) + }, + }, + &apismanagementv1.NodeClaim{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeClaimInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeClaimInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeClaim{}, f.defaultInformer) +} + +func (f *nodeClaimInformer) Lister() managementv1.NodeClaimLister { + return managementv1.NewNodeClaimLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/nodeprovider.go b/pkg/informers/externalversions/management/v1/nodeprovider.go new file mode 100644 index 00000000..68eda66e --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodeprovider.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeProviderInformer provides access to a shared informer and lister for +// NodeProviders. +type NodeProviderInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeProviderLister +} + +type nodeProviderInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeProviderInformer constructs a new informer for NodeProvider type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeProviderInformer constructs a new informer for NodeProvider type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeProviders().Watch(ctx, options) + }, + }, + &apismanagementv1.NodeProvider{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeProviderInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeProviderInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeProvider{}, f.defaultInformer) +} + +func (f *nodeProviderInformer) Lister() managementv1.NodeProviderLister { + return managementv1.NewNodeProviderLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/nodetype.go b/pkg/informers/externalversions/management/v1/nodetype.go new file mode 100644 index 00000000..f3df7910 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodetype.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeTypeInformer provides access to a shared informer and lister for +// NodeTypes. +type NodeTypeInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeTypeLister +} + +type nodeTypeInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeTypeInformer constructs a new informer for NodeType type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeTypeInformer constructs a new informer for NodeType type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeTypes().Watch(ctx, options) + }, + }, + &apismanagementv1.NodeType{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeTypeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeTypeInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeType{}, f.defaultInformer) +} + +func (f *nodeTypeInformer) Lister() managementv1.NodeTypeLister { + return managementv1.NewNodeTypeLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index 010bc213..a93f8c59 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -28,6 +28,12 @@ type Interface interface { DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // NetworkPeers returns a NetworkPeerInformer. NetworkPeers() NetworkPeerInformer + // NodeClaims returns a NodeClaimInformer. + NodeClaims() NodeClaimInformer + // NodeProviders returns a NodeProviderInformer. + NodeProviders() NodeProviderInformer + // NodeTypes returns a NodeTypeInformer. + NodeTypes() NodeTypeInformer // Projects returns a ProjectInformer. Projects() ProjectInformer // SharedSecrets returns a SharedSecretInformer. @@ -109,6 +115,21 @@ func (v *version) NetworkPeers() NetworkPeerInformer { return &networkPeerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } +// NodeClaims returns a NodeClaimInformer. +func (v *version) NodeClaims() NodeClaimInformer { + return &nodeClaimInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// NodeProviders returns a NodeProviderInformer. +func (v *version) NodeProviders() NodeProviderInformer { + return &nodeProviderInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + +// NodeTypes returns a NodeTypeInformer. +func (v *version) NodeTypes() NodeTypeInformer { + return &nodeTypeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + // Projects returns a ProjectInformer. func (v *version) Projects() ProjectInformer { return &projectInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/storage/v1/nodeclaim.go b/pkg/informers/externalversions/storage/v1/nodeclaim.go new file mode 100644 index 00000000..4bd4ee2f --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodeclaim.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeClaimInformer provides access to a shared informer and lister for +// NodeClaims. +type NodeClaimInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeClaimLister +} + +type nodeClaimInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeClaimInformer constructs a new informer for NodeClaim type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeClaimInformer constructs a new informer for NodeClaim type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeClaims(namespace).Watch(ctx, options) + }, + }, + &apisstoragev1.NodeClaim{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeClaimInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeClaimInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeClaimInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeClaim{}, f.defaultInformer) +} + +func (f *nodeClaimInformer) Lister() storagev1.NodeClaimLister { + return storagev1.NewNodeClaimLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/nodeprovider.go b/pkg/informers/externalversions/storage/v1/nodeprovider.go new file mode 100644 index 00000000..ba915a7e --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodeprovider.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeProviderInformer provides access to a shared informer and lister for +// NodeProviders. +type NodeProviderInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeProviderLister +} + +type nodeProviderInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeProviderInformer constructs a new informer for NodeProvider type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeProviderInformer constructs a new informer for NodeProvider type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeProviders().Watch(ctx, options) + }, + }, + &apisstoragev1.NodeProvider{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeProviderInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeProviderInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeProviderInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeProvider{}, f.defaultInformer) +} + +func (f *nodeProviderInformer) Lister() storagev1.NodeProviderLister { + return storagev1.NewNodeProviderLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/nodetype.go b/pkg/informers/externalversions/storage/v1/nodetype.go new file mode 100644 index 00000000..c2b1615a --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodetype.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeTypeInformer provides access to a shared informer and lister for +// NodeTypes. +type NodeTypeInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeTypeLister +} + +type nodeTypeInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewNodeTypeInformer constructs a new informer for NodeType type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeTypeInformer constructs a new informer for NodeType type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeTypes().Watch(ctx, options) + }, + }, + &apisstoragev1.NodeType{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeTypeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeTypeInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeTypeInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeType{}, f.defaultInformer) +} + +func (f *nodeTypeInformer) Lister() storagev1.NodeTypeLister { + return storagev1.NewNodeTypeLister(f.Informer().GetIndexer()) +} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 092f3046..dbf124bc 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -90,6 +90,22 @@ type LicenseTokenListerExpansion interface{} // LoftUpgradeLister. type LoftUpgradeListerExpansion interface{} +// NodeClaimListerExpansion allows custom methods to be added to +// NodeClaimLister. +type NodeClaimListerExpansion interface{} + +// NodeClaimNamespaceListerExpansion allows custom methods to be added to +// NodeClaimNamespaceLister. +type NodeClaimNamespaceListerExpansion interface{} + +// NodeProviderListerExpansion allows custom methods to be added to +// NodeProviderLister. +type NodeProviderListerExpansion interface{} + +// NodeTypeListerExpansion allows custom methods to be added to +// NodeTypeLister. +type NodeTypeListerExpansion interface{} + // OIDCClientListerExpansion allows custom methods to be added to // OIDCClientLister. type OIDCClientListerExpansion interface{} diff --git a/pkg/listers/management/v1/nodeclaim.go b/pkg/listers/management/v1/nodeclaim.go new file mode 100644 index 00000000..e7d8c41a --- /dev/null +++ b/pkg/listers/management/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeClaimLister helps list NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimLister interface { + // List lists all NodeClaims in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeClaim, err error) + // NodeClaims returns an object that can list and get NodeClaims. + NodeClaims(namespace string) NodeClaimNamespaceLister + NodeClaimListerExpansion +} + +// nodeClaimLister implements the NodeClaimLister interface. +type nodeClaimLister struct { + listers.ResourceIndexer[*managementv1.NodeClaim] +} + +// NewNodeClaimLister returns a new NodeClaimLister. +func NewNodeClaimLister(indexer cache.Indexer) NodeClaimLister { + return &nodeClaimLister{listers.New[*managementv1.NodeClaim](indexer, managementv1.Resource("nodeclaim"))} +} + +// NodeClaims returns an object that can list and get NodeClaims. +func (s *nodeClaimLister) NodeClaims(namespace string) NodeClaimNamespaceLister { + return nodeClaimNamespaceLister{listers.NewNamespaced[*managementv1.NodeClaim](s.ResourceIndexer, namespace)} +} + +// NodeClaimNamespaceLister helps list and get NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimNamespaceLister interface { + // List lists all NodeClaims in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeClaim, err error) + // Get retrieves the NodeClaim from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeClaim, error) + NodeClaimNamespaceListerExpansion +} + +// nodeClaimNamespaceLister implements the NodeClaimNamespaceLister +// interface. +type nodeClaimNamespaceLister struct { + listers.ResourceIndexer[*managementv1.NodeClaim] +} diff --git a/pkg/listers/management/v1/nodeprovider.go b/pkg/listers/management/v1/nodeprovider.go new file mode 100644 index 00000000..706da3b9 --- /dev/null +++ b/pkg/listers/management/v1/nodeprovider.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeProviderLister helps list NodeProviders. +// All objects returned here must be treated as read-only. +type NodeProviderLister interface { + // List lists all NodeProviders in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeProvider, err error) + // Get retrieves the NodeProvider from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeProvider, error) + NodeProviderListerExpansion +} + +// nodeProviderLister implements the NodeProviderLister interface. +type nodeProviderLister struct { + listers.ResourceIndexer[*managementv1.NodeProvider] +} + +// NewNodeProviderLister returns a new NodeProviderLister. +func NewNodeProviderLister(indexer cache.Indexer) NodeProviderLister { + return &nodeProviderLister{listers.New[*managementv1.NodeProvider](indexer, managementv1.Resource("nodeprovider"))} +} diff --git a/pkg/listers/management/v1/nodetype.go b/pkg/listers/management/v1/nodetype.go new file mode 100644 index 00000000..215cf0da --- /dev/null +++ b/pkg/listers/management/v1/nodetype.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeTypeLister helps list NodeTypes. +// All objects returned here must be treated as read-only. +type NodeTypeLister interface { + // List lists all NodeTypes in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.NodeType, err error) + // Get retrieves the NodeType from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.NodeType, error) + NodeTypeListerExpansion +} + +// nodeTypeLister implements the NodeTypeLister interface. +type nodeTypeLister struct { + listers.ResourceIndexer[*managementv1.NodeType] +} + +// NewNodeTypeLister returns a new NodeTypeLister. +func NewNodeTypeLister(indexer cache.Indexer) NodeTypeLister { + return &nodeTypeLister{listers.New[*managementv1.NodeType](indexer, managementv1.Resource("nodetype"))} +} diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index 6940e290..966faa61 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -46,6 +46,22 @@ type DevPodWorkspaceTemplateListerExpansion interface{} // NetworkPeerLister. type NetworkPeerListerExpansion interface{} +// NodeClaimListerExpansion allows custom methods to be added to +// NodeClaimLister. +type NodeClaimListerExpansion interface{} + +// NodeClaimNamespaceListerExpansion allows custom methods to be added to +// NodeClaimNamespaceLister. +type NodeClaimNamespaceListerExpansion interface{} + +// NodeProviderListerExpansion allows custom methods to be added to +// NodeProviderLister. +type NodeProviderListerExpansion interface{} + +// NodeTypeListerExpansion allows custom methods to be added to +// NodeTypeLister. +type NodeTypeListerExpansion interface{} + // ProjectListerExpansion allows custom methods to be added to // ProjectLister. type ProjectListerExpansion interface{} diff --git a/pkg/listers/storage/v1/nodeclaim.go b/pkg/listers/storage/v1/nodeclaim.go new file mode 100644 index 00000000..44e02202 --- /dev/null +++ b/pkg/listers/storage/v1/nodeclaim.go @@ -0,0 +1,54 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeClaimLister helps list NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimLister interface { + // List lists all NodeClaims in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeClaim, err error) + // NodeClaims returns an object that can list and get NodeClaims. + NodeClaims(namespace string) NodeClaimNamespaceLister + NodeClaimListerExpansion +} + +// nodeClaimLister implements the NodeClaimLister interface. +type nodeClaimLister struct { + listers.ResourceIndexer[*storagev1.NodeClaim] +} + +// NewNodeClaimLister returns a new NodeClaimLister. +func NewNodeClaimLister(indexer cache.Indexer) NodeClaimLister { + return &nodeClaimLister{listers.New[*storagev1.NodeClaim](indexer, storagev1.Resource("nodeclaim"))} +} + +// NodeClaims returns an object that can list and get NodeClaims. +func (s *nodeClaimLister) NodeClaims(namespace string) NodeClaimNamespaceLister { + return nodeClaimNamespaceLister{listers.NewNamespaced[*storagev1.NodeClaim](s.ResourceIndexer, namespace)} +} + +// NodeClaimNamespaceLister helps list and get NodeClaims. +// All objects returned here must be treated as read-only. +type NodeClaimNamespaceLister interface { + // List lists all NodeClaims in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeClaim, err error) + // Get retrieves the NodeClaim from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeClaim, error) + NodeClaimNamespaceListerExpansion +} + +// nodeClaimNamespaceLister implements the NodeClaimNamespaceLister +// interface. +type nodeClaimNamespaceLister struct { + listers.ResourceIndexer[*storagev1.NodeClaim] +} diff --git a/pkg/listers/storage/v1/nodeprovider.go b/pkg/listers/storage/v1/nodeprovider.go new file mode 100644 index 00000000..b79a9f3e --- /dev/null +++ b/pkg/listers/storage/v1/nodeprovider.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeProviderLister helps list NodeProviders. +// All objects returned here must be treated as read-only. +type NodeProviderLister interface { + // List lists all NodeProviders in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeProvider, err error) + // Get retrieves the NodeProvider from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeProvider, error) + NodeProviderListerExpansion +} + +// nodeProviderLister implements the NodeProviderLister interface. +type nodeProviderLister struct { + listers.ResourceIndexer[*storagev1.NodeProvider] +} + +// NewNodeProviderLister returns a new NodeProviderLister. +func NewNodeProviderLister(indexer cache.Indexer) NodeProviderLister { + return &nodeProviderLister{listers.New[*storagev1.NodeProvider](indexer, storagev1.Resource("nodeprovider"))} +} diff --git a/pkg/listers/storage/v1/nodetype.go b/pkg/listers/storage/v1/nodetype.go new file mode 100644 index 00000000..b408b3e5 --- /dev/null +++ b/pkg/listers/storage/v1/nodetype.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// NodeTypeLister helps list NodeTypes. +// All objects returned here must be treated as read-only. +type NodeTypeLister interface { + // List lists all NodeTypes in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.NodeType, err error) + // Get retrieves the NodeType from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.NodeType, error) + NodeTypeListerExpansion +} + +// nodeTypeLister implements the NodeTypeLister interface. +type nodeTypeLister struct { + listers.ResourceIndexer[*storagev1.NodeType] +} + +// NewNodeTypeLister returns a new NodeTypeLister. +func NewNodeTypeLister(indexer cache.Indexer) NodeTypeLister { + return &nodeTypeLister{listers.New[*storagev1.NodeType](indexer, storagev1.Resource("nodetype"))} +} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 14760ec6..507416d7 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -246,6 +246,18 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim": schema_pkg_apis_management_v1_NodeClaim(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimList": schema_pkg_apis_management_v1_NodeClaimList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec": schema_pkg_apis_management_v1_NodeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus": schema_pkg_apis_management_v1_NodeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider": schema_pkg_apis_management_v1_NodeProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderList": schema_pkg_apis_management_v1_NodeProviderList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec": schema_pkg_apis_management_v1_NodeProviderSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus": schema_pkg_apis_management_v1_NodeProviderStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType": schema_pkg_apis_management_v1_NodeType(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeList": schema_pkg_apis_management_v1_NodeTypeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec": schema_pkg_apis_management_v1_NodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus": schema_pkg_apis_management_v1_NodeTypeStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), @@ -430,6 +442,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec": schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), @@ -517,10 +530,28 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef": schema_pkg_apis_storage_v1_NamespacedRef(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim": schema_pkg_apis_storage_v1_NodeClaim(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimList": schema_pkg_apis_storage_v1_NodeClaimList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec": schema_pkg_apis_storage_v1_NodeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus": schema_pkg_apis_storage_v1_NodeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider": schema_pkg_apis_storage_v1_NodeProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM": schema_pkg_apis_storage_v1_NodeProviderBCM(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt": schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderList": schema_pkg_apis_storage_v1_NodeProviderList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods": schema_pkg_apis_storage_v1_NodeProviderPods(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec": schema_pkg_apis_storage_v1_NodeProviderSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus": schema_pkg_apis_storage_v1_NodeProviderStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType": schema_pkg_apis_storage_v1_NodeType(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity": schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeList": schema_pkg_apis_storage_v1_NodeTypeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead": schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec": schema_pkg_apis_storage_v1_NodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus": schema_pkg_apis_storage_v1_NodeTypeStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), @@ -12613,54 +12644,11 @@ func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) } } -func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OIDC holds oidc provider relevant information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "If true indicates that loft will act as an OIDC server", - Type: []string{"boolean"}, - Format: "", - }, - }, - "wildcardRedirect": { - SchemaProps: spec.SchemaProps{ - Description: "If true indicates that loft will allow wildcard '*' in client redirectURIs", - Type: []string{"boolean"}, - Format: "", - }, - }, - "clients": { - SchemaProps: spec.SchemaProps{ - Description: "The clients that are allowed to request loft tokens", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, - } -} - -func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDCClient represents an OIDC client to use with Loft as an OIDC provider", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12686,24 +12674,24 @@ func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) comm "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OIDCClientList(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{ @@ -12736,7 +12724,7 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim"), }, }, }, @@ -12747,43 +12735,51 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OIDCClientSpec(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{ - Description: "OIDCClientSpec holds the specification", + Description: "NodeClaimSpec defines spec of node claim.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "The client name", - Type: []string{"string"}, - Format: "", - }, - }, - "clientId": { + "taints": { SchemaProps: spec.SchemaProps{ - Description: "The client id of the client", - Type: []string{"string"}, - Format: "", + Description: "Taints will be applied to the NodeClaim's node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Taint"), + }, + }, + }, }, }, - "clientSecret": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "The client secret of the client", - 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("k8s.io/api/core/v1.Taint"), + }, + }, + }, }, }, - "redirectURIs": { + "kubeletArgs": { SchemaProps: spec.SchemaProps{ - Description: "A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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: "", @@ -12794,111 +12790,112 @@ func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) }, }, }, - }, - Required: []string{"redirectURIs"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OIDCClientStatus holds the status", - Type: []string{"object"}, - }, - }, - } -} - -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": { + "desiredCapacity": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", - Type: []string{"string"}, - Format: "", + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "name": { + "requirements": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, + "nodeTypeRef": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeRef is the name of the NodeType that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "VClusterRef references source vCluster. This is required.", + Default: "", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"vClusterRef"}, }, }, + Dependencies: []string{ + "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_ObjectPermission(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "name": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "Message describes the reason in human-readable form", Type: []string{"string"}, Format: "", }, }, - "verbs": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", + Description: "Conditions describe the current state of the platform NodeClaim.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"verbs"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKey(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: "OwnedAccessKey is an access key that is owned by the current user", + 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": { @@ -12924,24 +12921,24 @@ func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12974,7 +12971,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider"), }, }, }, @@ -12985,200 +12982,228 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "pods": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", - Type: []string{"string"}, - Format: "", + Description: "Pods configures a node provider based on Kubernetes Pods. This can be used for simpler, pod-based node provisioning for testing or demos.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"), }, }, - "user": { + "bcm": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", - Type: []string{"string"}, - Format: "", + Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - "team": { + "kubeVirt": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", - Type: []string{"string"}, - Format: "", + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, - "subject": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "groups": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"}, + } +} + +func schema_pkg_apis_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: "Groups specifies extra groups to apply when using this access key", + Description: "Conditions describe the current state of the platform NodeProvider.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - "key": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "disabled": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", - Type: []string{"boolean"}, + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, Format: "", }, }, - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "ttlAfterLastActivity": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Type: []string{"string"}, 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": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + } +} + +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: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "identity": { - SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), - }, - }, - "identityRefresh": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "oidcProvider": { + "metadata": { 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"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "parent": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec"), }, }, - "oidcLogin": { + "status": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "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.NodeType"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_PredefinedApp(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{ - Description: "PredefinedApp holds information about a predefined app", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds the repo/chart name of the predefined app", - Default: "", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "initialVersion": { + "zone": { SchemaProps: spec.SchemaProps{ - Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", + Description: "Zone is the zone of the node type. If empty, will default to \"global\".", Type: []string{"string"}, Format: "", }, }, - "initialValues": { + "region": { 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: "Region is the region of the node type.", Type: []string{"string"}, Format: "", }, }, - "clusters": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Holds the cluster names where to display this app", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -13189,23 +13214,36 @@ func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) c }, }, }, - "title": { + "resources": { 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: "", + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "iconUrl": { + "overhead": { 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: "", + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "readmeUrl": { + "cost": { 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.", + 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: "", }, @@ -13213,61 +13251,115 @@ func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) c }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_Project(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{ - Description: "Project holds the Project information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase is the current lifecycle phase of the NodeType.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "capacity": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), + Description: "Capacity is the capacity of the node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), }, }, - "status": { + "conditions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), + Description: "Conditions holds several conditions the node type might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "OIDC holds oidc provider relevant information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "If true indicates that loft will act as an OIDC server", + Type: []string{"boolean"}, + Format: "", + }, + }, + "wildcardRedirect": { + SchemaProps: spec.SchemaProps{ + Description: "If true indicates that loft will allow wildcard '*' in client redirectURIs", + Type: []string{"boolean"}, + Format: "", + }, + }, + "clients": { + SchemaProps: spec.SchemaProps{ + Description: "The clients that are allowed to request loft tokens", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, + } +} + +func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "OIDCClient represents an OIDC client to use with Loft as an OIDC provider", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13292,24 +13384,24 @@ func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13342,7 +13434,7 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), }, }, }, @@ -13353,270 +13445,158 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "OIDCClientSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), + Description: "The client name", + 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{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), - }, - }, - "readme": { - SchemaProps: spec.SchemaProps{ - Description: "Readme is the readme of the chart", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { - SchemaProps: spec.SchemaProps{ - Description: "Values are the default values of the chart", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, - } -} - -func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "The client id of the client", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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 secret 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"), - }, - }, - "charts": { + "redirectURIs": { SchemaProps: spec.SchemaProps{ - Description: "Holds the available helm charts for this cluster", + Description: "A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "busy": { - SchemaProps: spec.SchemaProps{ - Description: "Busy will indicate if the chart parsing is still in progress.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, - Required: []string{"charts"}, + Required: []string{"redirectURIs"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - 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.ProjectCharts"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, + Description: "OIDCClientStatus holds the status", + Type: []string{"object"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "clusters": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Clusters holds all the allowed clusters", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster"), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "verbs": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"verbs"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectImportSpace holds project space import information", + Description: "OwnedAccessKey is an access key that is owned by the current user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -13639,23 +13619,27 @@ func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallba Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceSpace": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceSpace is the space to import into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), }, }, }, - Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceList(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{ @@ -13688,7 +13672,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, @@ -13699,277 +13683,289 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name of the space to import", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "cluster": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Cluster name of the cluster the space is running on", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "importName": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", + Description: "The user this access key refers to", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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 team this access key refers to", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Subject is a generic subject that can be used instead of user or team", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "groups": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Groups specifies extra groups to apply when using this access key", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Project"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "info": { + "key": { 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"), + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, 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", + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "ttlAfterLastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "identity": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, - "teams": { + "identityRefresh": { SchemaProps: spec.SchemaProps{ - Description: "Teams holds all the teams that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Description: "The last time the identity was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "users": { + "oidcProvider": { SchemaProps: spec.SchemaProps{ - Description: "Users holds all the users that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Type: []string{"string"}, + Format: "", + }, + }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "lastActivity": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "The last time this access key was used to access the api", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PredefinedApp holds information about a predefined app", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "Chart holds the repo/chart name of the predefined app", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "initialVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "initialValues": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "InitialValues holds the initial values for this app. The values will be prefilled automatically. There are certain placeholders that can be used within the values that are replaced by the loft UI automatically.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "clusters": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Holds the cluster names where to display this app", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "title": { + SchemaProps: spec.SchemaProps{ + Description: "Title is the name that should be displayed for the predefined app. If empty the chart name is used.", + Type: []string{"string"}, + Format: "", + }, + }, + "iconUrl": { + SchemaProps: spec.SchemaProps{ + Description: "IconURL specifies an url to the icon that should be displayed for this app. If none is specified the icon from the chart metadata is used.", + Type: []string{"string"}, + Format: "", + }, + }, + "readmeUrl": { + SchemaProps: spec.SchemaProps{ + Description: "ReadmeURL specifies an url to the readme page of this predefined app. If empty an url will be constructed to artifact hub.", + Type: []string{"string"}, + Format: "", + }, + }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMembership(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Project holds the Project information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "role": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Role is the role given to the member", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), }, }, - "assignedVia": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13991,23 +13987,27 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.Refere Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceSpaceInstance": { + "spec": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), }, }, }, - Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14040,7 +14040,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), }, }, }, @@ -14051,26 +14051,53 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "Name of the spaceinstance to migrate", - Type: []string{"string"}, - Format: "", + Description: "Chart holds information about a chart that should get deployed", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), }, }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace of the spaceinstance to migrate", + }, + }, + }, + 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{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata provides information about a chart", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), + }, + }, + "readme": { + SchemaProps: spec.SchemaProps{ + Description: "Readme is the readme of the chart", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "Values are the default values of the chart", Type: []string{"string"}, Format: "", }, @@ -14078,15 +14105,16 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common. }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateVirtualClusterInstance holds project vclusterinstance migrate information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14108,23 +14136,37 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref comm Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceVirtualClusterInstance": { + "charts": { 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"), + Description: "Holds the available helm charts for this cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + }, + }, + }, + }, + }, + "busy": { + SchemaProps: spec.SchemaProps{ + Description: "Busy will indicate if the chart parsing is still in progress.", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"sourceVirtualClusterInstance"}, + Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14157,7 +14199,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts"), }, }, }, @@ -14168,81 +14210,111 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster instance to migrate", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the virtual cluster instance to migrate", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "clusters": { + SchemaProps: spec.SchemaProps{ + Description: "Clusters holds all the allowed clusters", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster"), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "isAdmin": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "IsAdmin describes whether this is an admin project role", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSecret holds the Project Secret information", + Description: "ProjectImportSpace holds project space import information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14265,27 +14337,23 @@ func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) c 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.ProjectSecretSpec"), - }, - }, - "status": { + "sourceSpace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), + Description: "SourceSpace is the space to import into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), }, }, }, + Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14318,7 +14386,7 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), }, }, }, @@ -14329,295 +14397,315 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Name of the space to import", Type: []string{"string"}, Format: "", }, }, - "description": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a Project secret", + Description: "Cluster name of the cluster the space is running on", Type: []string{"string"}, Format: "", }, }, - "owner": { + "importName": { 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: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", + Type: []string{"string"}, + Format: "", }, }, - "data": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Project"), }, }, }, }, }, }, + 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.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { + "info": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, + Description: "Info about the user or team", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "quotas": { - SchemaProps: spec.SchemaProps{ - Description: "Quotas define the quotas inside the project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), - }, - }, - "allowedClusters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "AllowedClusters are target clusters that are allowed to target with environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "allowedRunners": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", + Description: "Teams holds all the teams that have access to the cluster", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), }, }, }, }, }, - "allowedTemplates": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "AllowedTemplates are the templates that are allowed to use in this project.", + Description: "Users holds all the users that have access to the cluster", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), }, }, }, }, }, - "requireTemplate": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_ProjectMembersList(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: "RequireTemplate configures if a template is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "requirePreset": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "RequirePreset configures if a preset is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "members": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Members are the users and teams that are part of this project", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers"), }, }, }, }, }, - "namespacePattern": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_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: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "argoCD": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "vault": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "rancher": { + "role": { SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), + Description: "Role is the role given to the member", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"), }, }, - "devPod": { + "assignedVia": { SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"}, } } -func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectStatus holds the status", + Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "quotas": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "conditions": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - 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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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"), + }, + }, + "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"), }, }, }, + Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14640,103 +14728,47 @@ 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"), - }, - }, - "defaultVirtualClusterTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultVirtualClusterTemplate is the default template for the project", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "virtualClusterTemplates": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), }, }, }, }, }, - "defaultSpaceTemplate": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "DefaultSpaceTemplate", + Description: "Name of the spaceinstance to migrate", Type: []string{"string"}, Format: "", }, }, - "spaceTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplates holds all the allowed space templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), - }, - }, - }, - }, - }, - "defaultDevPodWorkspaceTemplate": { + "namespace": { 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"), - }, - }, - }, - }, - }, - "devPodWorkspacePresets": { - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresets holds all the allowed workspace presets", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), - }, - }, - }, - }, - }, - "defaultDevPodEnvironmentTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodEnvironmentTemplate", + Description: "Namespace of the spaceinstance to migrate", Type: []string{"string"}, Format: "", }, @@ -14744,16 +14776,15 @@ func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectMigrateVirtualClusterInstance holds project vclusterinstance migrate information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14772,37 +14803,30 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "sourceVirtualClusterInstance": { 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.ProjectTemplates"), - }, - }, - }, + Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), }, }, }, - Required: []string{"items"}, + Required: []string{"sourceVirtualClusterInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectToken holds the object information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14821,39 +14845,47 @@ 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"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), + Type: []string{"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.ProjectMigrateVirtualClusterInstance"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenClaims holds the private claims of the redirect token", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url to redirect to.", + Description: "Name of the virtual cluster instance to migrate", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the virtual cluster instance to migrate", Type: []string{"string"}, Format: "", }, @@ -14864,85 +14896,38 @@ func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallb } } -func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenSpec holds the object specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Token is the token that includes the redirect request", + Description: "DisplayName is the name of the object to display in the UI", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenStatus holds the object status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "redirectURL": { + "isAdmin": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "IsAdmin describes whether this is an admin project role", + Type: []string{"boolean"}, + Format: "", }, }, }, @@ -14951,11 +14936,11 @@ func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallb } } -func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", + Description: "ProjectSecret holds the Project Secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14981,24 +14966,24 @@ func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15031,7 +15016,7 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), }, }, }, @@ -15042,348 +15027,479 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualClusterSpec holds the specification", + Description: "ProjectSecretSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "serviceUID": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "project": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Project is the project name the virtual cluster should be in.", + Description: "Description describes a Project secret", Type: []string{"string"}, Format: "", }, }, - "name": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the vcluster based on the service uid and this name.", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "forceName": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "ForceName specifies if the name should be used or creation will fail.", - Type: []string{"boolean"}, - Format: "", + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, }, }, - "chart": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Chart specifies the vCluster chart.", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version specifies the vCluster version.", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { - SchemaProps: spec.SchemaProps{ - Description: "Values specifies the vCluster config.", - Type: []string{"string"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualClusterStatus holds the status", + Description: "ProjectSecretStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Name is the actual name of the virtual cluster instance.", - Type: []string{"string"}, - Format: "", + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResetAccessKey is an access key that is owned by another user", + Description: "ProjectSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "spec": { + "quotas": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), + Description: "Quotas define the quotas inside the project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), }, }, - "status": { + "allowedClusters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), + Description: "AllowedClusters are target clusters that are allowed to target with environments.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), + }, + }, + }, + }, + }, + "allowedRunners": { + SchemaProps: spec.SchemaProps{ + Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), + }, + }, + }, + }, + }, + "allowedTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "AllowedTemplates are the templates that are allowed to use in this project.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), + }, + }, + }, + }, + }, + "requireTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "RequireTemplate configures if a template is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + }, + }, + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + }, + }, + "members": { + SchemaProps: spec.SchemaProps{ + Description: "Members are the users and teams that are part of this project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "namespacePattern": { + SchemaProps: spec.SchemaProps{ + Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + }, + }, + "argoCD": { + SchemaProps: spec.SchemaProps{ + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + }, + }, + "vault": { + SchemaProps: spec.SchemaProps{ + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + }, + }, + "rancher": { + SchemaProps: spec.SchemaProps{ + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), + }, + }, + "devPod": { + SchemaProps: spec.SchemaProps{ + Description: "DevPod holds DevPod specific configuration for project", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "quotas": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Quotas holds the quota status", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "user": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "team": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "subject": { + "defaultVirtualClusterTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "DefaultVirtualClusterTemplate is the default template for the project", Type: []string{"string"}, Format: "", }, }, - "groups": { + "virtualClusterTemplates": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", + Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), }, }, }, }, }, - "key": { + "defaultSpaceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", + Description: "DefaultSpaceTemplate", Type: []string{"string"}, Format: "", }, }, - "disabled": { + "spaceTemplates": { 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"), + Description: "SpaceTemplates holds all the allowed space templates", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), + }, + }, + }, }, }, - "type": { + "defaultDevPodWorkspaceTemplate": { 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: "DefaultDevPodWorkspaceTemplate", Type: []string{"string"}, Format: "", }, }, - "identity": { + "devPodWorkspaceTemplates": { SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), + 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"), + }, + }, + }, }, }, - "identityRefresh": { + "devPodEnvironmentTemplates": { SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + 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"), + }, + }, + }, }, }, - "oidcProvider": { + "devPodWorkspacePresets": { SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Description: "DevPodWorkspacePresets holds all the allowed workspace presets", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), + }, + }, + }, }, }, - "parent": { + "defaultDevPodEnvironmentTemplate": { 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: "DefaultDevPodEnvironmentTemplate", Type: []string{"string"}, Format: "", }, }, - "oidcLogin": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "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.ProjectTemplates"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Self holds information about the currently logged in user", + Description: "RedirectToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15409,24 +15525,44 @@ func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RedirectTokenClaims holds the private claims of the redirect token", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL is the url to redirect to.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15459,7 +15595,7 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Self"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), }, }, }, @@ -15470,19 +15606,20 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RedirectTokenSpec holds the object specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accessKey": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is an optional access key to use instead of the provided one", + Description: "Token is the token that includes the redirect request", Type: []string{"string"}, Format: "", }, @@ -15493,270 +15630,207 @@ func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common } } -func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RedirectTokenStatus holds the object status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "user": { + "redirectURL": { 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"), + Type: []string{"string"}, + Format: "", }, }, - "team": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { 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"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "accessKey": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The name of the currently used access key", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "accessKeyScope": { + "metadata": { 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"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "accessKeyType": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "The type of the currently used access key", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), }, }, - "subject": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "The subject of the currently logged in user", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_RegisterVirtualClusterList(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: "", }, }, - "uid": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "UID is the user uid", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "groups": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The groups of the currently logged in user", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), }, }, }, }, }, - "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: "", - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", + Description: "RegisterVirtualClusterSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "serviceUID": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Project is the project name the virtual cluster should be in.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), + Description: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the vcluster based on the service uid and this name.", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "forceName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), + Description: "ForceName specifies if the name should be used or creation will fail.", + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Chart specifies the vCluster chart.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Version specifies the vCluster version.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "resourceAttributes": { - SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), - }, - }, - "nonResourceAttributes": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "Values specifies the vCluster config.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RegisterVirtualClusterStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "allowed": { - SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, - Type: []string{"boolean"}, - Format: "", - }, - }, - "denied": { - SchemaProps: spec.SchemaProps{ - Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", - Type: []string{"string"}, - Format: "", - }, - }, - "evaluationError": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Description: "Name is the actual name of the virtual cluster instance.", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"allowed"}, }, }, } } -func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecret holds the secret information", + Description: "ResetAccessKey is an access key that is owned by another user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15782,24 +15856,24 @@ func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15832,7 +15906,7 @@ func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), }, }, }, @@ -15843,108 +15917,171 @@ func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a shared secret", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "owner": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", }, }, - "data": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - }, + Description: "The team this access key refers to", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "Subject is a generic subject that can be used instead of user or team", + 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.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SharedSecretStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "conditions": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", + Description: "Groups specifies extra groups to apply when using this access key", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/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"}, - } + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, + Format: "", + }, + }, + "ttl": { + SchemaProps: spec.SchemaProps{ + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "ttlAfterLastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Type: []string{"string"}, + Format: "", + }, + }, + "identity": { + SchemaProps: spec.SchemaProps{ + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), + }, + }, + "identityRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the identity was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Type: []string{"string"}, + Format: "", + }, + }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } } -func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstance holds the SpaceInstance information", + 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_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": { @@ -15970,24 +16107,24 @@ func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceInstanceList(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{ @@ -16020,7 +16157,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.Self"), }, }, }, @@ -16031,193 +16168,293 @@ 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"}, + "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_SpaceInstanceSpec(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{ - Description: "SpaceInstanceSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "AccessKey is an optional access key to use instead of the provided one", Type: []string{"string"}, Format: "", }, }, - "description": { + }, + }, + }, + } +} + +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: "Description describes a space instance", - Type: []string{"string"}, - Format: "", + Description: "The name of the currently logged in user", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo"), }, }, - "owner": { + "team": { 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 name of the currently logged in team", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, - "templateRef": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Description: "The name of the currently used access key", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "accessKeyScope": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "The scope of the currently used access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), }, }, - "clusterRef": { + "accessKeyType": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this space", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + Description: "The type of the currently used access key", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "subject": { 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: "The subject of the currently logged in user", Type: []string{"string"}, Format: "", }, }, - "extraAccessRules": { + "uid": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Description: "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: "", }, }, }, }, }, + "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/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/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_SpaceInstanceStatus(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: "SpaceInstanceStatus holds the status", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "message": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "conditions": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the 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"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), }, }, - "spaceObjects": { + "status": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), }, }, - "space": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Space is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "ignoreReconciliation": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "sleepModeConfig": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "canUse": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resourceAttributes": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + }, + }, + "nonResourceAttributes": { + SchemaProps: spec.SchemaProps{ + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + } +} + +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "allowed": { + SchemaProps: spec.SchemaProps{ + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, Type: []string{"boolean"}, Format: "", }, }, - "canUpdate": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", + Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", Type: []string{"boolean"}, Format: "", }, }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason is optional. It indicates why a request was allowed or denied.", + Type: []string{"string"}, + Format: "", + }, + }, + "evaluationError": { + SchemaProps: spec.SchemaProps{ + Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Type: []string{"string"}, + Format: "", + }, + }, }, + Required: []string{"allowed"}, }, }, - 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"}, } } -func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate holds the information", + Description: "SharedSecret holds the secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16243,24 +16480,24 @@ func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16293,7 +16530,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret"), }, }, }, @@ -16304,27 +16541,27 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateSpec holds the specification", + Description: "SharedSecretSpec 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", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the space template", + Description: "Description describes a shared secret", Type: []string{"string"}, Format: "", }, @@ -16335,36 +16572,16 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "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"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "versions": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different space template versions that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + Type: []string{"string"}, + Format: "byte", }, }, }, @@ -16372,7 +16589,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallbac }, "access": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -16388,24 +16605,26 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateStatus holds the status", + Description: "SharedSecretStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apps": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, @@ -16415,15 +16634,15 @@ func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", + Description: "SpaceInstance holds the SpaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16449,24 +16668,24 @@ func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallb "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16499,7 +16718,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance"), }, }, }, @@ -16510,140 +16729,193 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceInstanceSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceAttributes": { - SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), - }, - }, - "nonResourceAttributes": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "user": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + Description: "Description describes a space instance", Type: []string{"string"}, Format: "", }, }, - "groups": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, + }, + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Groups is the groups you're testing for.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "TemplateRef holds the space template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - "extra": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is the reference to the connected cluster holding this space", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Type: []string{"string"}, + Format: "", + }, + }, + "extraAccessRules": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), }, }, }, }, }, - "uid": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "UID information about the requesting user.", - Type: []string{"string"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceInstanceStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "allowed": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, - Type: []string{"boolean"}, + Description: "Phase describes the current phase the space instance is in", + Type: []string{"string"}, Format: "", }, }, - "denied": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - Type: []string{"boolean"}, + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, Format: "", }, }, - "reason": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", + Description: "Message describes the reason in human-readable form", Type: []string{"string"}, Format: "", }, }, - "evaluationError": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - Type: []string{"string"}, + Description: "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"), + }, + }, + }, + }, + }, + "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"), + }, + }, + "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"), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sleepModeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + }, + }, + "canUse": { + SchemaProps: spec.SchemaProps{ + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "canUpdate": { + SchemaProps: spec.SchemaProps{ + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, Format: "", }, }, }, - Required: []string{"allowed"}, }, }, + 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"}, } } -func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Task holds the Task information", + Description: "SpaceTemplate holds the information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16669,24 +16941,24 @@ func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16719,7 +16991,7 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Task"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), }, }, }, @@ -16730,309 +17002,346 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceTemplateSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes the space template", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Template holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "apiVersion": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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: "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"), + }, + }, + }, }, }, - "metadata": { + "versions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Versions are different space template versions that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + }, + }, + }, }, }, - "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.TaskLog"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceTemplateStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + }, + }, + }, }, }, - "follow": { - SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "previous": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + } +} + +func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { + 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: "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": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "limitBytes": { + "spec": { 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("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec"), }, }, - "insecureSkipTLSVerifyBackend": { + "status": { 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: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TaskSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "access": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), }, }, }, }, }, - "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"), - }, - }, - "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"), - }, - }, - "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"), - }, - }, - "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"), - }, - }, }, + 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.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TaskStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "started": { + "resourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "Started determines if the task was started", - Type: []string{"boolean"}, + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + }, + }, + "nonResourceAttributes": { + SchemaProps: spec.SchemaProps{ + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + Type: []string{"string"}, Format: "", }, }, - "conditions": { + "groups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + Description: "Groups is the groups you're testing for.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "podPhase": { + "extra": { SchemaProps: spec.SchemaProps{ - Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", + Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + "uid": { + SchemaProps: spec.SchemaProps{ + Description: "UID information about the requesting user.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "observedGeneration": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + } +} + +func schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "allowed": { SchemaProps: spec.SchemaProps{ - Description: "ObservedGeneration is the latest generation observed by the controller.", - Type: []string{"integer"}, - Format: "int64", + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "containerState": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + Type: []string{"boolean"}, + Format: "", }, }, - "owner": { + "reason": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), + Description: "Reason is optional. It indicates why a request was allowed or denied.", + Type: []string{"string"}, + Format: "", }, }, - "cluster": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"allowed"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, } } -func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Team holds the team information", + Description: "Task holds the Task information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17058,24 +17367,24 @@ func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17098,31 +17407,32 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "accessKeys": { + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Task"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17145,32 +17455,18 @@ 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"), - }, - }, - "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.TeamAccessKeys"), - }, - }, - }, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17193,31 +17489,32 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "clusters": { + "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.ClusterAccounts"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17237,87 +17534,204 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback Format: "", }, }, - "metadata": { + "follow": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "items": { + "previous": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sinceSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "sinceTime": { + SchemaProps: spec.SchemaProps{ + Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "timestamps": { + SchemaProps: spec.SchemaProps{ + Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "tailLines": { + SchemaProps: spec.SchemaProps{ + Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "limitBytes": { + SchemaProps: spec.SchemaProps{ + Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "insecureSkipTLSVerifyBackend": { + SchemaProps: spec.SchemaProps{ + Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TaskSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, + "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"), + }, + }, + "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"), + }, + }, + "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"), + }, + }, + "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"), + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TaskStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "started": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. 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: "Started determines if the task was started", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + 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"), + }, + }, + }, + }, + }, + "podPhase": { + SchemaProps: spec.SchemaProps{ + Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "metadata": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "ObservedGeneration is the latest generation observed by the controller.", + Type: []string{"integer"}, + Format: "int64", }, }, - "items": { + "containerState": { 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.Team"), - }, - }, - }, + Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, } } -func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Team holds the team information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17339,28 +17753,27 @@ func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCal Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "objectPermissions": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17383,32 +17796,31 @@ func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.Referenc "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "accessKeys": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17431,74 +17843,65 @@ func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "members": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Members gives users that are team members", - 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.ObjectName"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys"), }, }, }, }, }, - "projectMemberships": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamClusters(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: "ProjectMemberships gives information about the team's project membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "managementRoles": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "ManagementRoles gives information about the team's assigned management roles", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "clusterAccessRoles": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "virtualClusterRoles": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", - 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.VirtualClusterRole"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), }, }, }, @@ -17508,11 +17911,11 @@ func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17545,7 +17948,7 @@ func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters"), }, }, }, @@ -17556,138 +17959,63 @@ func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "username": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The username of the team that will be used for identification and docker registry namespace", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "users": { - SchemaProps: spec.SchemaProps{ - Description: "The loft users that belong to a team", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "groups": { - SchemaProps: spec.SchemaProps{ - Description: "The groups defined in a token that belong to a team", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "imagePullSecrets": { - SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), - }, - }, - }, - }, - }, - "clusterRoles": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Team"), }, }, }, }, }, }, + 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.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceName holds rename request and response data for given resource", - Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17709,27 +18037,28 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.Refe 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.TranslateVClusterResourceNameSpec"), - }, - }, - "status": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17762,7 +18091,7 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions"), }, }, }, @@ -17773,116 +18102,115 @@ func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common. }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceNameSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of resource we want to rename", - 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: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the name of namespace in which this resource is running", - 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: "", }, }, - "vclusterName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "VClusterName is the name of vCluster in which this resource is running", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - }, - Required: []string{"name", "namespace", "vclusterName"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceNameStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "members": { SchemaProps: spec.SchemaProps{ - Description: "Name is the converted name of resource", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Members gives users that are team members", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, }, }, - "apiVersion": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "ProjectMemberships gives information about the team's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, }, }, - "metadata": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "ManagementRoles gives information about the team's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, }, }, - "spec": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec"), + Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, }, }, - "status": { + "virtualClusterRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), + Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17905,83 +18233,159 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "accessKeys": { + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "items": { + "username": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "The username of the team that will be used for identification and docker registry namespace", + Type: []string{"string"}, + Format: "", + }, + }, + "users": { + SchemaProps: spec.SchemaProps{ + Description: "The loft users that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "The groups defined in a token that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "imagePullSecrets": { + SchemaProps: spec.SchemaProps{ + Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + }, + }, + }, + }, + }, + "clusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TranslateVClusterResourceName holds rename request and response data for given resource", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -18003,28 +18407,27 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "clusters": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18057,7 +18460,7 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), }, }, }, @@ -18068,80 +18471,116 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TranslateVClusterResourceNameSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "Name is the name of resource we want to rename", + Default: "", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Namespace is the name of namespace in which this resource is running", + Default: "", Type: []string{"string"}, Format: "", }, }, - "icon": { + "vclusterName": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", + Description: "VClusterName is the name of vCluster in which this resource is running", + Default: "", Type: []string{"string"}, Format: "", }, }, - "username": { + }, + Required: []string{"name", "namespace", "vclusterName"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TranslateVClusterResourceNameStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "Name is the converted name of resource", Type: []string{"string"}, Format: "", }, }, - "email": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "User holds the user information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "subject": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "teams": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams the user is part of", - 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("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.UserSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18164,32 +18603,31 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "accessKeys": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.User"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18212,31 +18650,32 @@ func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCal "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "objectPermissions": { + "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.ObjectPermission"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18259,32 +18698,31 @@ func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.Referenc "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "clusters": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18307,102 +18745,87 @@ 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"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "clusterRoles": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles that apply to the user.", - 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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters"), }, }, }, }, }, - "namespaceRoles": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), - }, - }, - }, + Description: "Name is the kubernetes name of the object", + Type: []string{"string"}, + Format: "", }, }, - "teamMemberships": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "TeamMemberships gives information about the user's team membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), - }, - }, - }, + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", }, }, - "projectMemberships": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "ProjectMemberships gives information about the user's project membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), - }, - }, - }, + Description: "Icon is the icon of the user / team", + Type: []string{"string"}, + Format: "", }, }, - "managementRoles": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "ManagementRoles gives information about the user's assigned management roles", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), - }, - }, - }, + Description: "The username that is used to login", + Type: []string{"string"}, + Format: "", }, }, - "clusterAccessRoles": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), - }, - }, - }, + Description: "The users email address", + Type: []string{"string"}, + Format: "", }, }, - "virtualClusterRoles": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Description: "The user subject", + Type: []string{"string"}, + Format: "", + }, + }, + "teams": { + SchemaProps: spec.SchemaProps{ + Description: "Teams are the teams the user is part of", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, @@ -18412,11 +18835,11 @@ func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18449,7 +18872,7 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.User"), }, }, }, @@ -18460,46 +18883,44 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserObjectPermissions(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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "rules": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Description: "Rules are the roles rules", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), }, }, }, @@ -18509,11 +18930,11 @@ func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/rbac/v1.PolicyRule"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserProfile(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{ @@ -18536,67 +18957,150 @@ func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) com "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "displayName": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The new display name shown in the UI", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions"), + }, + }, + }, }, }, - "username": { - SchemaProps: spec.SchemaProps{ - Description: "Username is the new username of the user", - Type: []string{"string"}, - Format: "", - }, - }, - "password": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Password is the new password of the user", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "currentPassword": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPassword is the current password of the user", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "email": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Email is the new email of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "icon": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the new icon of the user", - Type: []string{"string"}, - Format: "", + Description: "ClusterRoles that apply to the user.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), + }, + }, + }, }, }, - "custom": { + "namespaceRoles": { SchemaProps: spec.SchemaProps{ - Description: "Custom is custom information that should be saved 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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), + }, + }, + }, }, }, - "secrets": { + "teamMemberships": { SchemaProps: spec.SchemaProps{ - Description: "Secrets is a map of secret names to secret data", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "TeamMemberships gives information about the user's team membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, + }, + }, + "projectMemberships": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectMemberships gives information about the user's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, + }, + }, + "managementRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ManagementRoles gives information about the user's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, + }, + }, + "clusterAccessRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), }, }, }, @@ -18606,11 +19110,11 @@ func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -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{ @@ -18643,7 +19147,7 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions"), }, }, }, @@ -18654,66 +19158,46 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type is the type of the secret", - Type: []string{"string"}, - Format: "", - }, - }, - "data": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Description: "Data is the data of the secret", + Description: "ClusterRole is the name of the cluster role assigned to this user.", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "role": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "Role is the name of the role assigned to this user.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Namespace where this rules are valid.", Type: []string{"string"}, Format: "", }, }, - "cluster": { + "rules": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve quotas from", + Description: "Rules are the roles rules", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), }, }, }, @@ -18722,10 +19206,12 @@ func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallbac }, }, }, + Dependencies: []string{ + "k8s.io/api/rbac/v1.PolicyRule"}, } } -func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18745,100 +19231,312 @@ func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallbac Format: "", }, }, - "cluster": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve spaces from", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "The new display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "description": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Username is the new username of the user", Type: []string{"string"}, Format: "", }, }, - "owner": { + "password": { 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: "Password is the new password of the user", + Type: []string{"string"}, + Format: "", }, }, - "username": { + "currentPassword": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "CurrentPassword is the current password of the user", Type: []string{"string"}, Format: "", }, }, - "icon": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "The URL to an icon that should be shown for the user", + Description: "Email is the new email of the user", Type: []string{"string"}, Format: "", }, }, - "email": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", + Description: "Icon is the new icon of the user", Type: []string{"string"}, Format: "", }, }, - "subject": { + "custom": { SchemaProps: spec.SchemaProps{ - Description: "The user subject as presented by the token", + Description: "Custom is custom information that should be saved of the user", Type: []string{"string"}, Format: "", }, }, - "groups": { + "secrets": { SchemaProps: spec.SchemaProps{ - Description: "The groups the user has access to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Secrets is a map of secret names to secret data", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), }, }, }, }, }, - "ssoGroups": { - SchemaProps: spec.SchemaProps{ - Description: "SSOGroups is used to remember groups that were added from sso.", - Type: []string{"array"}, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.UserProfile"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is the type of the secret", + Type: []string{"string"}, + Format: "", + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data is the data of the secret", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster where to retrieve quotas from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster where to retrieve spaces from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes a cluster access object", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username that is used to login", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "The URL to an icon that should be shown for the user", + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Description: "The users email address", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "The user subject as presented by the token", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "The groups the user has access to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ssoGroups": { + SchemaProps: spec.SchemaProps{ + Description: "SSOGroups is used to remember groups that were added from sso.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -22082,44 +22780,168 @@ func schema_pkg_apis_storage_v1_ArgoSSOSpec(ref common.ReferenceCallback) common } } -func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Chart describes a chart", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the chart name in the repository", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Version is the chart version in the repository", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "repoURL": { + "zone": { SchemaProps: spec.SchemaProps{ - Description: "RepoURL is the repo url where the chart can be found", + Description: "Zone is the zone of the node type. If empty, will default to \"global\".", Type: []string{"string"}, Format: "", }, }, - "username": { + "region": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", + Description: "Region is the region of the node type.", Type: []string{"string"}, Format: "", }, }, - "password": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "nodes": { + SchemaProps: spec.SchemaProps{ + Description: "Nodes specifies nodes.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "nodeGroups": { + SchemaProps: spec.SchemaProps{ + Description: "NodeGroups is the name of the node groups to use for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Chart describes a chart", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the chart name in the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the chart version in the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "repoURL": { + SchemaProps: spec.SchemaProps{ + Description: "RepoURL is the repo url where the chart can be found", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username that is required for this repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "The password that is required for this repository", Type: []string{"string"}, Format: "", }, @@ -25548,20 +26370,619 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref common.Re }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the kubernetes name of the object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "Icon is the icon of the user / team", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of DevPodEnvironmentTemplate this references", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version of DevPodEnvironmentTemplate this references", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "GitEnvironmentTemplate stores configuration of Git environment template source", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "Repository stores repository URL for Git environment spec source", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "revision": { + SchemaProps: spec.SchemaProps{ + Description: "Revision stores revision to checkout in repository", + Type: []string{"string"}, + Format: "", + }, + }, + "subpath": { + SchemaProps: spec.SchemaProps{ + Description: "SubPath stores subpath within Repositor where environment spec is", + Type: []string{"string"}, + Format: "", + }, + }, + "useProjectGitCredentials": { + 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: "", + }, + }, + }, + Required: []string{"repository"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_GitProjectCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", + Type: []string{"string"}, + Format: "", + }, + }, + "tokenSecretRef": { + SchemaProps: spec.SchemaProps{ + Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", + Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.SecretKeySelector"}, + } +} + +func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "http": { + SchemaProps: spec.SchemaProps{ + Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + }, + }, + "ssh": { + SchemaProps: spec.SchemaProps{ + Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"}, + } +} + +func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + 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: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' matches pods. 'pods/log' matches the log subresource of pods. '*' matches all resources and their subresources. 'pods/*' matches all subresources of pods. '*/scale' matches all scale subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +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{ + 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"), + }, + }, + "versions": { + 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: "", + }, + }, + }, + }, + }, + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "Repository is the repository name of this chart", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/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 { + 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 repository", + Type: []string{"string"}, + Format: "", + }, + }, + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL is the repository url", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "Username of the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "Password of the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "insecure": { + SchemaProps: spec.SchemaProps{ + Description: "Insecure specifies if the chart should be retrieved without TLS verification", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HelmConfiguration holds the helm configuration", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the chart to deploy", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "The additional helm values to use. Expected block string", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version of the chart to deploy", + Type: []string{"string"}, + Format: "", + }, + }, + "repoUrl": { + SchemaProps: spec.SchemaProps{ + Description: "The repo url to use", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username to use for the selected repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "The password to use for the selected repository", + Type: []string{"string"}, + Format: "", + }, + }, + "insecure": { + SchemaProps: spec.SchemaProps{ + Description: "Determines if the remote location uses an insecure TLS certificate.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"name"}, + }, + }, + } +} + +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": { + 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"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is the task type. Defaults to Upgrade", + Type: []string{"string"}, + Format: "", + }, + }, + "rollbackRevision": { + SchemaProps: spec.SchemaProps{ + Description: "RollbackRevision is the revision to rollback to", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease"}, + } +} + +func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the release", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + 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("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + }, + }, + "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/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"}, + } +} + +func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "roleMapping": { + SchemaProps: spec.SchemaProps{ + Description: "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: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_InstanceAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "defaultClusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", + Type: []string{"string"}, + Format: "", + }, + }, + "rules": { + SchemaProps: spec.SchemaProps{ + Description: "Rules defines which users and teams should have which access to the virtual cluster. If no rule matches an authenticated incoming user, the user will get cluster admin access.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"}, } } -func schema_pkg_apis_storage_v1_DockerCredentialForwarding(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{ - "disabled": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, + Description: "Users this rule matches. * means all users.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "teams": { + SchemaProps: spec.SchemaProps{ + Description: "Teams that this rule matches.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "clusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRole is the cluster role that should be assigned to the", + Type: []string{"string"}, Format: "", }, }, @@ -25571,7 +26992,7 @@ func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceC } } -func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -25579,246 +27000,211 @@ func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common. Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", - Type: []string{"string"}, - Format: "", - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Name of the app that should get deployed", Type: []string{"string"}, Format: "", }, }, - "icon": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", + Description: "Namespace specifies in which target namespace the app should get deployed in. Only used for virtual cluster apps.", Type: []string{"string"}, Format: "", }, }, - "username": { + "releaseName": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "ReleaseName of the target app", Type: []string{"string"}, Format: "", }, }, - "email": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", + Description: "Version of the app that should get deployed", Type: []string{"string"}, Format: "", }, }, - "subject": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", + Description: "Phase describes the current phase the app deployment is in", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodEnvironmentTemplate this references", - Default: "", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "version": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version of DevPodEnvironmentTemplate this references", + Description: "Message describes the reason in human-readable form", 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_KindSecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "KindSecretRef is the reference to a secret containing the user password", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "apiGroup": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, + Description: "APIGroup is the api group of the secret", + Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "repository": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", - Default: "", + Description: "Kind is the kind of the secret", Type: []string{"string"}, Format: "", }, }, - "revision": { + "secretName": { SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "subpath": { + "secretNamespace": { SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "useProjectGitCredentials": { + "key": { 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: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"repository"}, }, }, } } -func schema_pkg_apis_storage_v1_GitProjectCredentials(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{ - "token": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, - "tokenSecretRef": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), + Description: "Description is the description of this object in human-readable text.", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, - } -} - -func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "http": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + 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"), + }, + }, + }, }, }, - "ssh": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), + 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": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, + }, + }, + "priority": { + SchemaProps: spec.SchemaProps{ + Description: "Priority is a unique value that specifies the priority of this cluster access for the space constraints and quota. A higher priority means the cluster access object will override the space constraints of lower priority cluster access objects", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GroupResources represents resource kinds in an API group.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { - SchemaProps: spec.SchemaProps{ - Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", - Type: []string{"string"}, - Format: "", - }, - }, - "resources": { + "metadata": { 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: "Metadata is the metadata of the cluster access object", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "resourceNames": { + "spec": { 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: "", - }, - }, - }, + Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_HelmChart(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{ @@ -25826,310 +27212,347 @@ func schema_pkg_apis_storage_v1_HelmChart(ref common.ReferenceCallback) common.O Properties: map[string]spec.Schema{ "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", + Description: "Metadata is the metadata of the cluster role template object", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), - }, - }, - "versions": { - 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: "", - }, - }, - }, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "repository": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Repository is the repository name of this chart", + 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.HelmChartRepository"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec"), }, }, }, }, }, 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"}, + "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_HelmChartRepository(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 repository", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, - "url": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "URL is the repository url", + Description: "Description is the description of this object in human-readable text.", Type: []string{"string"}, Format: "", }, }, - "username": { + "clusterRoleTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Username of the repository", + Description: "ClusterRoleTemplate holds the cluster role template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"}, + } +} + +func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the kind of the member. Currently either User or Team", Type: []string{"string"}, Format: "", }, }, - "password": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "Password of the repository", + Description: "Group of the member. Currently only supports storage.loft.sh", Type: []string{"string"}, Format: "", }, }, - "insecure": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Insecure specifies if the chart should be retrieved without TLS verification", - Type: []string{"boolean"}, + Description: "Name of the member", + Type: []string{"string"}, + Format: "", + }, + }, + "clusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRole is the assigned role for the above member", + Default: "", + Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"clusterRole"}, }, }, } } -func schema_pkg_apis_storage_v1_HelmConfiguration(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{ - Description: "HelmConfiguration holds the helm configuration", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Name of the chart to deploy", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "values": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "The additional helm values to use. Expected block string", - Type: []string{"string"}, - Format: "", + Description: "Resources are compute resource required by the metrics backend", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, - "version": { + "retention": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version of the chart to deploy", + Description: "Retention is the metrics data retention period. Default is 1y", Type: []string{"string"}, Format: "", }, }, - "repoUrl": { + "storage": { SchemaProps: spec.SchemaProps{ - Description: "The repo url to use", - Type: []string{"string"}, - Format: "", + Description: "Storage contains settings related to the metrics backend's persistent volume configuration", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage"), }, }, - "username": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage", "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + +func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "space": { SchemaProps: spec.SchemaProps{ - Description: "The username to use for the selected repository", + Description: "Space holds the namespace pattern to use for space instances", Type: []string{"string"}, Format: "", }, }, - "password": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "The password to use for the selected repository", + Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", Type: []string{"string"}, Format: "", }, }, - "insecure": { + "devPodWorkspace": { SchemaProps: spec.SchemaProps{ - Description: "Determines if the remote location uses an insecure TLS certificate.", - Type: []string{"boolean"}, + Description: "DevPodWorkspace holds the namespace pattern to use for DevPod workspaces", + Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"name"}, }, }, } } -func schema_pkg_apis_storage_v1_HelmTask(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{ - "release": { - 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"), - }, - }, - "type": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Type is the task type. Defaults to Upgrade", + Description: "Name is the name of this resource", + Default: "", Type: []string{"string"}, Format: "", }, }, - "rollbackRevision": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "RollbackRevision is the revision to rollback to", + Description: "Namespace is the namespace of this resource", + Default: "", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"name", "namespace"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease"}, } } -func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NetworkPeer hols the information of network peers", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the release", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the release, if empty will use the target namespace", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "config": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the release", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "labels": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Labels are additional labels for the helm release.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(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{ - "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, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_InstanceAccess(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "defaultClusterRole": { + "discoKey": { SchemaProps: spec.SchemaProps{ - Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", + Description: "DiscoKey is a key used for DERP discovery", Type: []string{"string"}, Format: "", }, }, - "rules": { + "machineKey": { SchemaProps: spec.SchemaProps{ - Description: "Rules defines which users and teams should have which access to the virtual cluster. If no rule matches an authenticated incoming user, the user will get cluster admin access.", + Description: "MachineKey is used to identify a network peer", + Type: []string{"string"}, + Format: "", + }, + }, + "nodeKey": { + SchemaProps: spec.SchemaProps{ + Description: "NodeKey is used to identify a session", + Type: []string{"string"}, + Format: "", + }, + }, + "addresses": { + SchemaProps: spec.SchemaProps{ + Description: "Addresses is a list of IP addresses of this Node directly.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"}, - } -} - -func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "users": { + "allowedIPs": { SchemaProps: spec.SchemaProps{ - Description: "Users this rule matches. * means all users.", + Description: "AllowedIPs is a range of IP addresses to route to this node.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -26142,9 +27565,9 @@ func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) }, }, }, - "teams": { + "endpoints": { SchemaProps: spec.SchemaProps{ - Description: "Teams that this rule matches.", + 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{ @@ -26157,71 +27580,36 @@ func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) }, }, }, - "clusterRole": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the cluster role that should be assigned to the", - Type: []string{"string"}, - Format: "", - }, - }, }, }, }, } } -func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(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{ - "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": { + "lastSeen": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the app deployment is in", + Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", Type: []string{"string"}, Format: "", }, }, - "reason": { + "homeDerpRegion": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", + Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", + Type: []string{"integer"}, + Format: "int32", }, }, - "message": { + "online": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, + Description: "Online is whether the node is currently connected to the coordination server.", + Type: []string{"boolean"}, Format: "", }, }, @@ -26231,326 +27619,361 @@ func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCa } } -func schema_pkg_apis_storage_v1_KindSecretRef(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{ - Description: "KindSecretRef is the reference to a secret containing the user password", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apiGroup": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the api group of the secret", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "kind": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Kind is the kind of the secret", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "secretName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "secretNamespace": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec"), }, }, - "key": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeClaimList contains a list of NodeClaim", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be 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 is the description of this object in human-readable text.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "users": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Users are the users affected by this cluster access object", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim"), }, }, }, }, }, - "teams": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeClaimSpec defines spec of node claim.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "taints": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams affected by this cluster access object", + Description: "Taints will be applied to the NodeClaim's node.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Taint"), }, }, }, }, }, - "clusterRoles": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref("k8s.io/api/core/v1.Taint"), }, }, }, }, }, - "priority": { - SchemaProps: spec.SchemaProps{ - Description: "Priority is a unique value that specifies the priority of this cluster access for the space constraints and quota. A higher priority means the cluster access object will override the space constraints of lower priority cluster access objects", - Type: []string{"integer"}, - Format: "int32", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { + "kubeletArgs": { 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: "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: "", + }, + }, + }, }, }, - "spec": { + "desiredCapacity": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec"), + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { + "requirements": { 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: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, }, }, - "spec": { + "nodeTypeRef": { 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: "NodeTypeRef is the name of the NodeType that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"vClusterRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(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{ - "displayName": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be shown in the UI", + Description: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "description": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description of this object in human-readable text.", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "clusterRoleTemplate": { + "message": { 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: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_Member(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{ - Type: []string{"object"}, + Description: "NodeProvider holds the information of a node provider config. This resource defines various ways a node can be provisioned or configured.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "clusterRole": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the assigned role for the above member", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus"), }, }, }, - Required: []string{"clusterRole"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_Metrics(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{ - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "resources": { + "secretRef": { SchemaProps: spec.SchemaProps{ - Description: "Resources are compute resource required by the metrics backend", - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Description: "SecretRef is a reference to secret with keys for BCM auth.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef"), }, }, - "retention": { + "endpoint": { SchemaProps: spec.SchemaProps{ - Description: "Retention is the metrics data retention period. Default is 1y", + Description: "Endpoint is a address for head node.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "storage": { + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Description: "Storage contains settings related to the metrics backend's persistent volume configuration", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage"), + 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.BCMNodeTypeSpec"), + }, + }, + }, }, }, }, + Required: []string{"secretRef", "endpoint"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage", "k8s.io/api/core/v1.ResourceRequirements"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef"}, } } -func schema_pkg_apis_storage_v1_NamespacePattern(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{ - "space": { - SchemaProps: spec.SchemaProps{ - Description: "Space holds the namespace pattern to use for space instances", - Type: []string{"string"}, - Format: "", - }, - }, - "virtualCluster": { + "virtualClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", - Type: []string{"string"}, - Format: "", + Description: "If KubeVirt is deployed inside one of the vClusters, reference this vCluster here. Otherwise it will be assumed to run in the same host cluster as platform.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), }, }, - "devPodWorkspace": { + "targetNamespace": { SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspace holds the namespace pattern to use for DevPod workspaces", + Description: "TargetNamespace is the namespace within the KubeVirt cluster where the VirtualMachines and their secrets will be created.", Type: []string{"string"}, Format: "", }, @@ -26558,14 +27981,16 @@ func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) c }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"}, } } -func schema_pkg_apis_storage_v1_NetworkPeer(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{ - Description: "NetworkPeer hols the information of network peers", + Description: "NodeProviderList contains a list of NodeProvider", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -26582,195 +28007,230 @@ func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common Format: "", }, }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", - Type: []string{"string"}, - Format: "", - }, - }, - "generateName": { - SchemaProps: spec.SchemaProps{ - Description: "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", - Type: []string{"string"}, - Format: "", - }, - }, - "selfLink": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "uid": { + "items": { 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: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider"), + }, + }, + }, }, }, - "resourceVersion": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderPods(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderPodsSpec defines the configuration for a pod-based node provider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "image": { SchemaProps: spec.SchemaProps{ - Description: "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: "Image is the container image to use for the pod-based node provider.", Type: []string{"string"}, Format: "", }, }, - "generation": { - SchemaProps: spec.SchemaProps{ - Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "creationTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "deletionTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "deletionGracePeriodSeconds": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pods": { SchemaProps: spec.SchemaProps{ - Description: "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: "Pods configures a node provider based on Kubernetes Pods. This can be used for simpler, pod-based node provisioning for testing or demos.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"), }, }, - "labels": { + "bcm": { 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: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - "annotations": { + "kubeVirt": { 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: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, - "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", - }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderStatus defines the observed state of NodeProvider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "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: "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("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, - "finalizers": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "set", - "x-kubernetes-patch-strategy": "merge", - }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, + }, + "phase": { 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: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, + Format: "", }, }, - "managedFields": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Type: []string{"string"}, + Format: "", }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + } +} + +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: "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"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus"), }, }, }, + Required: []string{"metadata"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeCapacity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerList contains a list of NetworkPeers", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "total": { + SchemaProps: spec.SchemaProps{ + Description: "Total is the total number of nodes of this type", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "available": { + SchemaProps: spec.SchemaProps{ + Description: "Available is the number of available nodes of this type", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "provisioned": { + SchemaProps: spec.SchemaProps{ + Description: "Provisioned is the number of already provisioned nodes of this type", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + } +} + +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": { @@ -26800,7 +28260,7 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType"), }, }, }, @@ -26811,42 +28271,72 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_NetworkPeerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeOverhead(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + 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("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "zone": { SchemaProps: spec.SchemaProps{ - Description: "MachineKey is used to identify a network peer", + Description: "Zone is the zone of the node type. If empty, will default to \"global\".", Type: []string{"string"}, Format: "", }, }, - "nodeKey": { + "region": { SchemaProps: spec.SchemaProps{ - Description: "NodeKey is used to identify a session", + Description: "Region is the region of the node type.", Type: []string{"string"}, Format: "", }, }, - "addresses": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Addresses is a list of IP addresses of this Node directly.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -26857,72 +28347,101 @@ func schema_pkg_apis_storage_v1_NetworkPeerSpec(ref common.ReferenceCallback) co }, }, }, - "allowedIPs": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "AllowedIPs is a range of IP addresses to route to this node.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, }, }, }, - "endpoints": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "Endpoints is a list of IP+port (public via STUN, and local LANs) where this node can be reached.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_NetworkPeerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeTypeStatus holds the status of a node type", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastSeen": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", + Description: "Phase is the current lifecycle phase of the NodeType.", Type: []string{"string"}, Format: "", }, }, - "homeDerpRegion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", - Type: []string{"integer"}, - Format: "int32", + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "online": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Online is whether the node is currently connected to the coordination server.", - Type: []string{"boolean"}, + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, Format: "", }, }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Capacity is the capacity of the node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the node type might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"}, } } From 47204fb94c4e1bd3853ed0fade7a385929516d64 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Tue, 29 Jul 2025 16:28:18 +0000 Subject: [PATCH 23/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 ++-- pkg/apis/storage/v1/nodetype_types.go | 6 +++--- pkg/openapi/zz_generated.openapi.go | 12 ++++-------- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index ab415516..69c9fc0f 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae - github.com/loft-sh/agentapi/v4 v4.5.0-next.1 + github.com/loft-sh/agentapi/v4 v4.5.0-next.2 github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 google.golang.org/grpc v1.68.1 google.golang.org/protobuf v1.36.5 diff --git a/go.sum b/go.sum index 012be96f..1461491f 100644 --- a/go.sum +++ b/go.sum @@ -105,8 +105,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae h1:nyrRyiEi1mssYel6z3NaUiHBaFG2bBA6HCsADWxSMo0= github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.5.0-next.1 h1:cTKk4CIjvuY+p63hCL+SqoRuFnINyHzlsIe+I5snyjQ= -github.com/loft-sh/agentapi/v4 v4.5.0-next.1/go.mod h1:wERN3GDmvqTcKC2NvsYMPwvfXzEd3pXxRyvDSLTxU48= +github.com/loft-sh/agentapi/v4 v4.5.0-next.2 h1:VaDNvsht/uOqXDC0ymiDqdw1llGZuzgAvy/SVcWsvCo= +github.com/loft-sh/agentapi/v4 v4.5.0-next.2/go.mod h1:wERN3GDmvqTcKC2NvsYMPwvfXzEd3pXxRyvDSLTxU48= github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 h1:CucC57Nm4cfTsktoj6UaSSh29q/adSLrDcALh377SP4= github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2/go.mod h1:ROoLzugsusno4FKi+Lju6VN62u9mROLi3MvLrqC3cA4= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/apis/storage/v1/nodetype_types.go b/pkg/apis/storage/v1/nodetype_types.go index 57ecd71d..ad6f2f43 100644 --- a/pkg/apis/storage/v1/nodetype_types.go +++ b/pkg/apis/storage/v1/nodetype_types.go @@ -12,13 +12,13 @@ const ( NodeProviderPropertyKey = "vcluster.com/node-provider" NodeTypePropertyKey = "vcluster.com/node-type" - // NodeTypeConditionTypeInitialized is the condition that indicates if the node type is initialized. - NodeTypeConditionTypeInitialized = "Initialized" + // NodeTypeConditionTypeSynced is the condition that indicates if the node type is synced with provider. + NodeTypeConditionTypeSynced = "Synced" ) var ( NodeTypeConditions = []agentstoragev1.ConditionType{ - NodeTypeConditionTypeInitialized, + NodeTypeConditionTypeSynced, } ) diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 507416d7..289b4deb 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -33790,10 +33790,9 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -33955,10 +33954,9 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -34057,10 +34055,9 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -35458,10 +35455,9 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From aef797698511dbd5c60af78107c21ff51562cc6c Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 11 Sep 2025 17:30:54 +0000 Subject: [PATCH 24/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 69c9fc0f..12db75a7 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae + github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e github.com/loft-sh/agentapi/v4 v4.5.0-next.2 github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 google.golang.org/grpc v1.68.1 diff --git a/go.sum b/go.sum index 1461491f..9b3aaf81 100644 --- a/go.sum +++ b/go.sum @@ -103,8 +103,8 @@ 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-20250521064618-068d5f25cdae h1:nyrRyiEi1mssYel6z3NaUiHBaFG2bBA6HCsADWxSMo0= -github.com/loft-sh/admin-apis v0.0.0-20250521064618-068d5f25cdae/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e h1:W4fVgGj62HOdefMs5FuJwjA1J5nJmf5iQsXirMiuGoY= +github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= github.com/loft-sh/agentapi/v4 v4.5.0-next.2 h1:VaDNvsht/uOqXDC0ymiDqdw1llGZuzgAvy/SVcWsvCo= github.com/loft-sh/agentapi/v4 v4.5.0-next.2/go.mod h1:wERN3GDmvqTcKC2NvsYMPwvfXzEd3pXxRyvDSLTxU48= github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 h1:CucC57Nm4cfTsktoj6UaSSh29q/adSLrDcALh377SP4= From 8a2244f0dd38cf250757f32d6c67bd1694e87b69 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 7 Nov 2025 08:30:14 +0000 Subject: [PATCH 25/30] [skip ci] repo-sync --- go.mod | 82 +- go.sum | 197 +- pkg/apis/management/install/install.go | 3 - .../install/zz_generated.api.register.go | 25 +- pkg/apis/management/types.go | 34 - .../v1/cluster_agentconfig_types.go | 3 + pkg/apis/management/v1/config_types.go | 17 + .../v1/devpodenvironmenttemplate_types.go | 56 - .../devpodworkspaceinstance_cancel_types.go | 17 - .../devpodworkspaceinstance_download_types.go | 13 - .../v1/devpodworkspaceinstance_log_types.go | 13 - .../v1/devpodworkspaceinstance_stop_types.go | 28 - .../v1/devpodworkspaceinstance_tasks_types.go | 35 - ...podworkspaceinstance_troubleshoot_types.go | 45 - .../v1/devpodworkspaceinstance_types.go | 73 - .../v1/devpodworkspaceinstance_up_types.go | 32 - .../v1/devpodworkspacepreset_types.go | 51 - .../v1/devpodworkspacetemplate_types.go | 57 - pkg/apis/management/v1/kiosk_types.go | 10 + pkg/apis/management/v1/license_types.go | 3 + .../management/v1/nodeenvironment_types.go | 33 + .../management/v1/nodeprovider_exec_types.go | 120 + pkg/apis/management/v1/nodeprovider_types.go | 1 + pkg/apis/management/v1/nodetype_types.go | 9 - pkg/apis/management/v1/options.go | 40 - .../management/v1/project_nodetypes_types.go | 20 + .../management/v1/project_templates_types.go | 15 - pkg/apis/management/v1/project_types.go | 1 + pkg/apis/management/v1/self_types.go | 4 + pkg/apis/management/v1/usagesnapshot_types.go | 27 + .../v1/virtualcluster_register_types.go | 8 + ...lclusterinstance_externaldatabase_types.go | 4 + ...tualclusterinstance_nodeaccesskey_types.go | 25 + .../v1/virtualclusterinstance_shell.go | 27 + .../virtualclusterinstance_snapshot_types.go | 88 + ...virtualclusterinstance_standalone_types.go | 56 + .../v1/virtualclusterinstance_types.go | 6 + .../v1/zz_generated.api.register.go | 266 +- .../management/v1/zz_generated.conversion.go | 3332 +-- .../management/v1/zz_generated.deepcopy.go | 4765 +++-- .../management/v1/zz_generated.defaults.go | 913 - .../management/zz_generated.api.register.go | 1631 +- pkg/apis/management/zz_generated.deepcopy.go | 2986 +-- pkg/apis/management/zz_generated.defaults.go | 913 - pkg/apis/storage/v1/cluster_types.go | 4 + .../v1/devpodenvironmenttemplate_types.go | 150 - .../v1/devpodworkspaceinstance_types.go | 450 - .../storage/v1/devpodworkspacepreset_types.go | 117 - .../v1/devpodworkspacetemplate_types.go | 562 - pkg/apis/storage/v1/nodeclaim_types.go | 32 +- pkg/apis/storage/v1/nodeenvironment_types.go | 109 + pkg/apis/storage/v1/nodeprovider_types.go | 202 +- pkg/apis/storage/v1/nodetype_types.go | 101 +- pkg/apis/storage/v1/project_types.go | 54 +- .../v1/virtualclusterinstance_types.go | 41 +- pkg/apis/storage/v1/zz_generated.deepcopy.go | 2386 +-- pkg/apis/storage/v1/zz_generated.defaults.go | 496 - pkg/apis/ui/v1/ui_types.go | 49 +- pkg/apis/ui/v1/zz_generated.deepcopy.go | 90 +- pkg/apis/zz_generated.api.register.go | 4 +- pkg/auth/types.go | 3 +- .../v1/devpodenvironmenttemplate.go | 54 - .../management/v1/devpodworkspaceinstance.go | 116 - .../management/v1/devpodworkspacepreset.go | 54 - .../management/v1/devpodworkspacetemplate.go | 54 - .../v1/fake/fake_devpodenvironmenttemplate.go | 36 - .../v1/fake/fake_devpodworkspaceinstance.go | 88 - .../v1/fake/fake_devpodworkspacepreset.go | 36 - .../v1/fake/fake_devpodworkspacetemplate.go | 36 - .../v1/fake/fake_management_client.go | 24 +- .../v1/fake/fake_nodeenvironment.go | 34 + .../management/v1/fake/fake_usagedownload.go | 34 + .../v1/fake/fake_virtualclusterinstance.go | 24 + .../management/v1/generated_expansion.go | 12 +- .../typed/management/v1/management_client.go | 30 +- .../typed/management/v1/nodeenvironment.go | 54 + .../typed/management/v1/usagedownload.go | 54 + .../management/v1/virtualclusterinstance.go | 32 + .../storage/v1/devpodenvironmenttemplate.go | 52 - .../storage/v1/devpodworkspaceinstance.go | 52 - .../typed/storage/v1/devpodworkspacepreset.go | 52 - .../storage/v1/devpodworkspacetemplate.go | 54 - .../v1/fake/fake_devpodenvironmenttemplate.go | 36 - .../v1/fake/fake_devpodworkspaceinstance.go | 36 - .../v1/fake/fake_devpodworkspacepreset.go | 36 - .../v1/fake/fake_devpodworkspacetemplate.go | 36 - .../storage/v1/fake/fake_nodeenvironment.go | 34 + .../storage/v1/fake/fake_storage_client.go | 20 +- .../typed/storage/v1/generated_expansion.go | 10 +- .../typed/storage/v1/nodeenvironment.go | 54 + .../typed/storage/v1/storage_client.go | 25 +- pkg/devpod/cloneoptions.go | 24 - pkg/devpod/platformoptions.go | 82 - pkg/devpod/runner.pb.go | 214 - pkg/devpod/runner.proto | 17 - pkg/devpod/runner_grpc.pb.go | 105 - pkg/informers/externalversions/generic.go | 22 +- .../v1/devpodenvironmenttemplate.go | 85 - .../management/v1/devpodworkspaceinstance.go | 86 - .../management/v1/devpodworkspacepreset.go | 85 - .../management/v1/devpodworkspacetemplate.go | 85 - .../management/v1/interface.go | 42 +- .../management/v1/nodeenvironment.go | 86 + .../management/v1/usagedownload.go | 85 + .../storage/v1/devpodenvironmenttemplate.go | 85 - .../storage/v1/devpodworkspaceinstance.go | 86 - .../storage/v1/devpodworkspacepreset.go | 85 - .../storage/v1/devpodworkspacetemplate.go | 85 - .../externalversions/storage/v1/interface.go | 35 +- .../storage/v1/nodeenvironment.go | 86 + .../v1/devpodenvironmenttemplate.go | 32 - .../management/v1/devpodworkspaceinstance.go | 54 - .../management/v1/devpodworkspacepreset.go | 32 - .../management/v1/devpodworkspacetemplate.go | 32 - .../management/v1/expansion_generated.go | 32 +- pkg/listers/management/v1/nodeenvironment.go | 54 + pkg/listers/management/v1/usagedownload.go | 32 + .../storage/v1/devpodenvironmenttemplate.go | 32 - .../storage/v1/devpodworkspaceinstance.go | 54 - .../storage/v1/devpodworkspacepreset.go | 32 - .../storage/v1/devpodworkspacetemplate.go | 32 - pkg/listers/storage/v1/expansion_generated.go | 28 +- pkg/listers/storage/v1/nodeenvironment.go | 54 + pkg/openapi/zz_generated.openapi.go | 17821 ++++++++-------- pkg/product/name.go | 6 +- pkg/product/replace.go | 16 - pkg/product/strings.go | 8 - 127 files changed, 17661 insertions(+), 24373 deletions(-) delete mode 100644 pkg/apis/management/v1/devpodenvironmenttemplate_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_download_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_log_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspaceinstance_up_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspacepreset_types.go delete mode 100644 pkg/apis/management/v1/devpodworkspacetemplate_types.go create mode 100644 pkg/apis/management/v1/nodeenvironment_types.go create mode 100644 pkg/apis/management/v1/nodeprovider_exec_types.go create mode 100644 pkg/apis/management/v1/project_nodetypes_types.go create mode 100644 pkg/apis/management/v1/usagesnapshot_types.go create mode 100644 pkg/apis/management/v1/virtualclusterinstance_nodeaccesskey_types.go create mode 100644 pkg/apis/management/v1/virtualclusterinstance_shell.go create mode 100644 pkg/apis/management/v1/virtualclusterinstance_snapshot_types.go create mode 100644 pkg/apis/management/v1/virtualclusterinstance_standalone_types.go delete mode 100644 pkg/apis/storage/v1/devpodenvironmenttemplate_types.go delete mode 100644 pkg/apis/storage/v1/devpodworkspaceinstance_types.go delete mode 100644 pkg/apis/storage/v1/devpodworkspacepreset_types.go delete mode 100644 pkg/apis/storage/v1/devpodworkspacetemplate_types.go create mode 100644 pkg/apis/storage/v1/nodeenvironment_types.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_nodeenvironment.go create mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_usagedownload.go create mode 100644 pkg/clientset/versioned/typed/management/v1/nodeenvironment.go create mode 100644 pkg/clientset/versioned/typed/management/v1/usagedownload.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go delete mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/fake/fake_nodeenvironment.go create mode 100644 pkg/clientset/versioned/typed/storage/v1/nodeenvironment.go delete mode 100644 pkg/devpod/cloneoptions.go delete mode 100644 pkg/devpod/platformoptions.go delete mode 100644 pkg/devpod/runner.pb.go delete mode 100644 pkg/devpod/runner.proto delete mode 100644 pkg/devpod/runner_grpc.pb.go delete mode 100644 pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go delete mode 100644 pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go delete mode 100644 pkg/informers/externalversions/management/v1/devpodworkspacepreset.go delete mode 100644 pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go create mode 100644 pkg/informers/externalversions/management/v1/nodeenvironment.go create mode 100644 pkg/informers/externalversions/management/v1/usagedownload.go delete mode 100644 pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go delete mode 100644 pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go delete mode 100644 pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go delete mode 100644 pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go create mode 100644 pkg/informers/externalversions/storage/v1/nodeenvironment.go delete mode 100644 pkg/listers/management/v1/devpodenvironmenttemplate.go delete mode 100644 pkg/listers/management/v1/devpodworkspaceinstance.go delete mode 100644 pkg/listers/management/v1/devpodworkspacepreset.go delete mode 100644 pkg/listers/management/v1/devpodworkspacetemplate.go create mode 100644 pkg/listers/management/v1/nodeenvironment.go create mode 100644 pkg/listers/management/v1/usagedownload.go delete mode 100644 pkg/listers/storage/v1/devpodenvironmenttemplate.go delete mode 100644 pkg/listers/storage/v1/devpodworkspaceinstance.go delete mode 100644 pkg/listers/storage/v1/devpodworkspacepreset.go delete mode 100644 pkg/listers/storage/v1/devpodworkspacetemplate.go create mode 100644 pkg/listers/storage/v1/nodeenvironment.go diff --git a/go.mod b/go.mod index 12db75a7..efee0e5f 100644 --- a/go.mod +++ b/go.mod @@ -6,24 +6,21 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e - github.com/loft-sh/agentapi/v4 v4.5.0-next.2 - github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 - google.golang.org/grpc v1.68.1 - google.golang.org/protobuf v1.36.5 - k8s.io/api v0.33.1 - k8s.io/apimachinery v0.33.1 - k8s.io/apiserver v0.33.1 - k8s.io/client-go v0.33.1 + github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7 + github.com/loft-sh/agentapi/v4 v4.6.0-alpha.2 + github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 + k8s.io/api v0.34.0 + k8s.io/apimachinery v0.34.0 + k8s.io/apiserver v0.34.0 + k8s.io/client-go v0.34.0 k8s.io/klog/v2 v2.130.1 - k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff - k8s.io/metrics v0.33.1 - sigs.k8s.io/controller-runtime v0.20.1 + k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b + sigs.k8s.io/controller-runtime v0.21.0 sigs.k8s.io/controller-tools v0.16.4 ) require ( - cel.dev/expr v0.19.1 // indirect + 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/beorn7/perks v1.0.1 // indirect @@ -33,11 +30,11 @@ 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.8.0 // indirect - github.com/fxamacker/cbor/v2 v2.7.0 // 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.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect @@ -47,22 +44,23 @@ require ( github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/btree v1.1.3 // indirect - github.com/google/cel-go v0.23.2 // indirect - github.com/google/gnostic-models v0.6.9 // indirect + github.com/google/cel-go v0.26.0 // indirect + github.com/google/gnostic-models v0.7.0 // indirect github.com/google/go-cmp v0.7.0 // indirect github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // 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/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/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.22.0 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.62.0 // indirect @@ -71,22 +69,24 @@ require ( github.com/spf13/pflag v1.0.6 // indirect github.com/stoewer/go-strcase v1.3.0 // indirect github.com/x448/float16 v0.8.4 // indirect - go.etcd.io/etcd/api/v3 v3.5.21 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.5.21 // indirect - go.etcd.io/etcd/client/v3 v3.5.21 // indirect + go.etcd.io/etcd/api/v3 v3.6.4 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.6.4 // indirect + go.etcd.io/etcd/client/v3 v3.6.4 // indirect go.opentelemetry.io/auto/sdk v1.1.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect - go.opentelemetry.io/otel v1.33.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 // indirect - go.opentelemetry.io/otel/metric v1.33.0 // indirect - go.opentelemetry.io/otel/sdk v1.33.0 // indirect - go.opentelemetry.io/otel/trace v1.33.0 // indirect - go.opentelemetry.io/proto/otlp v1.4.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/sdk v1.34.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect + go.opentelemetry.io/proto/otlp v1.5.0 // indirect go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect + go.yaml.in/yaml/v2 v2.4.2 // indirect + go.yaml.in/yaml/v3 v3.0.4 // indirect golang.org/x/crypto v0.36.0 // indirect golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect golang.org/x/mod v0.24.0 // indirect @@ -98,18 +98,20 @@ require ( golang.org/x/text v0.23.0 // indirect golang.org/x/time v0.9.0 // indirect golang.org/x/tools v0.31.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect + google.golang.org/grpc v1.72.1 // indirect + google.golang.org/protobuf v1.36.5 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/apiextensions-apiserver v0.33.1 // indirect - k8s.io/component-base v0.33.1 // indirect - k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect + k8s.io/apiextensions-apiserver v0.34.0 // indirect + k8s.io/component-base v0.34.0 // indirect + k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect - sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect + sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect sigs.k8s.io/randfill v1.0.0 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect + sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect + sigs.k8s.io/yaml v1.6.0 // indirect ) diff --git a/go.sum b/go.sum index 9b3aaf81..a267b5da 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -cel.dev/expr v0.19.1 h1:NciYrtDRIR0lNCnH1LFJegdjspNx9fI59O7TWcua/W4= -cel.dev/expr v0.19.1/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= +cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY= +cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw= 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= @@ -23,16 +23,16 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 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.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= -github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= -github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= -github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= +github.com/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= @@ -55,17 +55,16 @@ github.com/gobuffalo/flect v1.0.3/go.mod h1:A5msMlrHtLqh9umBSnvabjsMrCcCpAyzglnD 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.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= -github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= +github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= 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.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= -github.com/google/cel-go v0.23.2 h1:UdEe3CvQh3Nv+E/j9r1Y//WO0K0cSyD7/y0bzyLIMI4= -github.com/google/cel-go v0.23.2/go.mod h1:52Pb6QsDbC5kvgxvZhiL9QX1oZEkcUF/ZqaPx1J5Wwo= -github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw= -github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/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= @@ -77,18 +76,18 @@ 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.4-0.20250319132907-e064f32e3674 h1:JeSE6pjso5THxAzdVpqr6/geYxZytqFMBCOtn/ujyeo= github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-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.24.0 h1:TmHmbvxPmaegwhDubVz0lICL0J5Ka2vwTzhoePEXsGE= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0/go.mod h1:qztMSjm835F2bXf+5HKAPIS5qsmQDqZna/PgVt4rWtI= +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= @@ -103,19 +102,20 @@ 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-20250825172409-daa49fc5396e h1:W4fVgGj62HOdefMs5FuJwjA1J5nJmf5iQsXirMiuGoY= -github.com/loft-sh/admin-apis v0.0.0-20250825172409-daa49fc5396e/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.5.0-next.2 h1:VaDNvsht/uOqXDC0ymiDqdw1llGZuzgAvy/SVcWsvCo= -github.com/loft-sh/agentapi/v4 v4.5.0-next.2/go.mod h1:wERN3GDmvqTcKC2NvsYMPwvfXzEd3pXxRyvDSLTxU48= -github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2 h1:CucC57Nm4cfTsktoj6UaSSh29q/adSLrDcALh377SP4= -github.com/loft-sh/apiserver v0.0.0-20250704091321-0966a6ee77b2/go.mod h1:ROoLzugsusno4FKi+Lju6VN62u9mROLi3MvLrqC3cA4= +github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7 h1:118uyjen7cgXFb3DENmkVd9/Fstlf5KQNxx81L3Qqns= +github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.6.0-alpha.2 h1:BliOniotqhPg2LqDnKh87lPVF2n0OD8k9qGLu7OAg+U= +github.com/loft-sh/agentapi/v4 v4.6.0-alpha.2/go.mod h1:wsGBAE6FALdvgZcuYw7JwkhcmFI8gn/O/zr3Gij6mqw= +github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= +github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFdJifH4BDsTlE89Zl93FEloxaWZfGcifgq8= +github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= @@ -171,42 +171,42 @@ github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 h1:S2dVYn90KE98chq 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.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= -go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= -go.etcd.io/etcd/api/v3 v3.5.21 h1:A6O2/JDb3tvHhiIz3xf9nJ7REHvtEFJJ3veW3FbCnS8= -go.etcd.io/etcd/api/v3 v3.5.21/go.mod h1:c3aH5wcvXv/9dqIw2Y810LDXJfhSYdHQ0vxmP3CCHVY= -go.etcd.io/etcd/client/pkg/v3 v3.5.21 h1:lPBu71Y7osQmzlflM9OfeIV2JlmpBjqBNlLtcoBqUTc= -go.etcd.io/etcd/client/pkg/v3 v3.5.21/go.mod h1:BgqT/IXPjK9NkeSDjbzwsHySX3yIle2+ndz28nVsjUs= -go.etcd.io/etcd/client/v2 v2.305.21 h1:eLiFfexc2mE+pTLz9WwnoEsX5JTTpLCYVivKkmVXIRA= -go.etcd.io/etcd/client/v2 v2.305.21/go.mod h1:OKkn4hlYNf43hpjEM3Ke3aRdUkhSl8xjKjSf8eCq2J8= -go.etcd.io/etcd/client/v3 v3.5.21 h1:T6b1Ow6fNjOLOtM0xSoKNQt1ASPCLWrF9XMHcH9pEyY= -go.etcd.io/etcd/client/v3 v3.5.21/go.mod h1:mFYy67IOqmbRf/kRUvsHixzo3iG+1OF2W2+jVIQRAnU= -go.etcd.io/etcd/pkg/v3 v3.5.21 h1:jUItxeKyrDuVuWhdh0HtjUANwyuzcb7/FAeUfABmQsk= -go.etcd.io/etcd/pkg/v3 v3.5.21/go.mod h1:wpZx8Egv1g4y+N7JAsqi2zoUiBIUWznLjqJbylDjWgU= -go.etcd.io/etcd/raft/v3 v3.5.21 h1:dOmE0mT55dIUsX77TKBLq+RgyumsQuYeiRQnW/ylugk= -go.etcd.io/etcd/raft/v3 v3.5.21/go.mod h1:fmcuY5R2SNkklU4+fKVBQi2biVp5vafMrWUEj4TJ4Cs= -go.etcd.io/etcd/server/v3 v3.5.21 h1:9w0/k12majtgarGmlMVuhwXRI2ob3/d1Ik3X5TKo0yU= -go.etcd.io/etcd/server/v3 v3.5.21/go.mod h1:G1mOzdwuzKT1VRL7SqRchli/qcFrtLBTAQ4lV20sXXo= +go.etcd.io/bbolt v1.4.2 h1:IrUHp260R8c+zYx/Tm8QZr04CX+qWS5PGfPdevhdm1I= +go.etcd.io/bbolt v1.4.2/go.mod h1:Is8rSHO/b4f3XigBC0lL0+4FwAQv3HXEEIgFMuKHceM= +go.etcd.io/etcd/api/v3 v3.6.4 h1:7F6N7toCKcV72QmoUKa23yYLiiljMrT4xCeBL9BmXdo= +go.etcd.io/etcd/api/v3 v3.6.4/go.mod h1:eFhhvfR8Px1P6SEuLT600v+vrhdDTdcfMzmnxVXXSbk= +go.etcd.io/etcd/client/pkg/v3 v3.6.4 h1:9HBYrjppeOfFjBjaMTRxT3R7xT0GLK8EJMVC4xg6ok0= +go.etcd.io/etcd/client/pkg/v3 v3.6.4/go.mod h1:sbdzr2cl3HzVmxNw//PH7aLGVtY4QySjQFuaCgcRFAI= +go.etcd.io/etcd/client/v3 v3.6.4 h1:YOMrCfMhRzY8NgtzUsHl8hC2EBSnuqbR3dh84Uryl7A= +go.etcd.io/etcd/client/v3 v3.6.4/go.mod h1:jaNNHCyg2FdALyKWnd7hxZXZxZANb0+KGY+YQaEMISo= +go.etcd.io/etcd/pkg/v3 v3.6.4 h1:fy8bmXIec1Q35/jRZ0KOes8vuFxbvdN0aAFqmEfJZWA= +go.etcd.io/etcd/pkg/v3 v3.6.4/go.mod h1:kKcYWP8gHuBRcteyv6MXWSN0+bVMnfgqiHueIZnKMtE= +go.etcd.io/etcd/server/v3 v3.6.4 h1:LsCA7CzjVt+8WGrdsnh6RhC0XqCsLkBly3ve5rTxMAU= +go.etcd.io/etcd/server/v3 v3.6.4/go.mod h1:aYCL/h43yiONOv0QIR82kH/2xZ7m+IWYjzRmyQfnCAg= +go.etcd.io/raft/v3 v3.6.0 h1:5NtvbDVYpnfZWcIHgGRk9DyzkBIXOi8j+DDp1IcnUWQ= +go.etcd.io/raft/v3 v3.6.0/go.mod h1:nLvLevg6+xrVtHUmVaTcTz603gQPHfh7kUAwV6YpfGo= go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 h1:PS8wXpbyaDJQ2VDHHncMe9Vct0Zn1fEjpsjrLxGJoSc= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0/go.mod h1:HDBUsEjOuRC0EzKZ1bSaRGZWUBAzo+MhAcUUORSr4D0= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 h1:x7wzEgXfnzJcHDwStJT+mxOz4etr2EcexjqhBvmoakw= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0/go.mod h1:rg+RlpR5dKwaS95IyyZqj5Wd4E13lk/msnTS0Xl9lJM= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 h1:yd02MEjBdJkG3uabWP9apV+OuWRIXGDuJEUJbOHmCFU= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0/go.mod h1:umTcuxiv1n/s/S6/c2AT/g2CQ7u5C59sHDNmfSwgz7Q= -go.opentelemetry.io/otel v1.33.0 h1:/FerN9bax5LoK51X/sI0SVYrjSE0/yUL7DpxW4K3FWw= -go.opentelemetry.io/otel v1.33.0/go.mod h1:SUUkR6csvUQl+yjReHu5uM3EtVV7MBm5FHKRlNx4I8I= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0 h1:Vh5HayB/0HHfOQA7Ctx69E/Y/DcQSMPpKANYVMQ7fBA= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0/go.mod h1:cpgtDBaqD/6ok/UG0jT15/uKjAY8mRA53diogHBg3UI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0 h1:5pojmb1U1AogINhN3SurB+zm/nIcusopeBNp42f45QM= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0/go.mod h1:57gTHJSE5S1tqg+EKsLPlTWhpHMsWlVmer+LA926XiA= -go.opentelemetry.io/otel/metric v1.33.0 h1:r+JOocAyeRVXD8lZpjdQjzMadVZp2M4WmQ+5WtEnklQ= -go.opentelemetry.io/otel/metric v1.33.0/go.mod h1:L9+Fyctbp6HFTddIxClbQkjtubW6O9QS3Ann/M82u6M= -go.opentelemetry.io/otel/sdk v1.33.0 h1:iax7M131HuAm9QkZotNHEfstof92xM+N8sr3uHXc2IM= -go.opentelemetry.io/otel/sdk v1.33.0/go.mod h1:A1Q5oi7/9XaMlIWzPSxLRWOI8nG3FnzHJNbiENQuihM= -go.opentelemetry.io/otel/trace v1.33.0 h1:cCJuF7LRjUFso9LPnEAHJDB2pqzp+hbO8eu1qqW2d/s= -go.opentelemetry.io/otel/trace v1.33.0/go.mod h1:uIcdVUZMpTAmz0tI1z04GoVSezK37CbGV4fr1f2nBck= -go.opentelemetry.io/proto/otlp v1.4.0 h1:TA9WRvW6zMwP+Ssb6fLoUIuirti1gGbP28GcKG1jgeg= -go.opentelemetry.io/proto/otlp v1.4.0/go.mod h1:PPBWZIP98o2ElSqI35IHfu7hIhSwvc5N38Jw8pXuGFY= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 h1:OeNbIYk/2C15ckl7glBlOBp5+WlYsOElzTNmiPW/x60= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0/go.mod h1:7Bept48yIeqxP2OZ9/AqIpYS94h2or0aB4FypJTc8ZM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 h1:tgJ0uaNS4c98WRNUEx5U3aDlrDOI5Rs+1Vifcw4DJ8U= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0/go.mod h1:U7HYyW0zt/a9x5J1Kjs+r1f/d4ZHnYFclhYY2+YbeoE= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= +go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= +go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= +go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= +go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4= +go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4= go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= @@ -215,6 +215,10 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= +go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= +go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -264,14 +268,12 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T 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-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk= -google.golang.org/genproto v0.0.0-20241118233622-e639e219e697/go.mod h1:JJrvXBWRZaFMxBufik1a4RpFw4HhgVtBBWQeQgUj2cc= -google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q= -google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= -google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0= -google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw= +google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb h1:p31xT4yrYrSM/G4Sn2+TNUkVhFCbG9y8itM2S6Th950= +google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:jbe3Bkdp+Dh2IrslsFCklNhweNTBgSYanP1UXhJDhKg= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb h1:TLPQVbx1GJ8VKZxz52VAxl1EBgKXXbTiU9Fc5fZeLn4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= +google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA= +google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -290,38 +292,35 @@ 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.33.1 h1:tA6Cf3bHnLIrUK4IqEgb2v++/GYUtqiu9sRVk3iBXyw= -k8s.io/api v0.33.1/go.mod h1:87esjTn9DRSRTD4fWMXamiXxJhpOIREjWOSjsW1kEHw= -k8s.io/apiextensions-apiserver v0.33.1 h1:N7ccbSlRN6I2QBcXevB73PixX2dQNIW0ZRuguEE91zI= -k8s.io/apiextensions-apiserver v0.33.1/go.mod h1:uNQ52z1A1Gu75QSa+pFK5bcXc4hq7lpOXbweZgi4dqA= -k8s.io/apimachinery v0.33.1 h1:mzqXWV8tW9Rw4VeW9rEkqvnxj59k1ezDUl20tFK/oM4= -k8s.io/apimachinery v0.33.1/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= -k8s.io/apiserver v0.33.1 h1:yLgLUPDVC6tHbNcw5uE9mo1T6ELhJj7B0geifra3Qdo= -k8s.io/apiserver v0.33.1/go.mod h1:VMbE4ArWYLO01omz+k8hFjAdYfc3GVAYPrhP2tTKccs= -k8s.io/client-go v0.33.1 h1:ZZV/Ks2g92cyxWkRRnfUDsnhNn28eFpt26aGc8KbXF4= -k8s.io/client-go v0.33.1/go.mod h1:JAsUrl1ArO7uRVFWfcj6kOomSlCv+JpvIsp6usAGefA= -k8s.io/component-base v0.33.1 h1:EoJ0xA+wr77T+G8p6T3l4efT2oNwbqBVKR71E0tBIaI= -k8s.io/component-base v0.33.1/go.mod h1:guT/w/6piyPfTgq7gfvgetyXMIh10zuXA6cRRm3rDuY= +k8s.io/api v0.34.0 h1:L+JtP2wDbEYPUeNGbeSa/5GwFtIA662EmT2YSLOkAVE= +k8s.io/api v0.34.0/go.mod h1:YzgkIzOOlhl9uwWCZNqpw6RJy9L2FK4dlJeayUoydug= +k8s.io/apiextensions-apiserver v0.34.0 h1:B3hiB32jV7BcyKcMU5fDaDxk882YrJ1KU+ZSkA9Qxoc= +k8s.io/apiextensions-apiserver v0.34.0/go.mod h1:hLI4GxE1BDBy9adJKxUxCEHBGZtGfIg98Q+JmTD7+g0= +k8s.io/apimachinery v0.34.0 h1:eR1WO5fo0HyoQZt1wdISpFDffnWOvFLOOeJ7MgIv4z0= +k8s.io/apimachinery v0.34.0/go.mod h1:/GwIlEcWuTX9zKIg2mbw0LRFIsXwrfoVxn+ef0X13lw= +k8s.io/apiserver v0.34.0 h1:Z51fw1iGMqN7uJ1kEaynf2Aec1Y774PqU+FVWCFV3Jg= +k8s.io/apiserver v0.34.0/go.mod h1:52ti5YhxAvewmmpVRqlASvaqxt0gKJxvCeW7ZrwgazQ= +k8s.io/client-go v0.34.0 h1:YoWv5r7bsBfb0Hs2jh8SOvFbKzzxyNo0nSb0zC19KZo= +k8s.io/client-go v0.34.0/go.mod h1:ozgMnEKXkRjeMvBZdV1AijMHLTh3pbACPvK7zFR+QQY= +k8s.io/component-base v0.34.0 h1:bS8Ua3zlJzapklsB1dZgjEJuJEeHjj8yTu1gxE2zQX8= +k8s.io/component-base v0.34.0/go.mod h1:RSCqUdvIjjrEm81epPcjQ/DS+49fADvGSCkIP3IC6vg= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= -k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= -k8s.io/metrics v0.33.1 h1:Ypd5ITCf+fM+LDNFk7hESXTc3vh02CQYGiwRoVRaGsM= -k8s.io/metrics v0.33.1/go.mod h1:wK8cFTK5ykBdhL0Wy4RZwLH28XM7j/Klc+NQrMRWVxg= -k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= -k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b h1:MloQ9/bdJyIu9lb1PzujOPolHyvO06MXG5TUIj2mNAA= +k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b/go.mod h1:UZ2yyWbFTpuhSbFhv24aGNOdoRdJZgsIObGBUaYVsts= +k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 h1:hwvWFiBzdWw1FhfY1FooPn3kzWuJ8tmbZBHi4zVsl1Y= +k8s.io/utils v0.0.0-20250604170112-4c0f3b243397/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 h1:jpcvIRr3GLoUoEKRkHKSmGjxb6lWwrBlJsXc+eUYQHM= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2/go.mod h1:Ve9uj1L+deCXFrPOk1LpFXqTg7LCFzFso6PA48q/XZw= -sigs.k8s.io/controller-runtime v0.20.1 h1:JbGMAG/X94NeM3xvjenVUaBjy6Ui4Ogd/J5ZtjZnHaE= -sigs.k8s.io/controller-runtime v0.20.1/go.mod h1:BrP3w158MwvB3ZbNpaAcIKkHQ7YGpYnzpoSTZ8E14WU= +sigs.k8s.io/controller-runtime v0.21.0 h1:CYfjpEuicjUecRk+KAeyYh+ouUBn4llGyDYytIGcJS8= +sigs.k8s.io/controller-runtime v0.21.0/go.mod h1:OSg14+F65eWqIu4DceX7k/+QRAbTTvxeQSNSOQpukWM= sigs.k8s.io/controller-tools v0.16.4 h1:VXmar78eDXbx1by/H09ikEq1hiq3bqInxuV3lMr3GmQ= sigs.k8s.io/controller-tools v0.16.4/go.mod h1:kcsZyYMXiOFuBhofSPtkB90zTSxVRxVVyvtKQcx3q1A= -sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= -sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= -sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE= +sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= -sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= -sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sigs.k8s.io/structured-merge-diff/v6 v6.3.0 h1:jTijUJbW353oVOd9oTlifJqOGEkUw2jB/fXCbTiQEco= +sigs.k8s.io/structured-merge-diff/v6 v6.3.0/go.mod h1:M3W8sfWvn2HhQDIbGWj3S099YozAsymCo/wrT5ohRUE= +sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= +sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 12486343..dd6b7499 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -27,9 +27,6 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserSpacesOptions{}, &management.UserVirtualClustersOptions{}, &management.UserQuotasOptions{}, - &management.DevPodWorkspaceInstanceLogOptions{}, - &management.DevPodWorkspaceInstanceTasksOptions{}, - &management.DevPodWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index fecc15c8..c19d54c0 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -51,21 +51,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ConvertVirtualClusterConfigList{}, &management.DatabaseConnector{}, &management.DatabaseConnectorList{}, - &management.DevPodEnvironmentTemplate{}, - &management.DevPodEnvironmentTemplateList{}, - &management.DevPodWorkspaceInstance{}, - &management.DevPodWorkspaceInstanceList{}, - &management.DevPodWorkspaceInstanceCancel{}, - &management.DevPodWorkspaceInstanceDownload{}, - &management.DevPodWorkspaceInstanceLog{}, - &management.DevPodWorkspaceInstanceStop{}, - &management.DevPodWorkspaceInstanceTasks{}, - &management.DevPodWorkspaceInstanceTroubleshoot{}, - &management.DevPodWorkspaceInstanceUp{}, - &management.DevPodWorkspacePreset{}, - &management.DevPodWorkspacePresetList{}, - &management.DevPodWorkspaceTemplate{}, - &management.DevPodWorkspaceTemplateList{}, &management.DirectClusterEndpointToken{}, &management.DirectClusterEndpointTokenList{}, &management.Event{}, @@ -85,8 +70,11 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.LoftUpgradeList{}, &management.NodeClaim{}, &management.NodeClaimList{}, + &management.NodeEnvironment{}, + &management.NodeEnvironmentList{}, &management.NodeProvider{}, &management.NodeProviderList{}, + &management.NodeProviderExec{}, &management.NodeType{}, &management.NodeTypeList{}, &management.OIDCClient{}, @@ -102,6 +90,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ProjectMembers{}, &management.ProjectMigrateSpaceInstance{}, &management.ProjectMigrateVirtualClusterInstance{}, + &management.ProjectNodeTypes{}, &management.ProjectTemplates{}, &management.ProjectSecret{}, &management.ProjectSecretList{}, @@ -134,6 +123,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.TeamPermissions{}, &management.TranslateVClusterResourceName{}, &management.TranslateVClusterResourceNameList{}, + &management.UsageDownload{}, + &management.UsageDownloadList{}, &management.User{}, &management.UserList{}, &management.UserAccessKeys{}, @@ -147,6 +138,10 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.VirtualClusterExternalDatabase{}, &management.VirtualClusterInstanceKubeConfig{}, &management.VirtualClusterInstanceLog{}, + &management.VirtualClusterNodeAccessKey{}, + &management.VirtualClusterInstanceShell{}, + &management.VirtualClusterInstanceSnapshot{}, + &management.VirtualClusterStandalone{}, &management.VirtualClusterSchema{}, &management.VirtualClusterSchemaList{}, &management.VirtualClusterTemplate{}, diff --git a/pkg/apis/management/types.go b/pkg/apis/management/types.go index 6167c8fb..463d3bc9 100644 --- a/pkg/apis/management/types.go +++ b/pkg/apis/management/types.go @@ -128,37 +128,3 @@ type UserQuotasOptions struct { // +optional Cluster []string `json:"cluster,omitempty"` } - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceLogOptions struct { - metav1.TypeMeta `json:",inline"` - - // TaskID is the id of the task that is running - // +optional - TaskID string `json:"taskID,omitempty"` - - // Follow the log stream of the task. Defaults to false. - // +optional - Follow bool `json:"follow,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTasksOptions struct { - metav1.TypeMeta `json:",inline"` - - // TaskID is the id of the task that is running - // +optional - TaskID string `json:"taskID,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceDownloadOptions struct { - metav1.TypeMeta `json:",inline"` - - // Path is the path to download - // +optional - Path string `json:"path,omitempty"` -} diff --git a/pkg/apis/management/v1/cluster_agentconfig_types.go b/pkg/apis/management/v1/cluster_agentconfig_types.go index a3a742a8..437dac0d 100644 --- a/pkg/apis/management/v1/cluster_agentconfig_types.go +++ b/pkg/apis/management/v1/cluster_agentconfig_types.go @@ -50,6 +50,9 @@ type ClusterAgentConfigCommon struct { // 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 { diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index e198b6d8..13c4d8fb 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -56,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"` @@ -71,6 +72,9 @@ 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"` @@ -78,6 +82,9 @@ type ConfigStatus struct { // 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"` } @@ -706,6 +713,11 @@ 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 { @@ -744,6 +756,11 @@ type CostControl struct { 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"` diff --git a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go b/pkg/apis/management/v1/devpodenvironmenttemplate_types.go deleted file mode 100644 index b22464aa..00000000 --- a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go +++ /dev/null @@ -1,56 +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"` -} - -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct{} - -func (a *DevPodEnvironmentTemplate) GetVersions() []storagev1.VersionAccessor { - var retVersions []storagev1.VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodEnvironmentTemplate) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodEnvironmentTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodEnvironmentTemplate) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodEnvironmentTemplate) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go deleted file mode 100644 index ed1a916c..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_cancel_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 DevPodWorkspaceInstanceCancel struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - // TaskID is the id of the task that should get cancelled - // +optional - TaskID string `json:"taskId,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go deleted file mode 100644 index 9bef5512..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go +++ /dev/null @@ -1,13 +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 DevPodWorkspaceInstanceDownload struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go deleted file mode 100644 index e9020e3c..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go +++ /dev/null @@ -1,13 +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 DevPodWorkspaceInstanceLog struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go deleted file mode 100644 index 6485f63b..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go +++ /dev/null @@ -1,28 +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 DevPodWorkspaceInstanceStop struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` -} - -type DevPodWorkspaceInstanceStopSpec struct { - // Options are the options to pass. - // +optional - Options string `json:"options,omitempty"` -} - -type DevPodWorkspaceInstanceStopStatus struct { - // TaskID is the id of the task that is running - // +optional - TaskID string `json:"taskId,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go deleted file mode 100644 index 60eeb8cf..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go +++ /dev/null @@ -1,35 +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 DevPodWorkspaceInstanceTasks struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` -} - -type DevPodWorkspaceInstanceTask struct { - // ID is the id of the task - ID string `json:"id,omitempty"` - - // Type is the type of the task - Type string `json:"type,omitempty"` - - // Status is the status of the task - Status string `json:"status,omitempty"` - - // Result is the result of the task - Result []byte `json:"result,omitempty"` - - // Logs is the compressed logs of the task - Logs []byte `json:"logs,omitempty"` - - // CreatedAt is the timestamp when the task was created - CreatedAt metav1.Time `json:"createdAt,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go deleted file mode 100644 index ad55ee35..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go +++ /dev/null @@ -1,45 +0,0 @@ -package v1 - -import ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type DevPodWorkspaceInstanceTroubleshoot struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - // State holds the workspaces state as given by 'devpod export' - // +optional - State string `json:"state,omitempty"` - - // Workspace holds the workspace's instance object data - // +optional - Workspace *DevPodWorkspaceInstance `json:"workspace,omitempty"` - - // Template holds the workspace instance's template used to create it. - // This is the raw template, not the rendered one. - // +optional - Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` - - // Pods is a list of pod objects that are linked to the workspace. - // +optional - Pods []corev1.Pod `json:"pods,omitempty"` - - // PVCs is a list of PVC objects that are linked to the workspace. - // +optional - PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` - - // Netmaps is a list of netmaps that are linked to the workspace. - // +optional - Netmaps []string `json:"netmaps,omitempty"` - - // Errors is a list of errors that occurred while trying to collect - // informations for troubleshooting. - // +optional - Errors []string `json:"errors,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go deleted file mode 100644 index 6335b465..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ /dev/null @@ -1,73 +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=Up,verb=create,subresource=up,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp -// +genclient:method=Stop,verb=create,subresource=stop,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop -// +genclient:method=Troubleshoot,verb=get,subresource=troubleshoot,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot -// +genclient:method=Cancel,verb=create,subresource=cancel,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information -// +k8s:openapi-gen=true -// +resource:path=devpodworkspaceinstances,rest=DevPodWorkspaceInstanceREST -// +subresource:request=DevPodWorkspaceInstanceUp,path=up,kind=DevPodWorkspaceInstanceUp,rest=DevPodWorkspaceInstanceUpREST -// +subresource:request=DevPodWorkspaceInstanceStop,path=stop,kind=DevPodWorkspaceInstanceStop,rest=DevPodWorkspaceInstanceStopREST -// +subresource:request=DevPodWorkspaceInstanceTroubleshoot,path=troubleshoot,kind=DevPodWorkspaceInstanceTroubleshoot,rest=DevPodWorkspaceInstanceTroubleshootREST -// +subresource:request=DevPodWorkspaceInstanceLog,path=log,kind=DevPodWorkspaceInstanceLog,rest=DevPodWorkspaceInstanceLogREST -// +subresource:request=DevPodWorkspaceInstanceTasks,path=tasks,kind=DevPodWorkspaceInstanceTasks,rest=DevPodWorkspaceInstanceTasksREST -// +subresource:request=DevPodWorkspaceInstanceCancel,path=cancel,kind=DevPodWorkspaceInstanceCancel,rest=DevPodWorkspaceInstanceCancelREST -// +subresource:request=DevPodWorkspaceInstanceDownload,path=download,kind=DevPodWorkspaceInstanceDownload,rest=DevPodWorkspaceInstanceDownloadREST -type DevPodWorkspaceInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` -} - -// DevPodWorkspaceInstanceSpec holds the specification -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` -} - -// DevPodWorkspaceInstanceStatus holds the status -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - - // SleepModeConfig is the sleep mode config of the workspace. This will only be shown - // in the front end. - // +optional - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` -} - -func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *DevPodWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *DevPodWorkspaceInstance) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceInstance) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceInstance) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceInstance) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go deleted file mode 100644 index 5227261e..00000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go +++ /dev/null @@ -1,32 +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 DevPodWorkspaceInstanceUp struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` -} - -type DevPodWorkspaceInstanceUpSpec struct { - // Debug includes debug logs. - // +optional - Debug bool `json:"debug,omitempty"` - - // Options are the options to pass. - // +optional - Options string `json:"options,omitempty"` -} - -type DevPodWorkspaceInstanceUpStatus struct { - // TaskID is the id of the task that is running - // +optional - TaskID string `json:"taskId,omitempty"` -} diff --git a/pkg/apis/management/v1/devpodworkspacepreset_types.go b/pkg/apis/management/v1/devpodworkspacepreset_types.go deleted file mode 100644 index 45b1f912..00000000 --- a/pkg/apis/management/v1/devpodworkspacepreset_types.go +++ /dev/null @@ -1,51 +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 - -// DevPodWorkspacePreset -// +k8s:openapi-gen=true -// +resource:path=devpodworkspacepresets,rest=DevPodWorkspacePresetREST -type DevPodWorkspacePreset struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` - Status DevPodWorkspacePresetStatus `json:"status,omitempty"` -} - -// DevPodWorkspacePresetSpec holds the specification -type DevPodWorkspacePresetSpec struct { - storagev1.DevPodWorkspacePresetSpec `json:",inline"` -} - -// DevPodWorkspacePresetSource -// +k8s:openapi-gen=true -type DevPodWorkspacePresetSource struct { - storagev1.DevPodWorkspacePresetSource `json:",inline"` -} - -func (a *DevPodWorkspacePreset) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspacePreset) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspacePreset) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} - -// DevPodWorkspacePresetStatus holds the status -type DevPodWorkspacePresetStatus struct{} diff --git a/pkg/apis/management/v1/devpodworkspacetemplate_types.go b/pkg/apis/management/v1/devpodworkspacetemplate_types.go deleted file mode 100644 index d3409096..00000000 --- a/pkg/apis/management/v1/devpodworkspacetemplate_types.go +++ /dev/null @@ -1,57 +0,0 @@ -package v1 - -import ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceTemplate holds the information -// +k8s:openapi-gen=true -// +resource:path=devpodworkspacetemplates,rest=DevPodWorkspaceTemplateREST -type DevPodWorkspaceTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` -} - -// DevPodWorkspaceTemplateSpec holds the specification -type DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` -} - -// DevPodWorkspaceTemplateStatus holds the status -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` -} - -func (a *DevPodWorkspaceTemplate) GetVersions() []storagev1.VersionAccessor { - var retVersions []storagev1.VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodWorkspaceTemplate) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceTemplate) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceTemplate) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/kiosk_types.go b/pkg/apis/management/v1/kiosk_types.go index b6d3e12c..366b5197 100644 --- a/pkg/apis/management/v1/kiosk_types.go +++ b/pkg/apis/management/v1/kiosk_types.go @@ -35,6 +35,16 @@ type KioskSpec struct { UISettings uiv1.UISettings `json:"UISettings,omitempty"` License License `json:"license,omitempty"` + + // autoscaling + NodeProviderBCMNodeWithResources NodeProviderBCMNodeWithResources `json:"nodeProviderBCMNodeWithResources,omitempty"` + NodeProviderBCMGetResourcesResult NodeProviderBCMGetResourcesResult `json:"nodeProviderBCMGetResourcesResult,omitempty"` + NodeProviderBCMTestConnectionResult NodeProviderBCMTestConnectionResult `json:"nodeProviderBCMTestConnectionResult,omitempty"` + NodeProviderCalculateCostResult NodeProviderCalculateCostResult `json:"nodeProviderCalculateCostResult,omitempty"` + NodeProviderTerraformValidateResult NodeProviderTerraformValidateResult `json:"nodeProviderTerraformValidateResult,omitempty"` + NodeProviderExecResult NodeProviderExecResult `json:"nodeProviderExecResult,omitempty"` + NodeClaimData NodeClaimData `json:"nodeClaimData,omitempty"` + NodeEnvironmentData NodeEnvironmentData `json:"nodeEnvironmentData,omitempty"` } type KioskStatus struct { diff --git a/pkg/apis/management/v1/license_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/nodeenvironment_types.go b/pkg/apis/management/v1/nodeenvironment_types.go new file mode 100644 index 00000000..dc281c48 --- /dev/null +++ b/pkg/apis/management/v1/nodeenvironment_types.go @@ -0,0 +1,33 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="VCluster",type="string",JSONPath=".spec.vClusterRef" +// +kubebuilder:printcolumn:name="NodeProvider",type="string",JSONPath=".spec.nodeProviderRef" +// +kubebuilder:subresource:status + +// NodeEnvironment holds the node environment for vCluster. +// +k8s:openapi-gen=true +// +resource:path=nodeenvironments,rest=NodeEnvironmentREST,statusRest=NodeEnvironmentStatusREST +type NodeEnvironment struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeEnvironmentSpec `json:"spec,omitempty"` + Status NodeEnvironmentStatus `json:"status,omitempty"` +} + +// NodeEnvironmentSpec defines spec of node environment. +type NodeEnvironmentSpec struct { + storagev1.NodeEnvironmentSpec `json:",inline"` +} + +type NodeEnvironmentStatus struct { + storagev1.NodeEnvironmentStatus `json:",inline"` +} diff --git a/pkg/apis/management/v1/nodeprovider_exec_types.go b/pkg/apis/management/v1/nodeprovider_exec_types.go new file mode 100644 index 00000000..710d562b --- /dev/null +++ b/pkg/apis/management/v1/nodeprovider_exec_types.go @@ -0,0 +1,120 @@ +package v1 + +import ( + corev1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type NodeProviderExec struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec NodeProviderExecSpec `json:"spec"` + Status NodeProviderExecStatus `json:"status,omitempty"` +} + +type NodeProviderExecSpec struct { + // Command is the action to perform. + // +kubebuilder:validation:Enum=bcmTestConnection;bcmGetResources + Command string `json:"command"` + Args runtime.RawExtension `json:"args,omitempty"` +} + +type NodeProviderExecStatus struct { + // Result is the output of the executed command. + Result runtime.RawExtension `json:"result,omitempty"` +} + +type NodeProviderBCMNodeWithResources struct { + Name string `json:"name"` + Resources *corev1.ResourceList `json:"resources,omitempty"` +} + +type NodeProviderBCMGetResourcesResult struct { + Nodes []NodeProviderBCMNodeWithResources `json:"nodes"` + NodeGroups []NodeProviderBCMNodeGroup `json:"nodeGroups"` +} + +type NodeProviderBCMNodeGroup struct { + Name string `json:"name"` + Nodes []string `json:"nodes"` +} + +type NodeProviderBCMTestConnectionResult struct { + Success bool `json:"success"` + Message string `json:"message"` +} + +type NodeProviderCalculateCostResult struct { + Cost int64 `json:"cost"` +} + +type NodeProviderTerraformValidateResult struct { + Success bool `json:"success"` + Output string `json:"output"` +} + +type NamespacedNameArgs struct { + Namespace string `json:"namespace"` + Name string `json:"name"` +} + +type NodeProviderExecResult struct { + Success bool `json:"success"` + Message string `json:"message"` +} +type NodeClaimData struct { + // UserData that should be used to start the node. + UserData string `json:"userData,omitempty"` + + // Terraform state of the node claim. + State []byte `json:"state,omitempty"` + + // Operations that were applied to the node claim. + Operations map[string]*Operation `json:"operations,omitempty"` +} + +type NodeEnvironmentData struct { + // Outputs of the node environment. + Outputs []byte `json:"outputs,omitempty"` + + // Terraform state of the node environment. + State []byte `json:"state,omitempty"` + + // Operations that were applied to the node environment. + Operations map[string]*Operation `json:"operations,omitempty"` +} + +const ( + OperationDrift = "drift" + OperationApply = "apply" + OperationDestroy = "destroy" +) + +type OperationPhase string + +const ( + OperationPhaseRunning OperationPhase = "Running" + OperationPhaseSuccess OperationPhase = "Success" + OperationPhaseFailed OperationPhase = "Failed" +) + +type Operation struct { + // StartTimestamp of the operation. + StartTimestamp metav1.Time `json:"startTimestamp,omitempty"` + + // EndTimestamp of the operation. + EndTimestamp metav1.Time `json:"endTimestamp,omitempty"` + + // Phase of the operation. + Phase OperationPhase `json:"phase,omitempty"` + + // Logs of the operation. + Logs []byte `json:"logs,omitempty"` + + // Error of the operation. + Error string `json:"error,omitempty"` +} diff --git a/pkg/apis/management/v1/nodeprovider_types.go b/pkg/apis/management/v1/nodeprovider_types.go index 82f6b5c8..d08c222b 100644 --- a/pkg/apis/management/v1/nodeprovider_types.go +++ b/pkg/apis/management/v1/nodeprovider_types.go @@ -13,6 +13,7 @@ import ( // 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"` diff --git a/pkg/apis/management/v1/nodetype_types.go b/pkg/apis/management/v1/nodetype_types.go index 2c739139..5216960a 100644 --- a/pkg/apis/management/v1/nodetype_types.go +++ b/pkg/apis/management/v1/nodetype_types.go @@ -2,7 +2,6 @@ package v1 import ( storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -25,14 +24,6 @@ type NodeType struct { Status NodeTypeStatus `json:"status,omitempty"` } -func (a *NodeType) GetAllProperties() []corev1.NodeSelectorRequirement { - return (&storagev1.NodeType{ - ObjectMeta: a.ObjectMeta, - Spec: a.Spec.NodeTypeSpec, - Status: a.Status.NodeTypeStatus, - }).GetAllProperties() -} - type NodeTypeSpec struct { storagev1.NodeTypeSpec `json:",inline"` } diff --git a/pkg/apis/management/v1/options.go b/pkg/apis/management/v1/options.go index 11692ea1..db97be37 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -144,43 +144,6 @@ type BackupApplyOptions struct { metav1.TypeMeta `json:",inline"` } -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceLogOptions struct { - metav1.TypeMeta `json:",inline"` - - // TaskID is the id of the task that is running - // +optional - TaskID string `json:"taskID,omitempty"` - - // Follow the log stream of the task. Defaults to false. - // +optional - Follow bool `json:"follow,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTasksOptions struct { - metav1.TypeMeta `json:",inline"` - - // TaskID is the id of the task that is running - // +optional - TaskID string `json:"taskID,omitempty"` -} - -// +k8s:conversion-gen:explicit-from=net/url.Values -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceDownloadOptions struct { - metav1.TypeMeta `json:",inline"` - - // Path is the path to download - // +optional - Path string `json:"path,omitempty"` -} - func InstallOptions(scheme *runtime.Scheme) error { return addKnownOptionsTypes(scheme) } @@ -195,9 +158,6 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &UserVirtualClustersOptions{}, &UserQuotasOptions{}, &BackupApplyOptions{}, - &DevPodWorkspaceInstanceLogOptions{}, - &DevPodWorkspaceInstanceTasksOptions{}, - &DevPodWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/v1/project_nodetypes_types.go b/pkg/apis/management/v1/project_nodetypes_types.go new file mode 100644 index 00000000..bef7ecff --- /dev/null +++ b/pkg/apis/management/v1/project_nodetypes_types.go @@ -0,0 +1,20 @@ +package v1 + +import ( + storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +subresource-request +type ProjectNodeTypes struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + // NodeProviders holds all the allowed node providers for the project + NodeProviders []storagev1.NodeProvider `json:"nodeProviders,omitempty"` + + // NodeTypes holds all the allowed node types for the project + NodeTypes []storagev1.NodeType `json:"nodeTypes,omitempty"` +} diff --git a/pkg/apis/management/v1/project_templates_types.go b/pkg/apis/management/v1/project_templates_types.go index 6ea1539d..94f92e74 100644 --- a/pkg/apis/management/v1/project_templates_types.go +++ b/pkg/apis/management/v1/project_templates_types.go @@ -22,19 +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"` - - // DevPodWorkspacePresets holds all the allowed workspace presets - DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` - - // DefaultDevPodEnvironmentTemplate - DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` } diff --git a/pkg/apis/management/v1/project_types.go b/pkg/apis/management/v1/project_types.go index 6503839e..17104112 100644 --- a/pkg/apis/management/v1/project_types.go +++ b/pkg/apis/management/v1/project_types.go @@ -26,6 +26,7 @@ import ( // +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/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/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/virtualcluster_register_types.go b/pkg/apis/management/v1/virtualcluster_register_types.go index 1c489f90..a89bfb27 100644 --- a/pkg/apis/management/v1/virtualcluster_register_types.go +++ b/pkg/apis/management/v1/virtualcluster_register_types.go @@ -25,6 +25,10 @@ type RegisterVirtualClusterSpec struct { // +optional ServiceUID string `json:"serviceUID,omitempty"` + // KubernetesVersion is the Kubernetes version of the virtual cluster. + // +optional + KubernetesVersion string `json:"kubernetesVersion,omitempty"` + // Project is the project name the virtual cluster should be in. // +optional Project string `json:"project,omitempty"` @@ -56,4 +60,8 @@ type RegisterVirtualClusterStatus struct { // Name is the actual name of the virtual cluster instance. // +optional Name string `json:"name,omitempty"` + + // Namespace is the namespace of the virtual cluster instance. + // +optional + Namespace string `json:"namespace,omitempty"` } diff --git a/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go index 1fd3701f..0fdb8164 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_externaldatabase_types.go @@ -31,4 +31,8 @@ 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_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_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 c0b87f1a..2e668c1c 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -12,6 +12,8 @@ import ( // +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 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -20,7 +22,11 @@ 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 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 47285141..4ca3f983 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -42,21 +42,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ConvertVirtualClusterConfigList{}, &DatabaseConnector{}, &DatabaseConnectorList{}, - &DevPodEnvironmentTemplate{}, - &DevPodEnvironmentTemplateList{}, - &DevPodWorkspaceInstance{}, - &DevPodWorkspaceInstanceList{}, - &DevPodWorkspaceInstanceCancel{}, - &DevPodWorkspaceInstanceDownload{}, - &DevPodWorkspaceInstanceLog{}, - &DevPodWorkspaceInstanceStop{}, - &DevPodWorkspaceInstanceTasks{}, - &DevPodWorkspaceInstanceTroubleshoot{}, - &DevPodWorkspaceInstanceUp{}, - &DevPodWorkspacePreset{}, - &DevPodWorkspacePresetList{}, - &DevPodWorkspaceTemplate{}, - &DevPodWorkspaceTemplateList{}, &DirectClusterEndpointToken{}, &DirectClusterEndpointTokenList{}, &Event{}, @@ -76,8 +61,11 @@ func addKnownTypes(scheme *runtime.Scheme) error { &LoftUpgradeList{}, &NodeClaim{}, &NodeClaimList{}, + &NodeEnvironment{}, + &NodeEnvironmentList{}, &NodeProvider{}, &NodeProviderList{}, + &NodeProviderExec{}, &NodeType{}, &NodeTypeList{}, &OIDCClient{}, @@ -93,6 +81,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ProjectMembers{}, &ProjectMigrateSpaceInstance{}, &ProjectMigrateVirtualClusterInstance{}, + &ProjectNodeTypes{}, &ProjectTemplates{}, &ProjectSecret{}, &ProjectSecretList{}, @@ -125,6 +114,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &TeamPermissions{}, &TranslateVClusterResourceName{}, &TranslateVClusterResourceNameList{}, + &UsageDownload{}, + &UsageDownloadList{}, &User{}, &UserList{}, &UserAccessKeys{}, @@ -138,6 +129,10 @@ func addKnownTypes(scheme *runtime.Scheme) error { &VirtualClusterExternalDatabase{}, &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, + &VirtualClusterNodeAccessKey{}, + &VirtualClusterInstanceShell{}, + &VirtualClusterInstanceSnapshot{}, + &VirtualClusterStandalone{}, &VirtualClusterSchema{}, &VirtualClusterSchemaList{}, &VirtualClusterTemplate{}, @@ -217,52 +212,6 @@ var ( management.ManagementConfigStorage, management.ManagementConvertVirtualClusterConfigStorage, management.ManagementDatabaseConnectorStorage, - management.ManagementDevPodEnvironmentTemplateStorage, - management.ManagementDevPodWorkspaceInstanceStorage, - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceCancelREST, - func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceCancelREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceDownloadREST, - func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceDownloadREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceLogREST, - func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceLogREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceStopREST, - func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceStopREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceTasksREST, - func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceTasksREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceTroubleshootREST, - func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceTroubleshootREST, - ), - builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceUpREST, - func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, // Register versioned resource - nil, - management.NewDevPodWorkspaceInstanceUpREST, - ), - management.ManagementDevPodWorkspacePresetStorage, - management.ManagementDevPodWorkspaceTemplateStorage, management.ManagementDirectClusterEndpointTokenStorage, management.ManagementEventStorage, management.ManagementFeatureStorage, @@ -288,12 +237,24 @@ var ( 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, @@ -350,6 +311,12 @@ var ( nil, management.NewProjectMigrateVirtualClusterInstanceREST, ), + builders.NewApiResourceWithStorage( + management.InternalProjectNodeTypesREST, + func() runtime.Object { return &ProjectNodeTypes{} }, // Register versioned resource + nil, + management.NewProjectNodeTypesREST, + ), builders.NewApiResourceWithStorage( management.InternalProjectTemplatesREST, func() runtime.Object { return &ProjectTemplates{} }, // Register versioned resource @@ -399,6 +366,7 @@ var ( management.NewTeamPermissionsREST, ), management.ManagementTranslateVClusterResourceNameStorage, + management.ManagementUsageDownloadStorage, management.ManagementUserStorage, builders.NewApiResourceWithStorage( management.InternalUserAccessKeysREST, @@ -455,6 +423,30 @@ var ( nil, management.NewVirtualClusterInstanceLogREST, ), + builders.NewApiResourceWithStorage( + management.InternalVirtualClusterNodeAccessKeyREST, + func() runtime.Object { return &VirtualClusterNodeAccessKey{} }, // Register versioned resource + nil, + management.NewVirtualClusterNodeAccessKeyREST, + ), + 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, ) @@ -642,94 +634,6 @@ type DatabaseConnectorList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceCancelList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceCancel `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceDownloadList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceDownload `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceLogList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceLog `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceStopList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceStop `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTasksList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTasks `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTroubleshootList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceUpList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceUp `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspacePresetList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspacePreset `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceTemplateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type DirectClusterEndpointTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -810,6 +714,14 @@ type NodeClaimList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type NodeEnvironmentList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeEnvironment `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type NodeProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -818,6 +730,14 @@ type NodeProviderList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type NodeProviderExecList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProviderExec `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type NodeTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -906,6 +826,14 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type ProjectNodeTypesList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ProjectNodeTypes `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type ProjectTemplatesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -1058,6 +986,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"` @@ -1146,6 +1082,38 @@ 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 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"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 2e423441..f5c122d3 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -930,386 +930,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplate)(nil), (*management.DevPodEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(a.(*DevPodEnvironmentTemplate), b.(*management.DevPodEnvironmentTemplate), scope) - }); 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((*DevPodWorkspaceInstance)(nil), (*management.DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(a.(*DevPodWorkspaceInstance), b.(*management.DevPodWorkspaceInstance), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstance)(nil), (*DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(a.(*management.DevPodWorkspaceInstance), b.(*DevPodWorkspaceInstance), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceCancel)(nil), (*management.DevPodWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(a.(*DevPodWorkspaceInstanceCancel), b.(*management.DevPodWorkspaceInstanceCancel), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceCancel)(nil), (*DevPodWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(a.(*management.DevPodWorkspaceInstanceCancel), b.(*DevPodWorkspaceInstanceCancel), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceCancelList)(nil), (*management.DevPodWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(a.(*DevPodWorkspaceInstanceCancelList), b.(*management.DevPodWorkspaceInstanceCancelList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceCancelList)(nil), (*DevPodWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(a.(*management.DevPodWorkspaceInstanceCancelList), b.(*DevPodWorkspaceInstanceCancelList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownload)(nil), (*management.DevPodWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(a.(*DevPodWorkspaceInstanceDownload), b.(*management.DevPodWorkspaceInstanceDownload), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownload)(nil), (*DevPodWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(a.(*management.DevPodWorkspaceInstanceDownload), b.(*DevPodWorkspaceInstanceDownload), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownloadList)(nil), (*management.DevPodWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(a.(*DevPodWorkspaceInstanceDownloadList), b.(*management.DevPodWorkspaceInstanceDownloadList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownloadList)(nil), (*DevPodWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(a.(*management.DevPodWorkspaceInstanceDownloadList), b.(*DevPodWorkspaceInstanceDownloadList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownloadOptions)(nil), (*management.DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(a.(*DevPodWorkspaceInstanceDownloadOptions), b.(*management.DevPodWorkspaceInstanceDownloadOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownloadOptions)(nil), (*DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(a.(*management.DevPodWorkspaceInstanceDownloadOptions), b.(*DevPodWorkspaceInstanceDownloadOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceList)(nil), (*management.DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(a.(*DevPodWorkspaceInstanceList), b.(*management.DevPodWorkspaceInstanceList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceList)(nil), (*DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(a.(*management.DevPodWorkspaceInstanceList), b.(*DevPodWorkspaceInstanceList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLog)(nil), (*management.DevPodWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(a.(*DevPodWorkspaceInstanceLog), b.(*management.DevPodWorkspaceInstanceLog), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLog)(nil), (*DevPodWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(a.(*management.DevPodWorkspaceInstanceLog), b.(*DevPodWorkspaceInstanceLog), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLogList)(nil), (*management.DevPodWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(a.(*DevPodWorkspaceInstanceLogList), b.(*management.DevPodWorkspaceInstanceLogList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLogList)(nil), (*DevPodWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(a.(*management.DevPodWorkspaceInstanceLogList), b.(*DevPodWorkspaceInstanceLogList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLogOptions)(nil), (*management.DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(a.(*DevPodWorkspaceInstanceLogOptions), b.(*management.DevPodWorkspaceInstanceLogOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLogOptions)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*management.DevPodWorkspaceInstanceLogOptions), b.(*DevPodWorkspaceInstanceLogOptions), scope) - }); err != nil { - return err - } - 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) - }); 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) - }); 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) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStatus)(nil), (*DevPodWorkspaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(a.(*management.DevPodWorkspaceInstanceStatus), b.(*DevPodWorkspaceInstanceStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStop)(nil), (*management.DevPodWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(a.(*DevPodWorkspaceInstanceStop), b.(*management.DevPodWorkspaceInstanceStop), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStop)(nil), (*DevPodWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(a.(*management.DevPodWorkspaceInstanceStop), b.(*DevPodWorkspaceInstanceStop), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopList)(nil), (*management.DevPodWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(a.(*DevPodWorkspaceInstanceStopList), b.(*management.DevPodWorkspaceInstanceStopList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopList)(nil), (*DevPodWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(a.(*management.DevPodWorkspaceInstanceStopList), b.(*DevPodWorkspaceInstanceStopList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopSpec)(nil), (*management.DevPodWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(a.(*DevPodWorkspaceInstanceStopSpec), b.(*management.DevPodWorkspaceInstanceStopSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopSpec)(nil), (*DevPodWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(a.(*management.DevPodWorkspaceInstanceStopSpec), b.(*DevPodWorkspaceInstanceStopSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopStatus)(nil), (*management.DevPodWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(a.(*DevPodWorkspaceInstanceStopStatus), b.(*management.DevPodWorkspaceInstanceStopStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopStatus)(nil), (*DevPodWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(a.(*management.DevPodWorkspaceInstanceStopStatus), b.(*DevPodWorkspaceInstanceStopStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTask)(nil), (*management.DevPodWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(a.(*DevPodWorkspaceInstanceTask), b.(*management.DevPodWorkspaceInstanceTask), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTask)(nil), (*DevPodWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(a.(*management.DevPodWorkspaceInstanceTask), b.(*DevPodWorkspaceInstanceTask), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasks)(nil), (*management.DevPodWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(a.(*DevPodWorkspaceInstanceTasks), b.(*management.DevPodWorkspaceInstanceTasks), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasks)(nil), (*DevPodWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(a.(*management.DevPodWorkspaceInstanceTasks), b.(*DevPodWorkspaceInstanceTasks), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasksList)(nil), (*management.DevPodWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(a.(*DevPodWorkspaceInstanceTasksList), b.(*management.DevPodWorkspaceInstanceTasksList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasksList)(nil), (*DevPodWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(a.(*management.DevPodWorkspaceInstanceTasksList), b.(*DevPodWorkspaceInstanceTasksList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasksOptions)(nil), (*management.DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(a.(*DevPodWorkspaceInstanceTasksOptions), b.(*management.DevPodWorkspaceInstanceTasksOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasksOptions)(nil), (*DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(a.(*management.DevPodWorkspaceInstanceTasksOptions), b.(*DevPodWorkspaceInstanceTasksOptions), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshoot)(nil), (*management.DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(a.(*DevPodWorkspaceInstanceTroubleshoot), b.(*management.DevPodWorkspaceInstanceTroubleshoot), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTroubleshoot)(nil), (*DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(a.(*management.DevPodWorkspaceInstanceTroubleshoot), b.(*DevPodWorkspaceInstanceTroubleshoot), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshootList)(nil), (*management.DevPodWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(a.(*DevPodWorkspaceInstanceTroubleshootList), b.(*management.DevPodWorkspaceInstanceTroubleshootList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTroubleshootList)(nil), (*DevPodWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(a.(*management.DevPodWorkspaceInstanceTroubleshootList), b.(*DevPodWorkspaceInstanceTroubleshootList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUp)(nil), (*management.DevPodWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(a.(*DevPodWorkspaceInstanceUp), b.(*management.DevPodWorkspaceInstanceUp), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUp)(nil), (*DevPodWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(a.(*management.DevPodWorkspaceInstanceUp), b.(*DevPodWorkspaceInstanceUp), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpList)(nil), (*management.DevPodWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(a.(*DevPodWorkspaceInstanceUpList), b.(*management.DevPodWorkspaceInstanceUpList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpList)(nil), (*DevPodWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(a.(*management.DevPodWorkspaceInstanceUpList), b.(*DevPodWorkspaceInstanceUpList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpSpec)(nil), (*management.DevPodWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(a.(*DevPodWorkspaceInstanceUpSpec), b.(*management.DevPodWorkspaceInstanceUpSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpSpec)(nil), (*DevPodWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(a.(*management.DevPodWorkspaceInstanceUpSpec), b.(*DevPodWorkspaceInstanceUpSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpStatus)(nil), (*management.DevPodWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(a.(*DevPodWorkspaceInstanceUpStatus), b.(*management.DevPodWorkspaceInstanceUpStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpStatus)(nil), (*DevPodWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(a.(*management.DevPodWorkspaceInstanceUpStatus), b.(*DevPodWorkspaceInstanceUpStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePreset)(nil), (*management.DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(a.(*DevPodWorkspacePreset), b.(*management.DevPodWorkspacePreset), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePreset)(nil), (*DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(a.(*management.DevPodWorkspacePreset), b.(*DevPodWorkspacePreset), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetList)(nil), (*management.DevPodWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(a.(*DevPodWorkspacePresetList), b.(*management.DevPodWorkspacePresetList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetList)(nil), (*DevPodWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(a.(*management.DevPodWorkspacePresetList), b.(*DevPodWorkspacePresetList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetSpec)(nil), (*management.DevPodWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(a.(*DevPodWorkspacePresetSpec), b.(*management.DevPodWorkspacePresetSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetSpec)(nil), (*DevPodWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(a.(*management.DevPodWorkspacePresetSpec), b.(*DevPodWorkspacePresetSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetStatus)(nil), (*management.DevPodWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(a.(*DevPodWorkspacePresetStatus), b.(*management.DevPodWorkspacePresetStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetStatus)(nil), (*DevPodWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(a.(*management.DevPodWorkspacePresetStatus), b.(*DevPodWorkspacePresetStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplate)(nil), (*management.DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(a.(*DevPodWorkspaceTemplate), b.(*management.DevPodWorkspaceTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplate)(nil), (*DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(a.(*management.DevPodWorkspaceTemplate), b.(*DevPodWorkspaceTemplate), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateList)(nil), (*management.DevPodWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(a.(*DevPodWorkspaceTemplateList), b.(*management.DevPodWorkspaceTemplateList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateList)(nil), (*DevPodWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(a.(*management.DevPodWorkspaceTemplateList), b.(*DevPodWorkspaceTemplateList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateSpec)(nil), (*management.DevPodWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(a.(*DevPodWorkspaceTemplateSpec), b.(*management.DevPodWorkspaceTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateSpec)(nil), (*DevPodWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(a.(*management.DevPodWorkspaceTemplateSpec), b.(*DevPodWorkspaceTemplateSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateStatus)(nil), (*management.DevPodWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(a.(*DevPodWorkspaceTemplateStatus), b.(*management.DevPodWorkspaceTemplateStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateStatus)(nil), (*DevPodWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(a.(*management.DevPodWorkspaceTemplateStatus), b.(*DevPodWorkspaceTemplateStatus), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*DirectClusterEndpointToken)(nil), (*management.DirectClusterEndpointToken)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(a.(*DirectClusterEndpointToken), b.(*management.DirectClusterEndpointToken), scope) }); err != nil { @@ -1720,6 +1340,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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 { @@ -1750,58 +1380,218 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - 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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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.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((*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 } @@ -1900,6 +1690,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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 { @@ -1940,6 +1740,16 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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 { @@ -2180,6 +1990,26 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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.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((*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 { @@ -2510,6 +2340,56 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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.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((*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.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((*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.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((*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.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((*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 { @@ -2590,6 +2470,36 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + 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.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((*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.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((*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.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((*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 { @@ -2860,6 +2770,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); 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 { @@ -3210,88 +3160,238 @@ func RegisterConversions(s *runtime.Scheme) error { }); 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((*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.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.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((*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((*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.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.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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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) + 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.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) + 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((*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((*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.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.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((*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((*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((*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 } @@ -3320,23 +3420,28 @@ func RegisterConversions(s *runtime.Scheme) error { }); 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((*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((*url.Values)(nil), (*DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceDownloadOptions), scope) + if err := s.AddGeneratedConversionFunc((*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((*url.Values)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*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), (*DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceTasksOptions), scope) + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*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 } @@ -4140,6 +4245,7 @@ func autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *Auth out.GetUserInfo = in.GetUserInfo out.GroupsPrefix = in.GroupsPrefix out.Type = in.Type + out.Resource = in.Resource return nil } @@ -4168,6 +4274,7 @@ func autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *mana out.GetUserInfo = in.GetUserInfo out.GroupsPrefix = in.GroupsPrefix out.Type = in.Type + out.Resource = in.Resource return nil } @@ -4737,6 +4844,7 @@ func autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCom return err } out.CostControl = (*management.AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint return nil } @@ -4757,6 +4865,7 @@ func autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCom return err } out.CostControl = (*AgentCostControlConfig)(unsafe.Pointer(in.CostControl)) + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint return nil } @@ -5284,8 +5393,10 @@ func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, ou out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint out.Cloud = (*management.Cloud)(unsafe.Pointer(in.Cloud)) out.CostControl = (*management.CostControl)(unsafe.Pointer(in.CostControl)) + out.PlatformDB = (*management.PlatformDB)(unsafe.Pointer(in.PlatformDB)) out.ImageBuilder = (*management.ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } @@ -5308,8 +5419,10 @@ func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.Confi out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint + out.AuthenticateVersionEndpoint = in.AuthenticateVersionEndpoint out.Cloud = (*Cloud)(unsafe.Pointer(in.Cloud)) out.CostControl = (*CostControl)(unsafe.Pointer(in.CostControl)) + out.PlatformDB = (*PlatformDB)(unsafe.Pointer(in.PlatformDB)) out.ImageBuilder = (*ImageBuilder)(unsafe.Pointer(in.ImageBuilder)) return nil } @@ -5670,998 +5783,53 @@ func Convert_v1_DatabaseConnectorList_To_management_DatabaseConnectorList(in *Da func autoConvert_management_DatabaseConnectorList_To_v1_DatabaseConnectorList(in *management.DatabaseConnectorList, out *DatabaseConnectorList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DatabaseConnector)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_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_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_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_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_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_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { - return nil -} - -// 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_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { - return nil -} - -// 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_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in, out, s) -} - -func autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in, out, s) -} - -func autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) - 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) -} - -func autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) - 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) -} - -func autoConvert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in *DevPodEnvironmentTemplateSpec, out *management.DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec - 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) -} - -func autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec - return nil -} - -// Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in, out, s) -} - -func autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return nil -} - -// Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in, out, s) -} - -func autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return nil -} - -// Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TaskID = in.TaskID - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.TaskID = in.TaskID - return nil -} - -// Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - return nil -} - -// Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - out.Path = in.Path - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - out.Path = in.Path - return nil -} - -// Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in, out, s) -} - -func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["path"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.Path, s); err != nil { - return err - } - } else { - out.Path = "" - } - return nil -} - -// Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in, out, s) -} - -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_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - return nil -} - -// Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - out.TaskID = in.TaskID - out.Follow = in.Follow - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - out.TaskID = in.TaskID - out.Follow = in.Follow - return nil -} - -// Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) -} - -func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.TaskID, s); err != nil { - return err - } - } else { - out.TaskID = "" - } - 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 - } - return nil -} - -// Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec - return nil -} - -// Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus - out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { - out.Options = in.Options - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { - out.Options = in.Options - return nil -} - -// Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { - out.TaskID = in.TaskID - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { - out.TaskID = in.TaskID - return nil -} - -// Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { - out.ID = in.ID - out.Type = in.Type - out.Status = in.Status - out.Result = *(*[]byte)(unsafe.Pointer(&in.Result)) - out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) - out.CreatedAt = in.CreatedAt - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { - out.ID = in.ID - out.Type = in.Type - out.Status = in.Status - out.Result = *(*[]byte)(unsafe.Pointer(&in.Result)) - out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) - out.CreatedAt = in.CreatedAt - return nil -} - -// Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Tasks = *(*[]management.DevPodWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.Tasks = *(*[]DevPodWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceTasks)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceTasks)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - out.TaskID = in.TaskID - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - out.TaskID = in.TaskID - return nil -} - -// Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in, out, s) -} - -func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - // WARNING: Field TypeMeta does not have json tag, skipping. - - if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { - if err := runtime.Convert_Slice_string_To_string(&values, &out.TaskID, s); err != nil { - return err - } - } else { - out.TaskID = "" - } - return nil -} - -// Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State - out.Workspace = (*management.DevPodWorkspaceInstance)(unsafe.Pointer(in.Workspace)) - out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) - out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) - out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) - out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) - out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - out.State = in.State - out.Workspace = (*DevPodWorkspaceInstance)(unsafe.Pointer(in.Workspace)) - out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) - out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) - out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) - out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) - out.Errors = *(*[]string)(unsafe.Pointer(&in.Errors)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { - out.Debug = in.Debug - out.Options = in.Options - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { - out.Debug = in.Debug - out.Options = in.Options - return nil -} - -// Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { - out.TaskID = in.TaskID - return nil -} - -// Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { - out.TaskID = in.TaskID - return nil -} - -// Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in, out, s) -} - -func autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in, out, s) -} - -func autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in, out, s) -} - -func autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in, out, s) -} - -func autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in, out, s) -} - -func autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { - out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec - return nil -} - -// Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in, out, s) -} - -func autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { - out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec - return nil -} - -// Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in, out, s) -} - -func autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { - return nil -} - -// Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in, out, s) -} - -func autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { - return nil -} - -// Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in, out, s) -} - -func autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(&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) -} - -func autoConvert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in *management.DevPodWorkspaceTemplate, out *DevPodWorkspaceTemplate, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(&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) -} - -func autoConvert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList, out *management.DevPodWorkspaceTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceTemplate)(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) -} - -func autoConvert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in *management.DevPodWorkspaceTemplateList, out *DevPodWorkspaceTemplateList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DatabaseConnector)(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_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_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in *DevPodWorkspaceTemplateSpec, out *management.DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +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_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_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_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in *management.DevPodWorkspaceTemplateSpec, out *DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +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_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_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_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in *DevPodWorkspaceTemplateStatus, out *management.DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_v1_DatabaseConnectorStatus_To_management_DatabaseConnectorStatus(in *DatabaseConnectorStatus, out *management.DatabaseConnectorStatus, s conversion.Scope) error { 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_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_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in *management.DevPodWorkspaceTemplateStatus, out *DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in *management.DatabaseConnectorStatus, out *DatabaseConnectorStatus, s conversion.Scope) error { 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_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_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { @@ -7155,6 +6323,30 @@ func autoConvert_v1_KioskSpec_To_management_KioskSpec(in *KioskSpec, out *manage 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 } @@ -7172,6 +6364,30 @@ func autoConvert_management_KioskSpec_To_v1_KioskSpec(in *management.KioskSpec, 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 } @@ -7369,6 +6585,7 @@ func Convert_management_LicenseSpec_To_v1_LicenseSpec(in *management.LicenseSpec 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 } @@ -7380,6 +6597,7 @@ func Convert_v1_LicenseStatus_To_management_LicenseStatus(in *LicenseStatus, out 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 } @@ -7664,6 +6882,30 @@ func Convert_management_NodeClaim_To_v1_NodeClaim(in *management.NodeClaim, out return autoConvert_management_NodeClaim_To_v1_NodeClaim(in, out, s) } +func autoConvert_v1_NodeClaimData_To_management_NodeClaimData(in *NodeClaimData, out *management.NodeClaimData, s conversion.Scope) error { + out.UserData = in.UserData + out.State = *(*[]byte)(unsafe.Pointer(&in.State)) + out.Operations = *(*map[string]*management.Operation)(unsafe.Pointer(&in.Operations)) + return nil +} + +// Convert_v1_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_NodeClaimData_To_v1_NodeClaimData(in *management.NodeClaimData, out *NodeClaimData, s conversion.Scope) error { + out.UserData = in.UserData + out.State = *(*[]byte)(unsafe.Pointer(&in.State)) + out.Operations = *(*map[string]*Operation)(unsafe.Pointer(&in.Operations)) + return nil +} + +// Convert_management_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_NodeClaimList_To_management_NodeClaimList(in *NodeClaimList, out *management.NodeClaimList, s conversion.Scope) error { out.ListMeta = in.ListMeta out.Items = *(*[]management.NodeClaim)(unsafe.Pointer(&in.Items)) @@ -7726,6 +6968,124 @@ func Convert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in *management.Nod return autoConvert_management_NodeClaimStatus_To_v1_NodeClaimStatus(in, out, s) } +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_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_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_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_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_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_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_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_NodeEnvironmentList_To_management_NodeEnvironmentList(in *NodeEnvironmentList, out *management.NodeEnvironmentList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeEnvironment)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_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_NodeEnvironmentList_To_v1_NodeEnvironmentList(in *management.NodeEnvironmentList, out *NodeEnvironmentList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeEnvironment)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_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_NodeEnvironmentSpec_To_management_NodeEnvironmentSpec(in *NodeEnvironmentSpec, out *management.NodeEnvironmentSpec, s conversion.Scope) error { + out.NodeEnvironmentSpec = in.NodeEnvironmentSpec + return nil +} + +// 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_NodeEnvironmentSpec_To_v1_NodeEnvironmentSpec(in *management.NodeEnvironmentSpec, out *NodeEnvironmentSpec, s conversion.Scope) error { + out.NodeEnvironmentSpec = in.NodeEnvironmentSpec + return nil +} + +// 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_NodeEnvironmentStatus_To_management_NodeEnvironmentStatus(in *NodeEnvironmentStatus, out *management.NodeEnvironmentStatus, s conversion.Scope) error { + out.NodeEnvironmentStatus = in.NodeEnvironmentStatus + return nil +} + +// 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_NodeEnvironmentStatus_To_v1_NodeEnvironmentStatus(in *management.NodeEnvironmentStatus, out *NodeEnvironmentStatus, s conversion.Scope) error { + out.NodeEnvironmentStatus = in.NodeEnvironmentStatus + return nil +} + +// 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_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_NodeProviderSpec_To_management_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { @@ -7737,25 +7097,251 @@ func autoConvert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, ou return nil } -// Convert_v1_NodeProvider_To_management_NodeProvider is an autogenerated conversion function. -func Convert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { - return autoConvert_v1_NodeProvider_To_management_NodeProvider(in, out, s) +// Convert_v1_NodeProvider_To_management_NodeProvider is an autogenerated conversion function. +func Convert_v1_NodeProvider_To_management_NodeProvider(in *NodeProvider, out *management.NodeProvider, s conversion.Scope) error { + return autoConvert_v1_NodeProvider_To_management_NodeProvider(in, out, s) +} + +func autoConvert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_NodeProvider_To_v1_NodeProvider is an autogenerated conversion function. +func Convert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { + return autoConvert_management_NodeProvider_To_v1_NodeProvider(in, out, s) +} + +func autoConvert_v1_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_NodeProviderCalculateCostResult_To_management_NodeProviderCalculateCostResult(in *NodeProviderCalculateCostResult, out *management.NodeProviderCalculateCostResult, s conversion.Scope) error { + out.Cost = in.Cost + return nil +} + +// 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_NodeProviderCalculateCostResult_To_v1_NodeProviderCalculateCostResult(in *management.NodeProviderCalculateCostResult, out *NodeProviderCalculateCostResult, s conversion.Scope) error { + out.Cost = in.Cost + return nil +} + +// 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_NodeProviderExec_To_management_NodeProviderExec(in *NodeProviderExec, out *management.NodeProviderExec, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_NodeProviderExecSpec_To_management_NodeProviderExecSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_NodeProviderExecStatus_To_management_NodeProviderExecStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_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_NodeProviderExec_To_v1_NodeProviderExec(in *management.NodeProviderExec, out *NodeProviderExec, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_NodeProviderExecSpec_To_v1_NodeProviderExecSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_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_NodeProviderExecList_To_management_NodeProviderExecList(in *NodeProviderExecList, out *management.NodeProviderExecList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.NodeProviderExec)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_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_NodeProviderExecList_To_v1_NodeProviderExecList(in *management.NodeProviderExecList, out *NodeProviderExecList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]NodeProviderExec)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_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_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_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_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_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_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_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_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_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_NodeProviderExecStatus_To_management_NodeProviderExecStatus(in *NodeProviderExecStatus, out *management.NodeProviderExecStatus, s conversion.Scope) error { + out.Result = in.Result + return nil +} + +// 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_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_NodeProviderSpec_To_v1_NodeProviderSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(&in.Status, &out.Status, s); err != nil { - return err - } +func autoConvert_management_NodeProviderExecStatus_To_v1_NodeProviderExecStatus(in *management.NodeProviderExecStatus, out *NodeProviderExecStatus, s conversion.Scope) error { + out.Result = in.Result return nil } -// Convert_management_NodeProvider_To_v1_NodeProvider is an autogenerated conversion function. -func Convert_management_NodeProvider_To_v1_NodeProvider(in *management.NodeProvider, out *NodeProvider, s conversion.Scope) error { - return autoConvert_management_NodeProvider_To_v1_NodeProvider(in, out, s) +// 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_NodeProviderList_To_management_NodeProviderList(in *NodeProviderList, out *management.NodeProviderList, s conversion.Scope) error { @@ -7820,6 +7406,28 @@ func Convert_management_NodeProviderStatus_To_v1_NodeProviderStatus(in *manageme 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_NodeTypeSpec_To_management_NodeTypeSpec(&in.Spec, &out.Spec, s); err != nil { @@ -8086,6 +7694,34 @@ func Convert_management_ObjectPermission_To_v1_ObjectPermission(in *management.O return autoConvert_management_ObjectPermission_To_v1_ObjectPermission(in, out, s) } +func autoConvert_v1_Operation_To_management_Operation(in *Operation, out *management.Operation, s conversion.Scope) error { + out.StartTimestamp = in.StartTimestamp + out.EndTimestamp = in.EndTimestamp + out.Phase = management.OperationPhase(in.Phase) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.Error = in.Error + return nil +} + +// Convert_v1_Operation_To_management_Operation is an autogenerated conversion function. +func Convert_v1_Operation_To_management_Operation(in *Operation, out *management.Operation, s conversion.Scope) error { + return autoConvert_v1_Operation_To_management_Operation(in, out, s) +} + +func autoConvert_management_Operation_To_v1_Operation(in *management.Operation, out *Operation, s conversion.Scope) error { + out.StartTimestamp = in.StartTimestamp + out.EndTimestamp = in.EndTimestamp + out.Phase = OperationPhase(in.Phase) + out.Logs = *(*[]byte)(unsafe.Pointer(&in.Logs)) + out.Error = in.Error + return nil +} + +// Convert_management_Operation_To_v1_Operation is an autogenerated conversion function. +func Convert_management_Operation_To_v1_Operation(in *management.Operation, out *Operation, s conversion.Scope) error { + return autoConvert_management_Operation_To_v1_Operation(in, out, s) +} + func autoConvert_v1_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 { @@ -8180,6 +7816,26 @@ func Convert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in *mana return autoConvert_management_OwnedAccessKeyStatus_To_v1_OwnedAccessKeyStatus(in, out, s) } +func autoConvert_v1_PlatformDB_To_management_PlatformDB(in *PlatformDB, out *management.PlatformDB, s conversion.Scope) error { + out.StorageClass = in.StorageClass + return nil +} + +// Convert_v1_PlatformDB_To_management_PlatformDB is an autogenerated conversion function. +func Convert_v1_PlatformDB_To_management_PlatformDB(in *PlatformDB, out *management.PlatformDB, s conversion.Scope) error { + return autoConvert_v1_PlatformDB_To_management_PlatformDB(in, out, s) +} + +func autoConvert_management_PlatformDB_To_v1_PlatformDB(in *management.PlatformDB, out *PlatformDB, s conversion.Scope) error { + out.StorageClass = in.StorageClass + return nil +} + +// Convert_management_PlatformDB_To_v1_PlatformDB is an autogenerated conversion function. +func Convert_management_PlatformDB_To_v1_PlatformDB(in *management.PlatformDB, out *PlatformDB, s conversion.Scope) error { + return autoConvert_management_PlatformDB_To_v1_PlatformDB(in, out, s) +} + func autoConvert_v1_PredefinedApp_To_management_PredefinedApp(in *PredefinedApp, out *management.PredefinedApp, s conversion.Scope) error { out.Chart = in.Chart out.InitialVersion = in.InitialVersion @@ -8764,6 +8420,52 @@ func Convert_management_ProjectMigrateVirtualClusterInstanceSource_To_v1_Project 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)) + 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)) + 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_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_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_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_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 @@ -8938,11 +8640,6 @@ func autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectT out.VirtualClusterTemplates = *(*[]management.VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) out.DefaultSpaceTemplate = in.DefaultSpaceTemplate out.SpaceTemplates = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) - out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate - out.DevPodWorkspaceTemplates = *(*[]management.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) - out.DevPodEnvironmentTemplates = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) - out.DevPodWorkspacePresets = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.DevPodWorkspacePresets)) - out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate return nil } @@ -8957,11 +8654,6 @@ func autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in *manageme out.VirtualClusterTemplates = *(*[]VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) out.DefaultSpaceTemplate = in.DefaultSpaceTemplate out.SpaceTemplates = *(*[]SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) - out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate - out.DevPodWorkspaceTemplates = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) - out.DevPodEnvironmentTemplates = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) - out.DevPodWorkspacePresets = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.DevPodWorkspacePresets)) - out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate return nil } @@ -9142,6 +8834,7 @@ func Convert_management_RegisterVirtualClusterList_To_v1_RegisterVirtualClusterL 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 @@ -9158,6 +8851,7 @@ func Convert_v1_RegisterVirtualClusterSpec_To_management_RegisterVirtualClusterS 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 @@ -9174,6 +8868,7 @@ func Convert_management_RegisterVirtualClusterSpec_To_v1_RegisterVirtualClusterS 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 } @@ -9184,6 +8879,7 @@ func Convert_v1_RegisterVirtualClusterStatus_To_management_RegisterVirtualCluste 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 } @@ -9371,6 +9067,7 @@ func autoConvert_v1_SelfStatus_To_management_SelfStatus(in *SelfStatus, out *man out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) out.ChatAuthToken = in.ChatAuthToken out.InstanceID = in.InstanceID + out.LoftHost = in.LoftHost out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) return nil } @@ -9391,6 +9088,7 @@ func autoConvert_management_SelfStatus_To_v1_SelfStatus(in *management.SelfStatu out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) out.ChatAuthToken = in.ChatAuthToken out.InstanceID = in.InstanceID + out.LoftHost = in.LoftHost out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) return nil } @@ -9588,6 +9286,146 @@ func Convert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in *manageme return autoConvert_management_SharedSecretStatus_To_v1_SharedSecretStatus(in, out, s) } +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_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_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_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_SnapshotRequestError_To_management_SnapshotRequestError(in *SnapshotRequestError, out *management.SnapshotRequestError, s conversion.Scope) error { + out.Message = in.Message + return nil +} + +// 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_SnapshotRequestError_To_v1_SnapshotRequestError(in *management.SnapshotRequestError, out *SnapshotRequestError, s conversion.Scope) error { + out.Message = in.Message + return nil +} + +// 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_SnapshotRequestMetadata_To_management_SnapshotRequestMetadata(in *SnapshotRequestMetadata, out *management.SnapshotRequestMetadata, s conversion.Scope) error { + out.Name = in.Name + out.CreationTimestamp = in.CreationTimestamp + return nil +} + +// 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_SnapshotRequestMetadata_To_v1_SnapshotRequestMetadata(in *management.SnapshotRequestMetadata, out *SnapshotRequestMetadata, s conversion.Scope) error { + out.Name = in.Name + out.CreationTimestamp = in.CreationTimestamp + return nil +} + +// 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_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_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_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_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_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_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_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_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_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 { @@ -9784,6 +9622,76 @@ func Convert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in *manage return autoConvert_management_SpaceTemplateStatus_To_v1_SpaceTemplateStatus(in, out, s) } +func autoConvert_v1_StandaloneEtcdPeer_To_management_StandaloneEtcdPeer(in *StandaloneEtcdPeer, out *management.StandaloneEtcdPeer, s conversion.Scope) error { + out.Name = in.Name + out.NodeClaim = in.NodeClaim + out.Address = in.Address + return nil +} + +// Convert_v1_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_StandaloneEtcdPeer_To_v1_StandaloneEtcdPeer(in *management.StandaloneEtcdPeer, out *StandaloneEtcdPeer, s conversion.Scope) error { + out.Name = in.Name + out.NodeClaim = in.NodeClaim + out.Address = in.Address + return nil +} + +// Convert_management_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_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_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_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_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_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_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_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_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_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 { @@ -10458,41 +10366,131 @@ func autoConvert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVCl 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_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec is an autogenerated conversion function. +func Convert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in *TranslateVClusterResourceNameSpec, out *management.TranslateVClusterResourceNameSpec, s conversion.Scope) error { + return autoConvert_v1_TranslateVClusterResourceNameSpec_To_management_TranslateVClusterResourceNameSpec(in, out, s) +} + +func autoConvert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in *management.TranslateVClusterResourceNameSpec, out *TranslateVClusterResourceNameSpec, s conversion.Scope) error { + out.Name = in.Name + out.Namespace = in.Namespace + out.VClusterName = in.VClusterName + return nil +} + +// Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec is an autogenerated conversion function. +func Convert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in *management.TranslateVClusterResourceNameSpec, out *TranslateVClusterResourceNameSpec, s conversion.Scope) error { + return autoConvert_management_TranslateVClusterResourceNameSpec_To_v1_TranslateVClusterResourceNameSpec(in, out, s) +} + +func autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { + out.Name = in.Name + return nil +} + +// Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus is an autogenerated conversion function. +func Convert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { + return autoConvert_v1_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in, out, s) +} + +func autoConvert_management_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { + out.Name = in.Name + 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) +} + +func autoConvert_v1_UsageDownload_To_management_UsageDownload(in *UsageDownload, out *management.UsageDownload, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_UsageDownloadSpec_To_management_UsageDownloadSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// 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_UsageDownload_To_v1_UsageDownload(in *management.UsageDownload, out *UsageDownload, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_UsageDownloadSpec_To_v1_UsageDownloadSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// 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_UsageDownloadList_To_management_UsageDownloadList(in *UsageDownloadList, out *management.UsageDownloadList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.UsageDownload)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_UsageDownloadList_To_v1_UsageDownloadList(in *management.UsageDownloadList, out *UsageDownloadList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]UsageDownload)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_UsageDownloadSpec_To_management_UsageDownloadSpec(in *UsageDownloadSpec, out *management.UsageDownloadSpec, s conversion.Scope) error { + return nil +} + +// 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_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_UsageDownloadSpec_To_v1_UsageDownloadSpec(in *management.UsageDownloadSpec, out *UsageDownloadSpec, s conversion.Scope) error { 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_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_TranslateVClusterResourceNameStatus_To_management_TranslateVClusterResourceNameStatus(in *TranslateVClusterResourceNameStatus, out *management.TranslateVClusterResourceNameStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_v1_UsageDownloadStatus_To_management_UsageDownloadStatus(in *UsageDownloadStatus, out *management.UsageDownloadStatus, s conversion.Scope) error { 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_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_TranslateVClusterResourceNameStatus_To_v1_TranslateVClusterResourceNameStatus(in *management.TranslateVClusterResourceNameStatus, out *TranslateVClusterResourceNameStatus, s conversion.Scope) error { - out.Name = in.Name +func autoConvert_management_UsageDownloadStatus_To_v1_UsageDownloadStatus(in *management.UsageDownloadStatus, out *UsageDownloadStatus, s conversion.Scope) error { 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_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_User_To_management_User(in *User, out *management.User, s conversion.Scope) error { @@ -11133,6 +11131,7 @@ func Convert_management_VirtualClusterExternalDatabaseSpec_To_v1_VirtualClusterE 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 } @@ -11143,6 +11142,7 @@ func Convert_v1_VirtualClusterExternalDatabaseStatus_To_management_VirtualCluste 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 } @@ -11455,6 +11455,128 @@ func Convert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in *url.Values, o return autoConvert_url_Values_To_v1_VirtualClusterInstanceLogOptions(in, out, s) } +func autoConvert_v1_VirtualClusterInstanceShell_To_management_VirtualClusterInstanceShell(in *VirtualClusterInstanceShell, out *management.VirtualClusterInstanceShell, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + 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_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_VirtualClusterInstanceShell_To_v1_VirtualClusterInstanceShell(in *management.VirtualClusterInstanceShell, out *VirtualClusterInstanceShell, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + 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_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_VirtualClusterInstanceShellList_To_management_VirtualClusterInstanceShellList(in *VirtualClusterInstanceShellList, out *management.VirtualClusterInstanceShellList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.VirtualClusterInstanceShell)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_VirtualClusterInstanceShellList_To_v1_VirtualClusterInstanceShellList(in *management.VirtualClusterInstanceShellList, out *VirtualClusterInstanceShellList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterInstanceShell)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_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_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_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_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_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_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_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_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_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_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_VirtualClusterInstanceSnapshotStatus_To_v1_VirtualClusterInstanceSnapshotStatus(in *management.VirtualClusterInstanceSnapshotStatus, out *VirtualClusterInstanceSnapshotStatus, s conversion.Scope) error { + out.SnapshotsTaken = *(*[]SnapshotTaken)(unsafe.Pointer(&in.SnapshotsTaken)) + return nil +} + +// 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_VirtualClusterInstanceSpec_To_management_VirtualClusterInstanceSpec(in *VirtualClusterInstanceSpec, out *management.VirtualClusterInstanceSpec, s conversion.Scope) error { out.VirtualClusterInstanceSpec = in.VirtualClusterInstanceSpec return nil @@ -11503,6 +11625,98 @@ func Convert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanc return autoConvert_management_VirtualClusterInstanceStatus_To_v1_VirtualClusterInstanceStatus(in, out, s) } +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_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_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_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_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_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_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_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_VirtualClusterNodeAccessKeySpec_To_management_VirtualClusterNodeAccessKeySpec(in *VirtualClusterNodeAccessKeySpec, out *management.VirtualClusterNodeAccessKeySpec, s conversion.Scope) error { + return nil +} + +// 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_VirtualClusterNodeAccessKeySpec_To_v1_VirtualClusterNodeAccessKeySpec(in *management.VirtualClusterNodeAccessKeySpec, out *VirtualClusterNodeAccessKeySpec, s conversion.Scope) error { + return nil +} + +// 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_VirtualClusterNodeAccessKeyStatus_To_management_VirtualClusterNodeAccessKeyStatus(in *VirtualClusterNodeAccessKeyStatus, out *management.VirtualClusterNodeAccessKeyStatus, s conversion.Scope) error { + out.AccessKey = in.AccessKey + return nil +} + +// 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_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(in *management.VirtualClusterNodeAccessKeyStatus, out *VirtualClusterNodeAccessKeyStatus, s conversion.Scope) error { + out.AccessKey = in.AccessKey + return nil +} + +// 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_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 @@ -11631,6 +11845,156 @@ func Convert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaSta return autoConvert_management_VirtualClusterSchemaStatus_To_v1_VirtualClusterSchemaStatus(in, out, s) } +func autoConvert_v1_VirtualClusterShellSpec_To_management_VirtualClusterShellSpec(in *VirtualClusterShellSpec, out *management.VirtualClusterShellSpec, s conversion.Scope) error { + return nil +} + +// 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_VirtualClusterShellSpec_To_v1_VirtualClusterShellSpec(in *management.VirtualClusterShellSpec, out *VirtualClusterShellSpec, s conversion.Scope) error { + return nil +} + +// 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_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_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_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_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_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_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_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_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_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_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_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_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_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 err := Convert_v1_StandalonePKI_To_management_StandalonePKI(&in.CurrentPKI, &out.CurrentPKI, s); err != nil { + return err + } + return nil +} + +// 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_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_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_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_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_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_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 { out.ObjectMeta = in.ObjectMeta if err := Convert_v1_VirtualClusterTemplateSpec_To_management_VirtualClusterTemplateSpec(&in.Spec, &out.Spec, s); err != nil { @@ -11726,3 +12090,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 8936875c..cd0cb193 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -14,6 +14,7 @@ import ( 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" ) @@ -2047,6 +2048,11 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *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) @@ -2470,7 +2476,7 @@ func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2479,18 +2485,18 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. -func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointToken. +func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(DirectClusterEndpointToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { +func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2498,13 +2504,13 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *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([]DevPodEnvironmentTemplate, len(*in)) + *out = make([]DirectClusterEndpointToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2512,18 +2518,18 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenList. +func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(DirectClusterEndpointTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { +func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2531,86 +2537,64 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { *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 { - if in == nil { - return nil + if in.Scope != nil { + in, out := &in.Scope, &out.Scope + *out = new(storagev1.AccessKeyScope) + (*in).DeepCopyInto(*out) } - out := new(DevPodEnvironmentTemplateSpec) - 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) { - *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 DirectClusterEndpointTokenSpec. +func (in *DirectClusterEndpointTokenSpec) DeepCopy() *DirectClusterEndpointTokenSpec { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(DirectClusterEndpointTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// 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(DevPodWorkspaceInstance) + out := new(DirectClusterEndpointTokenStatus) 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 *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { +func (in *Event) DeepCopyInto(out *Event) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancel. -func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { +// 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(DevPodWorkspaceInstanceCancel) + out := new(Event) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { +func (in *Event) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2618,13 +2602,13 @@ func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { +func (in *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([]DevPodWorkspaceInstanceCancel, len(*in)) + *out = make([]Event, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2632,18 +2616,18 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceIn return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancelList. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. +func (in *EventList) DeepCopy() *EventList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceCancelList) + out := new(EventList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { +func (in *EventList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2651,83 +2635,60 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { +func (in *EventSpec) DeepCopyInto(out *EventSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. -func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec. +func (in *EventSpec) DeepCopy() *EventSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownload) + out := new(EventSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { +func (in *EventStatus) DeepCopyInto(out *EventStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Event.DeepCopyInto(&out.Event) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. +func (in *EventStatus) DeepCopy() *EventStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownloadList) + out := new(EventStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { +func (in *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 DevPodWorkspaceInstanceDownloadOptions. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { +// 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(DevPodWorkspaceInstanceDownloadOptions) + out := new(Feature) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { +func (in *Feature) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2735,13 +2696,13 @@ func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Objec } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *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([]DevPodWorkspaceInstance, len(*in)) + *out = make([]Feature, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2749,18 +2710,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 FeatureList. +func (in *FeatureList) DeepCopy() *FeatureList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(FeatureList) 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 *FeatureList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2768,130 +2729,97 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { +func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLog. -func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. +func (in *FeatureSpec) DeepCopy() *FeatureSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLog) + out := new(FeatureSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { +func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceLog, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.Feature = in.Feature return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. -func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureStatus. +func (in *FeatureStatus) DeepCopy() *FeatureStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLogList) + out := new(FeatureStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { +func (in *GroupResources) DeepCopyInto(out *GroupResources) { *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogOptions. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { - 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(DevPodWorkspaceInstanceLogOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { - 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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { - *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) 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 GroupResources. +func (in *GroupResources) DeepCopy() *GroupResources { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + 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 *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) + 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 DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { +// 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(DevPodWorkspaceInstanceStatus) + 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 *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { +func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2900,18 +2828,18 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. -func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthToken. +func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStop) + out := new(IngressAuthToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { +func (in *IngressAuthToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2919,13 +2847,13 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { +func (in *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([]DevPodWorkspaceInstanceStop, len(*in)) + *out = make([]IngressAuthToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2933,18 +2861,18 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInst return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopList. -func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. +func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopList) + out := new(IngressAuthTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { +func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2952,91 +2880,59 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopSpec. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceStopSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { +func (in *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenSpec. +func (in *IngressAuthTokenSpec) DeepCopy() *IngressAuthTokenSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopStatus) + 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 *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { +func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { *out = *in - if in.Result != nil { - in, out := &in.Result, &out.Result - *out = make([]byte, len(*in)) - copy(*out, *in) - } - if in.Logs != nil { - in, out := &in.Logs, &out.Logs - *out = make([]byte, len(*in)) - copy(*out, *in) - } - in.CreatedAt.DeepCopyInto(&out.CreatedAt) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. -func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { +// 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(DevPodWorkspaceInstanceTask) + 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 *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanceTasks) { +func (in *Kiosk) DeepCopyInto(out *Kiosk) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Tasks != nil { - in, out := &in.Tasks, &out.Tasks - *out = make([]DevPodWorkspaceInstanceTask, len(*in)) - 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 DevPodWorkspaceInstanceTasks. -func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { +// 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(DevPodWorkspaceInstanceTasks) + out := new(Kiosk) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { +func (in *Kiosk) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3044,13 +2940,13 @@ func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { +func (in *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([]DevPodWorkspaceInstanceTasks, len(*in)) + *out = make([]Kiosk, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3058,18 +2954,18 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksList. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskList. +func (in *KioskList) DeepCopy() *KioskList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasksList) + out := new(KioskList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { +func (in *KioskList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3077,84 +2973,73 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { +func (in *KioskSpec) DeepCopyInto(out *KioskSpec) { *out = *in - out.TypeMeta = in.TypeMeta + 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 DevPodWorkspaceInstanceTasksOptions. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { +// 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(DevPodWorkspaceInstanceTasksOptions) + out := new(KioskSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskStatus. +func (in *KioskStatus) DeepCopy() *KioskStatus { + if in == nil { + return nil } - return nil + out := new(KioskStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { +func (in *License) DeepCopyInto(out *License) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Workspace != nil { - in, out := &in.Workspace, &out.Workspace - *out = new(DevPodWorkspaceInstance) - (*in).DeepCopyInto(*out) - } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = new(storagev1.DevPodWorkspaceTemplate) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = make([]corev1.Pod, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PVCs != nil { - in, out := &in.PVCs, &out.PVCs - *out = make([]corev1.PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Netmaps != nil { - in, out := &in.Netmaps, &out.Netmaps - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Errors != nil { - in, out := &in.Errors, &out.Errors - *out = make([]string, len(*in)) - copy(*out, *in) - } + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. +func (in *License) DeepCopy() *License { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshoot) + out := new(License) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { +func (in *License) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3162,13 +3047,13 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { +func (in *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([]DevPodWorkspaceInstanceTroubleshoot, len(*in)) + *out = make([]License, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3176,18 +3061,18 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorks return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. +func (in *LicenseList) DeepCopy() *LicenseList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshootList) + out := new(LicenseList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { +func (in *LicenseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3195,27 +3080,27 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Obje } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { +func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { *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 DevPodWorkspaceInstanceUp. -func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { +// 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(DevPodWorkspaceInstanceUp) + out := new(LicenseRequest) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { +func (in *LicenseRequest) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3223,13 +3108,13 @@ func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { +func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceUp, len(*in)) + *out = make([]LicenseRequest, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3237,18 +3122,18 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstan return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. -func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestList. +func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpList) + out := new(LicenseRequestList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { +func (in *LicenseRequestList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3256,59 +3141,114 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { +func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { + *out = *in + in.Input.DeepCopyInto(&out.Input) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. +func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { + if in == nil { + return nil + } + out := new(LicenseRequestSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { + *out = *in + if in.Output != nil { + in, out := &in.Output, &out.Output + *out = new(licenseapi.GenericRequestOutput) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestStatus. +func (in *LicenseRequestStatus) DeepCopy() *LicenseRequestStatus { + if in == nil { + return nil + } + out := new(LicenseRequestStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { +// 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(DevPodWorkspaceInstanceUpSpec) + 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 *DevPodWorkspaceInstanceUpStatus) DeepCopyInto(out *DevPodWorkspaceInstanceUpStatus) { +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 DevPodWorkspaceInstanceUpStatus. -func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { +// 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(DevPodWorkspaceInstanceUpStatus) + 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 *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { +func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { *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 DevPodWorkspacePreset. -func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. +func (in *LicenseToken) DeepCopy() *LicenseToken { if in == nil { return nil } - out := new(DevPodWorkspacePreset) + out := new(LicenseToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { +func (in *LicenseToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3316,13 +3256,13 @@ func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { +func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspacePreset, len(*in)) + *out = make([]LicenseToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3330,18 +3270,18 @@ func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. -func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. +func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { if in == nil { return nil } - out := new(DevPodWorkspacePresetList) + out := new(LicenseTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { +func (in *LicenseTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3349,77 +3289,64 @@ func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { +func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { *out = *in - out.DevPodWorkspacePresetSource = in.DevPodWorkspacePresetSource return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. -func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. +func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { if in == nil { return nil } - out := new(DevPodWorkspacePresetSource) + out := new(LicenseTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { +func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { *out = *in - in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. -func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { - if in == nil { - return nil + if in.Token != nil { + in, out := &in.Token, &out.Token + *out = new(licenseapi.InstanceTokenAuth) + **out = **in } - out := new(DevPodWorkspacePresetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { - *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. -func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. +func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { if in == nil { return nil } - out := new(DevPodWorkspacePresetStatus) + out := new(LicenseTokenStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +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 DevPodWorkspaceTemplate. -func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { +// 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(DevPodWorkspaceTemplate) + out := new(LoftUpgrade) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { +func (in *LoftUpgrade) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3427,13 +3354,13 @@ func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { +func (in *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([]DevPodWorkspaceTemplate, len(*in)) + *out = make([]LoftUpgrade, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3441,18 +3368,18 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. +func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(LoftUpgradeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { +func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3460,173 +3387,159 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { *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 LoftUpgradeSpec. +func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + 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 *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// 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(DevPodWorkspaceTemplateStatus) + 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 *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { +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 DirectClusterEndpointToken. -func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { +// 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(DirectClusterEndpointToken) + out := new(MaintenanceWindow) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenList) DeepCopyInto(out *DirectClusterEndpointTokenList) { +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([]DirectClusterEndpointToken, 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 DirectClusterEndpointTokenList. -func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { +// 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(DirectClusterEndpointTokenList) + out := new(ManagementRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { +func (in *NamespacedNameArgs) DeepCopyInto(out *NamespacedNameArgs) { *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 NamespacedNameArgs. +func (in *NamespacedNameArgs) DeepCopy() *NamespacedNameArgs { if in == nil { return nil } - out := new(DirectClusterEndpointTokenSpec) + 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 *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { +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 DirectClusterEndpointTokenStatus. -func (in *DirectClusterEndpointTokenStatus) DeepCopy() *DirectClusterEndpointTokenStatus { +// 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(DirectClusterEndpointTokenStatus) + out := new(NodeClaim) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Event) DeepCopyInto(out *Event) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) +// 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 *NodeClaimData) DeepCopyInto(out *NodeClaimData) { + *out = *in + if in.State != nil { + in, out := &in.State, &out.State + *out = make([]byte, len(*in)) + copy(*out, *in) + } + if in.Operations != nil { + in, out := &in.Operations, &out.Operations + *out = make(map[string]*Operation, len(*in)) + for key, val := range *in { + var outVal *Operation + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(Operation) + (*in).DeepCopyInto(*out) + } + (*out)[key] = outVal + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Event. -func (in *Event) DeepCopy() *Event { +// 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(Event) + out := new(NodeClaimData) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Event) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventList) DeepCopyInto(out *EventList) { +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([]Event, len(*in)) + *out = make([]NodeClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3634,18 +3547,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 NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { if in == nil { return nil } - out := new(EventList) + out := new(NodeClaimList) 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 *NodeClaimList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3653,60 +3566,61 @@ 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 *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) 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 NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(EventSpec) + 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 *EventStatus) DeepCopyInto(out *EventStatus) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - in.Event.DeepCopyInto(&out.Event) + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) 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 NodeClaimStatus. +func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { if in == nil { return nil } - out := new(EventStatus) + 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 *Feature) DeepCopyInto(out *Feature) { +func (in *NodeEnvironment) DeepCopyInto(out *NodeEnvironment) { *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 Feature. -func (in *Feature) DeepCopy() *Feature { +// 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(Feature) + out := new(NodeEnvironment) 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 *NodeEnvironment) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3714,13 +3628,54 @@ 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 *NodeEnvironmentData) DeepCopyInto(out *NodeEnvironmentData) { + *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 NodeEnvironmentData. +func (in *NodeEnvironmentData) DeepCopy() *NodeEnvironmentData { + if in == nil { + return nil + } + 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 *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([]Feature, len(*in)) + *out = make([]NodeEnvironment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3728,18 +3683,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 NodeEnvironmentList. +func (in *NodeEnvironmentList) DeepCopy() *NodeEnvironmentList { if in == nil { return nil } - out := new(FeatureList) + out := new(NodeEnvironmentList) 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 *NodeEnvironmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3747,210 +3702,199 @@ 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 *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { *out = *in + in.NodeEnvironmentSpec.DeepCopyInto(&out.NodeEnvironmentSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. -func (in *FeatureSpec) DeepCopy() *FeatureSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { if in == nil { return nil } - out := new(FeatureSpec) + 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 *FeatureStatus) DeepCopyInto(out *FeatureStatus) { +func (in *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *out = *in - out.Feature = in.Feature + in.NodeEnvironmentStatus.DeepCopyInto(&out.NodeEnvironmentStatus) 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 NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(FeatureStatus) + 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 *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProvider. +func (in *NodeProvider) DeepCopy() *NodeProvider { if in == nil { return nil } - out := new(GroupResources) + 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 *ImageBuilder) DeepCopyInto(out *ImageBuilder) { +func (in *NodeProviderBCMGetResourcesResult) DeepCopyInto(out *NodeProviderBCMGetResourcesResult) { *out = *in - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = new(bool) - **out = **in - } - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]NodeProviderBCMNodeWithResources, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = new(corev1.ResourceRequirements) - (*in).DeepCopyInto(*out) + if in.NodeGroups != nil { + in, out := &in.NodeGroups, &out.NodeGroups + *out = make([]NodeProviderBCMNodeGroup, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder. -func (in *ImageBuilder) DeepCopy() *ImageBuilder { +// 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(ImageBuilder) + out := new(NodeProviderBCMGetResourcesResult) 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 *NodeProviderBCMNodeGroup) DeepCopyInto(out *NodeProviderBCMNodeGroup) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) + } 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 NodeProviderBCMNodeGroup. +func (in *NodeProviderBCMNodeGroup) DeepCopy() *NodeProviderBCMNodeGroup { if in == nil { return nil } - out := new(IngressAuthToken) + out := new(NodeProviderBCMNodeGroup) 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 *NodeProviderBCMNodeWithResources) DeepCopyInto(out *NodeProviderBCMNodeWithResources) { *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]) + 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 IngressAuthTokenList. -func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { +// 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(IngressAuthTokenList) + out := new(NodeProviderBCMNodeWithResources) 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 *NodeProviderBCMTestConnectionResult) DeepCopyInto(out *NodeProviderBCMTestConnectionResult) { *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 NodeProviderBCMTestConnectionResult. +func (in *NodeProviderBCMTestConnectionResult) DeepCopy() *NodeProviderBCMTestConnectionResult { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + 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 *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +func (in *NodeProviderCalculateCostResult) DeepCopyInto(out *NodeProviderCalculateCostResult) { *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 NodeProviderCalculateCostResult. +func (in *NodeProviderCalculateCostResult) DeepCopy() *NodeProviderCalculateCostResult { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + 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 *Kiosk) DeepCopyInto(out *Kiosk) { +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 Kiosk. -func (in *Kiosk) DeepCopy() *Kiosk { +// 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(Kiosk) + out := new(NodeProviderExec) 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 *NodeProviderExec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3958,13 +3902,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 *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([]Kiosk, len(*in)) + *out = make([]NodeProviderExec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3972,18 +3916,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 NodeProviderExecList. +func (in *NodeProviderExecList) DeepCopy() *NodeProviderExecList { if in == nil { return nil } - out := new(KioskList) + out := new(NodeProviderExecList) 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 *NodeProviderExecList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3991,140 +3935,63 @@ 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 *NodeProviderExecResult) DeepCopyInto(out *NodeProviderExecResult) { *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 NodeProviderExecResult. +func (in *NodeProviderExecResult) DeepCopy() *NodeProviderExecResult { if in == nil { return nil } - out := new(KioskSpec) + 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 *KioskStatus) DeepCopyInto(out *KioskStatus) { +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 KioskStatus. -func (in *KioskStatus) DeepCopy() *KioskStatus { +// 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(KioskStatus) + 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 *License) DeepCopyInto(out *License) { +func (in *NodeProviderExecStatus) DeepCopyInto(out *NodeProviderExecStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) + in.Result.DeepCopyInto(&out.Result) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. -func (in *License) DeepCopy() *License { - if in == nil { - return nil - } - out := new(License) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *License) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseList) DeepCopyInto(out *LicenseList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]License, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. -func (in *LicenseList) DeepCopy() *LicenseList { - if in == nil { - return nil - } - out := new(LicenseList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequest. -func (in *LicenseRequest) DeepCopy() *LicenseRequest { +// 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(LicenseRequest) + out := new(NodeProviderExecStatus) 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 *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([]LicenseRequest, len(*in)) + *out = make([]NodeProvider, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4132,18 +3999,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 NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { if in == nil { return nil } - out := new(LicenseRequestList) + out := new(NodeProviderList) 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 *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4151,109 +4018,77 @@ func (in *LicenseRequestList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { - *out = *in - in.Input.DeepCopyInto(&out.Input) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { - if in == nil { - return nil - } - out := new(LicenseRequestSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { +func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } + in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) 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 NodeProviderSpec. +func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { if in == nil { return nil } - out := new(LicenseRequestStatus) + 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 *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +func (in *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) 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 NodeProviderStatus. +func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { if in == nil { return nil } - out := new(LicenseSpec) + 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 *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeProviderTerraformValidateResult) DeepCopyInto(out *NodeProviderTerraformValidateResult) { *out = *in - if in.License != nil { - in, out := &in.License, &out.License - *out = new(licenseapi.License) - (*in).DeepCopyInto(*out) - } - if in.ResourceUsage != nil { - in, out := &in.ResourceUsage, &out.ResourceUsage - *out = make(map[string]licenseapi.ResourceCount, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus. -func (in *LicenseStatus) DeepCopy() *LicenseStatus { +// 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(LicenseStatus) + 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 *LicenseToken) DeepCopyInto(out *LicenseToken) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *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 NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeType) 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 *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4261,13 +4096,13 @@ func (in *LicenseToken) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { +func (in *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([]LicenseToken, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4275,18 +4110,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 NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(LicenseTokenList) + out := new(NodeTypeList) 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 *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4294,64 +4129,84 @@ 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 *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) 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 NodeTypeSpec. +func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { if in == nil { return nil } - out := new(LicenseTokenSpec) + 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 *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) + return +} + +// 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(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 *OIDC) DeepCopyInto(out *OIDC) { + *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 LicenseTokenStatus. -func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { +// 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(LicenseTokenStatus) + 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 *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { +func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { *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 LoftUpgrade. -func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { +// 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(LoftUpgrade) + out := new(OIDCClient) 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 *OIDCClient) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4359,13 +4214,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 *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([]LoftUpgrade, len(*in)) + *out = make([]OIDCClient, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4373,18 +4228,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 OIDCClientList. +func (in *OIDCClientList) DeepCopy() *OIDCClientList { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(OIDCClientList) 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 *OIDCClientList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4392,73 +4247,105 @@ 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 *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { *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 LoftUpgradeSpec. -func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { +// 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(LoftUpgradeSpec) + 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 *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { +func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { *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 OIDCClientStatus. +func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { if in == nil { return nil } - out := new(LoftUpgradeStatus) + 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 *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { +func (in *ObjectName) DeepCopyInto(out *ObjectName) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindow. -func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow { +// 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(MaintenanceWindow) + 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 *ManagementRole) DeepCopyInto(out *ManagementRole) { +func (in *ObjectPermission) DeepCopyInto(out *ObjectPermission) { *out = *in out.ObjectName = in.ObjectName - out.AssignedVia = in.AssignedVia + 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 ManagementRole. -func (in *ManagementRole) DeepCopy() *ManagementRole { +// 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(ManagementRole) + out := new(ObjectPermission) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeClaim) DeepCopyInto(out *NodeClaim) { +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 +} + +// 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 *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4467,18 +4354,18 @@ func (in *NodeClaim) DeepCopyInto(out *NodeClaim) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaim. -func (in *NodeClaim) DeepCopy() *NodeClaim { +// 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(NodeClaim) + out := new(OwnedAccessKey) 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 { +func (in *OwnedAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4486,13 +4373,13 @@ func (in *NodeClaim) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { +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([]NodeClaim, len(*in)) + *out = make([]OwnedAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4500,18 +4387,18 @@ func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimList. -func (in *NodeClaimList) DeepCopy() *NodeClaimList { +// 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(NodeClaimList) + out := new(OwnedAccessKeyList) 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 { +func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4519,136 +4406,106 @@ func (in *NodeClaimList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { +func (in *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { *out = *in - in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimSpec. -func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { +// 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(NodeClaimSpec) + 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 *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { +func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { *out = *in - in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimStatus. -func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { +// 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(NodeClaimStatus) + out := new(OwnedAccessKeyStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { +func (in *PlatformDB) DeepCopyInto(out *PlatformDB) { *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 { +// 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(NodeProvider) + out := new(PlatformDB) 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 *NodeProviderList) DeepCopyInto(out *NodeProviderList) { +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([]NodeProvider, 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 NodeProviderList. -func (in *NodeProviderList) DeepCopy() *NodeProviderList { +// 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(NodeProviderList) + out := new(PredefinedApp) 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 *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { +func (in *Project) DeepCopyInto(out *Project) { *out = *in - in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) + 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 NodeProviderSpec. -func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { +// 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(NodeProviderSpec) + out := new(Project) 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 - in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderStatus. -func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { - if in == nil { - return nil +// 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 } - out := new(NodeProviderStatus) - 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 *NodeType) DeepCopyInto(out *NodeType) { +func (in *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4657,18 +4514,18 @@ func (in *NodeType) DeepCopyInto(out *NodeType) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. -func (in *NodeType) DeepCopy() *NodeType { +// 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(NodeType) + out := new(ProjectChartInfo) 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 { +func (in *ProjectChartInfo) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4676,13 +4533,13 @@ func (in *NodeType) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { +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([]NodeType, len(*in)) + *out = make([]ProjectChartInfo, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4690,18 +4547,18 @@ func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeList. -func (in *NodeTypeList) DeepCopy() *NodeTypeList { +// 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(NodeTypeList) + out := new(ProjectChartInfoList) 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 { +func (in *ProjectChartInfoList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4709,45 +4566,47 @@ func (in *NodeTypeList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { +func (in *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { *out = *in - in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. -func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { +// 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(NodeTypeSpec) + 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 *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { +func (in *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { *out = *in - in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) + in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. -func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { +// 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(NodeTypeStatus) + 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 *OIDC) DeepCopyInto(out *OIDC) { +func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { *out = *in - if in.Clients != nil { - in, out := &in.Clients, &out.Clients - *out = make([]OIDCClientSpec, len(*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]) } @@ -4755,38 +4614,18 @@ func (in *OIDC) DeepCopyInto(out *OIDC) { return } -// 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(OIDC) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClient) DeepCopyInto(out *OIDCClient) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClient. -func (in *OIDCClient) DeepCopy() *OIDCClient { +// 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(OIDCClient) + out := new(ProjectCharts) 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 *ProjectCharts) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4794,13 +4633,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 *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([]OIDCClient, len(*in)) + *out = make([]ProjectCharts, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4808,18 +4647,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 ProjectChartsList. +func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { if in == nil { return nil } - out := new(OIDCClientList) + out := new(ProjectChartsList) 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 *ProjectChartsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4827,102 +4666,92 @@ 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 *ProjectClusters) DeepCopyInto(out *ProjectClusters) { *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 { - if in == nil { - return nil + 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]) + } } - out := new(OIDCClientSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { - *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientStatus. -func (in *OIDCClientStatus) DeepCopy() *OIDCClientStatus { +// 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(OIDCClientStatus) + out := new(ProjectClusters) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ObjectName) DeepCopyInto(out *ObjectName) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectName. -func (in *ObjectName) DeepCopy() *ObjectName { - if in == nil { - return nil +// 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 } - out := new(ObjectName) - 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 *ObjectPermission) DeepCopyInto(out *ObjectPermission) { +func (in *ProjectClustersList) DeepCopyInto(out *ProjectClustersList) { *out = *in - out.ObjectName = in.ObjectName - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *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([]ProjectClusters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectPermission. -func (in *ObjectPermission) DeepCopy() *ObjectPermission { +// 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(ObjectPermission) + out := new(ProjectClustersList) 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 + } + return nil +} + // 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 *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 OwnedAccessKey. -func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { +// 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(OwnedAccessKey) + out := new(ProjectImportSpace) 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 *ProjectImportSpace) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4930,13 +4759,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 *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([]OwnedAccessKey, len(*in)) + *out = make([]ProjectImportSpace, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4944,18 +4773,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 ProjectImportSpaceList. +func (in *ProjectImportSpaceList) DeepCopy() *ProjectImportSpaceList { if in == nil { return nil } - out := new(OwnedAccessKeyList) + out := new(ProjectImportSpaceList) 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 *ProjectImportSpaceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4963,110 +4792,101 @@ 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 *ProjectImportSpaceSource) DeepCopyInto(out *ProjectImportSpaceSource) { *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 { +// 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(OwnedAccessKeySpec) + 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 *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { +func (in *ProjectList) DeepCopyInto(out *ProjectList) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + 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 OwnedAccessKeyStatus. -func (in *OwnedAccessKeyStatus) DeepCopy() *OwnedAccessKeyStatus { +// 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(OwnedAccessKeyStatus) + 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 *PredefinedApp) DeepCopyInto(out *PredefinedApp) { - *out = *in - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredefinedApp. -func (in *PredefinedApp) DeepCopy() *PredefinedApp { - 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(PredefinedApp) - 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 *Project) DeepCopyInto(out *Project) { +func (in *ProjectMember) DeepCopyInto(out *ProjectMember) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Info = in.Info 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 ProjectMember. +func (in *ProjectMember) DeepCopy() *ProjectMember { if in == nil { return nil } - out := new(Project) + out := new(ProjectMember) 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 *ProjectMembers) DeepCopyInto(out *ProjectMembers) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.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 ProjectChartInfo. -func (in *ProjectChartInfo) DeepCopy() *ProjectChartInfo { +// 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(ProjectChartInfo) + out := new(ProjectMembers) 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 *ProjectMembers) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5074,13 +4894,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 *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([]ProjectChartInfo, len(*in)) + *out = make([]ProjectMembers, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5088,18 +4908,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 ProjectMembersList. +func (in *ProjectMembersList) DeepCopy() *ProjectMembersList { if in == nil { return nil } - out := new(ProjectChartInfoList) + out := new(ProjectMembersList) 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 *ProjectMembersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5107,47 +4927,59 @@ 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 *ProjectMembership) DeepCopyInto(out *ProjectMembership) { *out = *in - in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) + 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 ProjectChartInfoSpec. -func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { +// 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(ProjectChartInfoSpec) + 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 *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { +func (in *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { *out = *in - in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) + 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 ProjectChartInfoStatus. -func (in *ProjectChartInfoStatus) DeepCopy() *ProjectChartInfoStatus { +// 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(ProjectChartInfoStatus) + 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 *ProjectCharts) DeepCopyInto(out *ProjectCharts) { +func (in *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpaceInstanceList) { *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)) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectMigrateSpaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5155,18 +4987,18 @@ 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 ProjectMigrateSpaceInstanceList. +func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { if in == nil { return nil } - out := new(ProjectCharts) + out := new(ProjectMigrateSpaceInstanceList) 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 *ProjectMigrateSpaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5174,65 +5006,42 @@ 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 *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { *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 ProjectChartsList. -func (in *ProjectChartsList) DeepCopy() *ProjectChartsList { +// 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(ProjectChartsList) + out := new(ProjectMigrateSpaceInstanceSource) 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 *ProjectClusters) DeepCopyInto(out *ProjectClusters) { +func (in *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { *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]) - } - } + out.SourceVirtualClusterInstance = in.SourceVirtualClusterInstance 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 ProjectMigrateVirtualClusterInstance. +func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { if in == nil { return nil } - out := new(ProjectClusters) + out := new(ProjectMigrateVirtualClusterInstance) 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 *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5240,13 +5049,13 @@ 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 *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([]ProjectClusters, len(*in)) + *out = make([]ProjectMigrateVirtualClusterInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5254,18 +5063,18 @@ func (in *ProjectClustersList) DeepCopyInto(out *ProjectClustersList) { 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 ProjectMigrateVirtualClusterInstanceList. +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopy() *ProjectMigrateVirtualClusterInstanceList { if in == nil { return nil } - out := new(ProjectClustersList) + out := new(ProjectMigrateVirtualClusterInstanceList) 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 { +func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5273,40 +5082,36 @@ func (in *ProjectClustersList) DeepCopyObject() runtime.Object { } // 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 *ProjectMigrateVirtualClusterInstanceSource) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceSource) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpace = in.SourceSpace 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 ProjectMigrateVirtualClusterInstanceSource. +func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrateVirtualClusterInstanceSource { if in == nil { return nil } - out := new(ProjectImportSpace) + out := new(ProjectMigrateVirtualClusterInstanceSource) 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // 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 *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([]ProjectImportSpace, 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]) } @@ -5314,18 +5119,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 ProjectNodeTypes. +func (in *ProjectNodeTypes) DeepCopy() *ProjectNodeTypes { if in == nil { return nil } - out := new(ProjectImportSpaceList) + out := new(ProjectNodeTypes) 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 *ProjectNodeTypes) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5333,29 +5138,13 @@ 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) { - *out = *in - return -} - -// 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(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 *ProjectList) DeepCopyInto(out *ProjectList) { +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([]Project, len(*in)) + *out = make([]ProjectNodeTypes, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5363,18 +5152,18 @@ func (in *ProjectList) DeepCopyInto(out *ProjectList) { 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 ProjectNodeTypesList. +func (in *ProjectNodeTypesList) DeepCopy() *ProjectNodeTypesList { if in == nil { return nil } - out := new(ProjectList) + out := new(ProjectNodeTypesList) 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 { +func (in *ProjectNodeTypesList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5382,52 +5171,44 @@ func (in *ProjectList) DeepCopyObject() runtime.Object { } // 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 *ProjectRole) DeepCopyInto(out *ProjectRole) { *out = *in - out.Info = in.Info + out.ObjectName = in.ObjectName 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 ProjectRole. +func (in *ProjectRole) DeepCopy() *ProjectRole { if in == nil { return nil } - out := new(ProjectMember) + 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 *ProjectMembers) DeepCopyInto(out *ProjectMembers) { +func (in *ProjectSecret) DeepCopyInto(out *ProjectSecret) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Teams != nil { - in, out := &in.Teams, &out.Teams - *out = make([]ProjectMember, len(*in)) - copy(*out, *in) - } - if in.Users != nil { - in, out := &in.Users, &out.Users - *out = make([]ProjectMember, len(*in)) - copy(*out, *in) - } + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMembers. -func (in *ProjectMembers) DeepCopy() *ProjectMembers { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSecret. +func (in *ProjectSecret) DeepCopy() *ProjectSecret { if in == nil { return nil } - out := new(ProjectMembers) + out := new(ProjectSecret) 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 *ProjectSecret) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5435,13 +5216,13 @@ 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 *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([]ProjectMembers, len(*in)) + *out = make([]ProjectSecret, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5449,18 +5230,18 @@ func (in *ProjectMembersList) DeepCopyInto(out *ProjectMembersList) { 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 ProjectSecretList. +func (in *ProjectSecretList) DeepCopy() *ProjectSecretList { if in == nil { return nil } - out := new(ProjectMembersList) + out := new(ProjectSecretList) 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 *ProjectSecretList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5468,121 +5249,139 @@ 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 *ProjectMembership) DeepCopyInto(out *ProjectMembership) { +func (in *ProjectSecretSpec) DeepCopyInto(out *ProjectSecretSpec) { *out = *in - out.ObjectName = in.ObjectName - out.Role = in.Role - out.AssignedVia = in.AssignedVia + 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 ProjectMembership. -func (in *ProjectMembership) DeepCopy() *ProjectMembership { +// 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(ProjectMembership) + 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 *ProjectMigrateSpaceInstance) DeepCopyInto(out *ProjectMigrateSpaceInstance) { +func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.SourceSpaceInstance = in.SourceSpaceInstance + 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 ProjectMigrateSpaceInstance. -func (in *ProjectMigrateSpaceInstance) DeepCopy() *ProjectMigrateSpaceInstance { +// 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(ProjectMigrateSpaceInstance) + out := new(ProjectSecretStatus) 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 *ProjectMigrateSpaceInstanceList) DeepCopyInto(out *ProjectMigrateSpaceInstanceList) { +func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectMigrateSpaceInstance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectMigrateSpaceInstanceList. -func (in *ProjectMigrateSpaceInstanceList) DeepCopy() *ProjectMigrateSpaceInstanceList { +// 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(ProjectMigrateSpaceInstanceList) + out := new(ProjectSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateSpaceInstanceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateSpaceInstanceSource) DeepCopyInto(out *ProjectMigrateSpaceInstanceSource) { +func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus) { *out = *in + in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) 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 ProjectStatus. +func (in *ProjectStatus) DeepCopy() *ProjectStatus { if in == nil { return nil } - out := new(ProjectMigrateSpaceInstanceSource) + 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 *ProjectMigrateVirtualClusterInstance) DeepCopyInto(out *ProjectMigrateVirtualClusterInstance) { +func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { *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 ProjectMigrateVirtualClusterInstance. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopy() *ProjectMigrateVirtualClusterInstance { + 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 ProjectTemplates. +func (in *ProjectTemplates) DeepCopy() *ProjectTemplates { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstance) + out := new(ProjectTemplates) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object { +func (in *ProjectTemplates) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5590,13 +5389,13 @@ func (in *ProjectMigrateVirtualClusterInstance) DeepCopyObject() runtime.Object } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectMigrateVirtualClusterInstanceList) DeepCopyInto(out *ProjectMigrateVirtualClusterInstanceList) { +func (in *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([]ProjectMigrateVirtualClusterInstance, len(*in)) + *out = make([]ProjectTemplates, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5604,18 +5403,376 @@ 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 ProjectTemplatesList. +func (in *ProjectTemplatesList) DeepCopy() *ProjectTemplatesList { + if in == nil { + return nil + } + out := new(ProjectTemplatesList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectTemplatesList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectToken) DeepCopyInto(out *RedirectToken) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectToken. +func (in *RedirectToken) DeepCopy() *RedirectToken { + if in == nil { + return nil + } + out := new(RedirectToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RedirectToken) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectTokenClaims) DeepCopyInto(out *RedirectTokenClaims) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenClaims. +func (in *RedirectTokenClaims) DeepCopy() *RedirectTokenClaims { + if in == nil { + return nil + } + out := new(RedirectTokenClaims) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RedirectToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. +func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { + if in == nil { + return nil + } + out := new(RedirectTokenList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RedirectTokenList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenSpec. +func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { + if in == nil { + return nil + } + out := new(RedirectTokenSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenStatus. +func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { + if in == nil { + return nil + } + out := new(RedirectTokenStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualCluster. +func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { + if in == nil { + return nil + } + out := new(RegisterVirtualCluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RegisterVirtualCluster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegisterVirtualClusterList) DeepCopyInto(out *RegisterVirtualClusterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RegisterVirtualCluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterList. +func (in *RegisterVirtualClusterList) DeepCopy() *RegisterVirtualClusterList { + if in == nil { + return nil + } + out := new(RegisterVirtualClusterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RegisterVirtualClusterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegisterVirtualClusterSpec) DeepCopyInto(out *RegisterVirtualClusterSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterSpec. +func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { + if in == nil { + return nil + } + out := new(RegisterVirtualClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisterVirtualClusterStatus. +func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { + if in == nil { + return nil + } + out := new(RegisterVirtualClusterStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKey. +func (in *ResetAccessKey) DeepCopy() *ResetAccessKey { + if in == nil { + return nil + } + out := new(ResetAccessKey) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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([]ResetAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(ResetAccessKeyList) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// 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 *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 { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(ProjectMigrateVirtualClusterInstanceList) + out := new(SelfList) 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 *SelfList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5623,60 +5780,84 @@ 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 *SelfSpec) DeepCopyInto(out *SelfSpec) { *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 SelfSpec. +func (in *SelfSpec) DeepCopy() *SelfSpec { if in == nil { return nil } - out := new(ProjectMigrateVirtualClusterInstanceSource) + 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 *ProjectRole) DeepCopyInto(out *ProjectRole) { +func (in *SelfStatus) DeepCopyInto(out *SelfStatus) { *out = *in - out.ObjectName = in.ObjectName + 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 ProjectRole. -func (in *ProjectRole) DeepCopy() *ProjectRole { +// 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(ProjectRole) + 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 *ProjectSecret) DeepCopyInto(out *ProjectSecret) { +func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { *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 ProjectSecret. -func (in *ProjectSecret) DeepCopy() *ProjectSecret { +// 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(ProjectSecret) + out := new(SelfSubjectAccessReview) 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 *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5684,13 +5865,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 *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([]ProjectSecret, len(*in)) + *out = make([]SelfSubjectAccessReview, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5698,18 +5879,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 SelfSubjectAccessReviewList. +func (in *SelfSubjectAccessReviewList) DeepCopy() *SelfSubjectAccessReviewList { if in == nil { return nil } - out := new(ProjectSecretList) + out := new(SelfSubjectAccessReviewList) 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 *SelfSubjectAccessReviewList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5717,160 +5898,61 @@ 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) { - *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 { - if in == nil { - return nil - } - 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 *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { - *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 ProjectSecretStatus. -func (in *ProjectSecretStatus) DeepCopy() *ProjectSecretStatus { - if in == nil { - return nil - } - 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 *ProjectSpec) DeepCopyInto(out *ProjectSpec) { +func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) { *out = *in - in.ProjectSpec.DeepCopyInto(&out.ProjectSpec) + in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) 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 SelfSubjectAccessReviewSpec. +func (in *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec { if in == nil { return nil } - out := new(ProjectSpec) + 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 *ProjectStatus) DeepCopyInto(out *ProjectStatus) { +func (in *SelfSubjectAccessReviewStatus) DeepCopyInto(out *SelfSubjectAccessReviewStatus) { *out = *in - in.ProjectStatus.DeepCopyInto(&out.ProjectStatus) + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus 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 SelfSubjectAccessReviewStatus. +func (in *SelfSubjectAccessReviewStatus) DeepCopy() *SelfSubjectAccessReviewStatus { if in == nil { return nil } - out := new(ProjectStatus) + 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 *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { +func (in *SharedSecret) DeepCopyInto(out *SharedSecret) { *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.DevPodWorkspacePresets != nil { - in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets - *out = make([]DevPodWorkspacePreset, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) 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 SharedSecret. +func (in *SharedSecret) DeepCopy() *SharedSecret { if in == nil { return nil } - out := new(ProjectTemplates) + out := new(SharedSecret) 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 *SharedSecret) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5878,13 +5960,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 *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([]ProjectTemplates, len(*in)) + *out = make([]SharedSecret, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -5892,18 +5974,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 SharedSecretList. +func (in *SharedSecretList) DeepCopy() *SharedSecretList { if in == nil { return nil } - out := new(ProjectTemplatesList) + out := new(SharedSecretList) 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 *SharedSecretList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5911,136 +5993,147 @@ 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 *SharedSecretSpec) DeepCopyInto(out *SharedSecretSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) 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 SharedSecretSpec. +func (in *SharedSecretSpec) DeepCopy() *SharedSecretSpec { if in == nil { return nil } - out := new(RedirectToken) + out := new(SharedSecretSpec) 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 +// 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 } - 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 *RedirectTokenClaims) DeepCopyInto(out *RedirectTokenClaims) { +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 RedirectTokenClaims. -func (in *RedirectTokenClaims) DeepCopy() *RedirectTokenClaims { +// 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(RedirectTokenClaims) + 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 *RedirectTokenList) DeepCopyInto(out *RedirectTokenList) { +func (in *SnapshotRequestError) DeepCopyInto(out *SnapshotRequestError) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RedirectToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectTokenList. -func (in *RedirectTokenList) DeepCopy() *RedirectTokenList { + +// 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(RedirectTokenList) + out := new(SnapshotRequestError) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RedirectTokenList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// 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 } - 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 *RedirectTokenSpec) DeepCopyInto(out *RedirectTokenSpec) { +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 RedirectTokenSpec. -func (in *RedirectTokenSpec) DeepCopy() *RedirectTokenSpec { +// 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(RedirectTokenSpec) + 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 *RedirectTokenStatus) DeepCopyInto(out *RedirectTokenStatus) { +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 RedirectTokenStatus. -func (in *RedirectTokenStatus) DeepCopy() *RedirectTokenStatus { +// 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(RedirectTokenStatus) + 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 *RegisterVirtualCluster) DeepCopyInto(out *RegisterVirtualCluster) { +func (in *SpaceInstance) DeepCopyInto(out *SpaceInstance) { *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 RegisterVirtualCluster. -func (in *RegisterVirtualCluster) DeepCopy() *RegisterVirtualCluster { +// 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(RegisterVirtualCluster) + out := new(SpaceInstance) 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 *SpaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6048,13 +6141,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 *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([]RegisterVirtualCluster, len(*in)) + *out = make([]SpaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6062,18 +6155,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 SpaceInstanceList. +func (in *SpaceInstanceList) DeepCopy() *SpaceInstanceList { if in == nil { return nil } - out := new(RegisterVirtualClusterList) + out := new(SpaceInstanceList) 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 *SpaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6081,39 +6174,46 @@ 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) { +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 RegisterVirtualClusterSpec. -func (in *RegisterVirtualClusterSpec) DeepCopy() *RegisterVirtualClusterSpec { +// 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(RegisterVirtualClusterSpec) + 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 *RegisterVirtualClusterStatus) DeepCopyInto(out *RegisterVirtualClusterStatus) { +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 RegisterVirtualClusterStatus. -func (in *RegisterVirtualClusterStatus) DeepCopy() *RegisterVirtualClusterStatus { +// 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(RegisterVirtualClusterStatus) + 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 *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { +func (in *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -6122,18 +6222,18 @@ func (in *ResetAccessKey) DeepCopyInto(out *ResetAccessKey) { 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 SpaceTemplate. +func (in *SpaceTemplate) DeepCopy() *SpaceTemplate { if in == nil { return nil } - out := new(ResetAccessKey) + out := new(SpaceTemplate) 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 *SpaceTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6141,13 +6241,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 *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([]ResetAccessKey, len(*in)) + *out = make([]SpaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6155,18 +6255,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 SpaceTemplateList. +func (in *SpaceTemplateList) DeepCopy() *SpaceTemplateList { if in == nil { return nil } - out := new(ResetAccessKeyList) + out := new(SpaceTemplateList) 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 *SpaceTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6174,61 +6274,136 @@ func (in *ResetAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResetAccessKeySpec) DeepCopyInto(out *ResetAccessKeySpec) { +func (in *SpaceTemplateSpec) DeepCopyInto(out *SpaceTemplateSpec) { *out = *in - in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) + in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResetAccessKeySpec. -func (in *ResetAccessKeySpec) DeepCopy() *ResetAccessKeySpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpaceTemplateSpec. +func (in *SpaceTemplateSpec) DeepCopy() *SpaceTemplateSpec { if in == nil { return nil } - out := new(ResetAccessKeySpec) + 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 *ResetAccessKeyStatus) DeepCopyInto(out *ResetAccessKeyStatus) { +func (in *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) + 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 ResetAccessKeyStatus. -func (in *ResetAccessKeyStatus) DeepCopy() *ResetAccessKeyStatus { +// 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(ResetAccessKeyStatus) + 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 *Self) DeepCopyInto(out *Self) { +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) - 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 Self. -func (in *Self) DeepCopy() *Self { +// 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(Self) + out := new(SubjectAccessReview) 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 *SubjectAccessReview) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6236,13 +6411,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 *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([]Self, len(*in)) + *out = make([]SubjectAccessReview, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6250,18 +6425,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 SubjectAccessReviewList. +func (in *SubjectAccessReviewList) DeepCopy() *SubjectAccessReviewList { if in == nil { return nil } - out := new(SelfList) + out := new(SubjectAccessReviewList) 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 *SubjectAccessReviewList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6269,84 +6444,61 @@ 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 *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) { *out = *in + in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) 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 SubjectAccessReviewSpec. +func (in *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec { if in == nil { return nil } - out := new(SelfSpec) + 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 *SelfStatus) DeepCopyInto(out *SelfStatus) { +func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { *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 - } + out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus 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 SubjectAccessReviewStatus. +func (in *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus { if in == nil { return nil } - out := new(SelfStatus) + 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 *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) { +func (in *Task) DeepCopyInto(out *Task) { *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 SelfSubjectAccessReview. -func (in *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview { +// 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(SelfSubjectAccessReview) + out := new(Task) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { +func (in *Task) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6354,13 +6506,13 @@ func (in *SelfSubjectAccessReview) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SelfSubjectAccessReviewList) DeepCopyInto(out *SelfSubjectAccessReviewList) { +func (in *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([]SelfSubjectAccessReview, len(*in)) + *out = make([]Task, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6368,18 +6520,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 TaskList. +func (in *TaskList) DeepCopy() *TaskList { if in == nil { return nil } - out := new(SelfSubjectAccessReviewList) + out := new(TaskList) 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 *TaskList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6387,61 +6539,58 @@ 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 *TaskLog) DeepCopyInto(out *TaskLog) { *out = *in - in.SelfSubjectAccessReviewSpec.DeepCopyInto(&out.SelfSubjectAccessReviewSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 TaskLog. +func (in *TaskLog) DeepCopy() *TaskLog { if in == nil { return nil } - out := new(SelfSubjectAccessReviewSpec) + out := new(TaskLog) 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 *TaskLog) 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 *TaskLogList) DeepCopyInto(out *TaskLogList) { *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([]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 SharedSecret. -func (in *SharedSecret) DeepCopy() *SharedSecret { +// 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(SharedSecret) + out := new(TaskLogList) 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 *TaskLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6449,32 +6598,43 @@ 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 *TaskLogOptions) DeepCopyInto(out *TaskLogOptions) { *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]) - } + 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 SharedSecretList. -func (in *SharedSecretList) DeepCopy() *SharedSecretList { +// 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(SharedSecretList) + out := new(TaskLogOptions) 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 *TaskLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6482,61 +6642,71 @@ 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 *TaskSpec) DeepCopyInto(out *TaskSpec) { *out = *in - in.SharedSecretSpec.DeepCopyInto(&out.SharedSecretSpec) + in.TaskSpec.DeepCopyInto(&out.TaskSpec) 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 TaskSpec. +func (in *TaskSpec) DeepCopy() *TaskSpec { if in == nil { return nil } - out := new(SharedSecretSpec) + 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 *SharedSecretStatus) DeepCopyInto(out *SharedSecretStatus) { +func (in *TaskStatus) DeepCopyInto(out *TaskStatus) { *out = *in - in.SharedSecretStatus.DeepCopyInto(&out.SharedSecretStatus) + 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 SharedSecretStatus. -func (in *SharedSecretStatus) DeepCopy() *SharedSecretStatus { +// 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(SharedSecretStatus) + 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 *SpaceInstance) DeepCopyInto(out *SpaceInstance) { +func (in *Team) DeepCopyInto(out *Team) { *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 Team. +func (in *Team) DeepCopy() *Team { if in == nil { return nil } - out := new(SpaceInstance) + out := new(Team) 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 *Team) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6544,13 +6714,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 *TeamAccessKeys) DeepCopyInto(out *TeamAccessKeys) { *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)) + 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]) } @@ -6558,18 +6728,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 TeamAccessKeys. +func (in *TeamAccessKeys) DeepCopy() *TeamAccessKeys { if in == nil { return nil } - out := new(SpaceInstanceList) + out := new(TeamAccessKeys) 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 *TeamAccessKeys) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6577,66 +6747,98 @@ func (in *SpaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpaceInstanceSpec) DeepCopyInto(out *SpaceInstanceSpec) { +func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { *out = *in - in.SpaceInstanceSpec.DeepCopyInto(&out.SpaceInstanceSpec) + 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 SpaceInstanceSpec. -func (in *SpaceInstanceSpec) DeepCopy() *SpaceInstanceSpec { +// 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(SpaceInstanceSpec) + 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 *SpaceInstanceStatus) DeepCopyInto(out *SpaceInstanceStatus) { +func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { *out = *in - in.SpaceInstanceStatus.DeepCopyInto(&out.SpaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) - (*in).DeepCopyInto(*out) + out.TypeMeta = in.TypeMeta + in.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 SpaceInstanceStatus. -func (in *SpaceInstanceStatus) DeepCopy() *SpaceInstanceStatus { +// 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(SpaceInstanceStatus) + 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 *SpaceTemplate) DeepCopyInto(out *SpaceTemplate) { +func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { *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([]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 SpaceTemplate. -func (in *SpaceTemplate) DeepCopy() *SpaceTemplate { +// 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(SpaceTemplate) + out := new(TeamClustersList) 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 *TeamClustersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6644,13 +6846,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 *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([]SpaceTemplate, len(*in)) + *out = make([]Team, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6658,18 +6860,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 TeamList. +func (in *TeamList) DeepCopy() *TeamList { if in == nil { return nil } - out := new(SpaceTemplateList) + out := new(TeamList) 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 *TeamList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6677,72 +6879,118 @@ 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 *TeamObjectPermissions) DeepCopyInto(out *TeamObjectPermissions) { *out = *in - in.SpaceTemplateSpec.DeepCopyInto(&out.SpaceTemplateSpec) + 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 SpaceTemplateSpec. -func (in *SpaceTemplateSpec) DeepCopy() *SpaceTemplateSpec { +// 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(SpaceTemplateSpec) + 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 *SpaceTemplateStatus) DeepCopyInto(out *SpaceTemplateStatus) { +func (in *TeamObjectPermissionsList) DeepCopyInto(out *TeamObjectPermissionsList) { *out = *in - out.SpaceTemplateStatus = in.SpaceTemplateStatus - if in.Apps != nil { - in, out := &in.Apps, &out.Apps - *out = make([]*storagev1.EntityInfo, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TeamObjectPermissions, 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 TeamObjectPermissionsList. +func (in *TeamObjectPermissionsList) DeepCopy() *TeamObjectPermissionsList { if in == nil { return nil } - out := new(SpaceTemplateStatus) + 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 *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) { +func (in *TeamPermissions) DeepCopyInto(out *TeamPermissions) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + 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 SubjectAccessReview. -func (in *SubjectAccessReview) DeepCopy() *SubjectAccessReview { +// 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(SubjectAccessReview) + out := new(TeamPermissions) 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 *TeamPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6750,13 +6998,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 *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([]SubjectAccessReview, len(*in)) + *out = make([]TeamPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6764,18 +7012,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 TeamPermissionsList. +func (in *TeamPermissionsList) DeepCopy() *TeamPermissionsList { if in == nil { return nil } - out := new(SubjectAccessReviewList) + out := new(TeamPermissionsList) 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 *TeamPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6783,61 +7031,61 @@ 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 *TeamSpec) DeepCopyInto(out *TeamSpec) { *out = *in - in.SubjectAccessReviewSpec.DeepCopyInto(&out.SubjectAccessReviewSpec) + in.TeamSpec.DeepCopyInto(&out.TeamSpec) 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 TeamSpec. +func (in *TeamSpec) DeepCopy() *TeamSpec { if in == nil { return nil } - out := new(SubjectAccessReviewSpec) + 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 *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) { +func (in *TeamStatus) DeepCopyInto(out *TeamStatus) { *out = *in - out.SubjectAccessReviewStatus = in.SubjectAccessReviewStatus + out.TeamStatus = in.TeamStatus 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 TeamStatus. +func (in *TeamStatus) DeepCopy() *TeamStatus { if in == nil { return nil } - out := new(SubjectAccessReviewStatus) + 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 *Task) DeepCopyInto(out *Task) { +func (in *TranslateVClusterResourceName) DeepCopyInto(out *TranslateVClusterResourceName) { *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 Task. -func (in *Task) DeepCopy() *Task { +// 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(Task) + out := new(TranslateVClusterResourceName) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Task) DeepCopyObject() runtime.Object { +func (in *TranslateVClusterResourceName) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6845,13 +7093,13 @@ func (in *Task) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskList) DeepCopyInto(out *TaskList) { +func (in *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([]Task, len(*in)) + *out = make([]TranslateVClusterResourceName, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6859,18 +7107,18 @@ func (in *TaskList) DeepCopyInto(out *TaskList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList. -func (in *TaskList) DeepCopy() *TaskList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslateVClusterResourceNameList. +func (in *TranslateVClusterResourceNameList) DeepCopy() *TranslateVClusterResourceNameList { if in == nil { return nil } - out := new(TaskList) + out := new(TranslateVClusterResourceNameList) 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 *TranslateVClusterResourceNameList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6878,58 +7126,59 @@ 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 *TranslateVClusterResourceNameSpec) DeepCopyInto(out *TranslateVClusterResourceNameSpec) { *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 TranslateVClusterResourceNameSpec. +func (in *TranslateVClusterResourceNameSpec) DeepCopy() *TranslateVClusterResourceNameSpec { if in == nil { return nil } - out := new(TaskLog) + out := new(TranslateVClusterResourceNameSpec) 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 +// 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 } - 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 *TaskLogList) DeepCopyInto(out *TaskLogList) { +func (in *UsageDownload) DeepCopyInto(out *UsageDownload) { *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]) - } - } + 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 TaskLogList. -func (in *TaskLogList) DeepCopy() *TaskLogList { +// 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(TaskLogList) + out := new(UsageDownload) 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 *UsageDownload) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6937,43 +7186,32 @@ 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 *UsageDownloadList) DeepCopyInto(out *UsageDownloadList) { *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([]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 TaskLogOptions. -func (in *TaskLogOptions) DeepCopy() *TaskLogOptions { +// 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(TaskLogOptions) + out := new(UsageDownloadList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TaskLogOptions) DeepCopyObject() runtime.Object { +func (in *UsageDownloadList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6981,71 +7219,59 @@ func (in *TaskLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TaskSpec) DeepCopyInto(out *TaskSpec) { +func (in *UsageDownloadSpec) DeepCopyInto(out *UsageDownloadSpec) { *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 UsageDownloadSpec. +func (in *UsageDownloadSpec) DeepCopy() *UsageDownloadSpec { if in == nil { return nil } - out := new(TaskSpec) + 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 *TaskStatus) DeepCopyInto(out *TaskStatus) { +func (in *UsageDownloadStatus) DeepCopyInto(out *UsageDownloadStatus) { *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 UsageDownloadStatus. +func (in *UsageDownloadStatus) DeepCopy() *UsageDownloadStatus { if in == nil { return nil } - out := new(TaskStatus) + 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 *Team) DeepCopyInto(out *Team) { +func (in *User) DeepCopyInto(out *User) { *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 Team. -func (in *Team) DeepCopy() *Team { +// 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(Team) + out := new(User) 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 *User) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7053,7 +7279,7 @@ 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 *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -7067,18 +7293,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 UserAccessKeys. +func (in *UserAccessKeys) DeepCopy() *UserAccessKeys { if in == nil { return nil } - out := new(TeamAccessKeys) + out := new(UserAccessKeys) 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 *UserAccessKeys) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7086,13 +7312,13 @@ func (in *TeamAccessKeys) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { +func (in *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([]TeamAccessKeys, len(*in)) + *out = make([]UserAccessKeys, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7100,18 +7326,18 @@ func (in *TeamAccessKeysList) DeepCopyInto(out *TeamAccessKeysList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamAccessKeysList. -func (in *TeamAccessKeysList) DeepCopy() *TeamAccessKeysList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserAccessKeysList. +func (in *UserAccessKeysList) DeepCopy() *UserAccessKeysList { if in == nil { return nil } - out := new(TeamAccessKeysList) + out := new(UserAccessKeysList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TeamAccessKeysList) DeepCopyObject() runtime.Object { +func (in *UserAccessKeysList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7119,7 +7345,7 @@ func (in *TeamAccessKeysList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { +func (in *UserClusters) DeepCopyInto(out *UserClusters) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -7133,18 +7359,18 @@ func (in *TeamClusters) DeepCopyInto(out *TeamClusters) { 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 UserClusters. +func (in *UserClusters) DeepCopy() *UserClusters { if in == nil { return nil } - out := new(TeamClusters) + out := new(UserClusters) 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 *UserClusters) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7152,13 +7378,13 @@ func (in *TeamClusters) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { +func (in *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([]TeamClusters, len(*in)) + *out = make([]UserClusters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7166,18 +7392,18 @@ func (in *TeamClustersList) DeepCopyInto(out *TeamClustersList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamClustersList. -func (in *TeamClustersList) DeepCopy() *TeamClustersList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserClustersList. +func (in *UserClustersList) DeepCopy() *UserClustersList { if in == nil { return nil } - out := new(TeamClustersList) + out := new(UserClustersList) 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 *UserClustersList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7185,13 +7411,41 @@ 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 *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([]Team, len(*in)) + *out = make([]User, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7199,18 +7453,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 UserList. +func (in *UserList) DeepCopy() *UserList { if in == nil { return nil } - out := new(TeamList) + out := new(UserList) 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 *UserList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7218,7 +7472,7 @@ 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 *TeamObjectPermissions) DeepCopyInto(out *TeamObjectPermissions) { +func (in *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -7232,18 +7486,18 @@ func (in *TeamObjectPermissions) DeepCopyInto(out *TeamObjectPermissions) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamObjectPermissions. -func (in *TeamObjectPermissions) DeepCopy() *TeamObjectPermissions { +// 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(TeamObjectPermissions) + out := new(UserObjectPermissions) 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 { +func (in *UserObjectPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7251,13 +7505,13 @@ func (in *TeamObjectPermissions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamObjectPermissionsList) DeepCopyInto(out *TeamObjectPermissionsList) { +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([]TeamObjectPermissions, len(*in)) + *out = make([]UserObjectPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7265,18 +7519,18 @@ func (in *TeamObjectPermissionsList) DeepCopyInto(out *TeamObjectPermissionsList return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamObjectPermissionsList. -func (in *TeamObjectPermissionsList) DeepCopy() *TeamObjectPermissionsList { +// 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(TeamObjectPermissionsList) + out := new(UserObjectPermissionsList) 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 { +func (in *UserObjectPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7284,12 +7538,26 @@ func (in *TeamObjectPermissionsList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamPermissions) DeepCopyInto(out *TeamPermissions) { +func (in *UserPermissions) DeepCopyInto(out *UserPermissions) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Members != nil { - in, out := &in.Members, &out.Members + 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) } @@ -7318,18 +7586,18 @@ func (in *TeamPermissions) DeepCopyInto(out *TeamPermissions) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TeamPermissions. -func (in *TeamPermissions) DeepCopy() *TeamPermissions { +// 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(TeamPermissions) + out := new(UserPermissions) 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 { +func (in *UserPermissions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7337,13 +7605,13 @@ func (in *TeamPermissions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TeamPermissionsList) DeepCopyInto(out *TeamPermissionsList) { +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([]TeamPermissions, len(*in)) + *out = make([]UserPermissions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7351,80 +7619,18 @@ func (in *TeamPermissionsList) DeepCopyInto(out *TeamPermissionsList) { 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 { +// 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(TranslateVClusterResourceName) + out := new(UserPermissionsList) 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 *UserPermissionsList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7432,13 +7638,11 @@ 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 *UserPermissionsRole) DeepCopyInto(out *UserPermissionsRole) { *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)) + 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]) } @@ -7446,78 +7650,60 @@ 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 { - 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 { +// 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(TranslateVClusterResourceNameStatus) + 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 *User) DeepCopyInto(out *User) { +func (in *UserProfile) DeepCopyInto(out *UserProfile) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Icon != nil { + in, out := &in.Icon, &out.Icon + *out = new(string) + **out = **in + } + if in.Secrets != nil { + in, out := &in.Secrets, &out.Secrets + *out = new(map[string]*UserProfileSecret) + if **in != nil { + in, out := *in, *out + *out = make(map[string]*UserProfileSecret, len(*in)) + for key, val := range *in { + var outVal *UserProfileSecret + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(UserProfileSecret) + **out = **in + } + (*out)[key] = outVal + } + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User. -func (in *User) DeepCopy() *User { +// 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(User) + out := new(UserProfile) 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 *UserProfile) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7525,13 +7711,13 @@ 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 *UserProfileList) DeepCopyInto(out *UserProfileList) { *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([]UserProfile, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7539,18 +7725,18 @@ func (in *UserAccessKeys) DeepCopyInto(out *UserAccessKeys) { 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 UserProfileList. +func (in *UserProfileList) DeepCopy() *UserProfileList { if in == nil { return nil } - out := new(UserAccessKeys) + out := new(UserProfileList) 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 *UserProfileList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7558,65 +7744,45 @@ 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 *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { *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 { +// 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(UserAccessKeysList) + out := new(UserProfileSecret) 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) { +func (in *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { *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.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 UserClusters. -func (in *UserClusters) DeepCopy() *UserClusters { +// 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(UserClusters) + out := new(UserQuotasOptions) 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 *UserQuotasOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7624,32 +7790,29 @@ 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 *UserSpacesOptions) DeepCopyInto(out *UserSpacesOptions) { *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]) - } + 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 UserClustersList. -func (in *UserClustersList) DeepCopy() *UserClustersList { +// 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(UserClustersList) + out := new(UserSpacesOptions) 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 *UserSpacesOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7657,60 +7820,63 @@ 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) { +func (in *UserSpec) DeepCopyInto(out *UserSpec) { *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 - } - } + 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 + in.UserStatus.DeepCopyInto(&out.UserStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. -func (in *UserInfo) DeepCopy() *UserInfo { +// 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(UserInfo) + out := new(UserStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserList) DeepCopyInto(out *UserList) { +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([]User, 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 UserList. -func (in *UserList) DeepCopy() *UserList { +// 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(UserList) + out := new(UserVirtualClustersOptions) 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 *UserVirtualClustersOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7718,32 +7884,25 @@ 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 *UserObjectPermissions) DeepCopyInto(out *UserObjectPermissions) { +func (in *VirtualClusterAccessKey) DeepCopyInto(out *VirtualClusterAccessKey) { *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 { +// 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(UserObjectPermissions) + out := new(VirtualClusterAccessKey) 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 { +func (in *VirtualClusterAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7751,13 +7910,13 @@ func (in *UserObjectPermissions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserObjectPermissionsList) DeepCopyInto(out *UserObjectPermissionsList) { +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([]UserObjectPermissions, len(*in)) + *out = make([]VirtualClusterAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7765,18 +7924,18 @@ func (in *UserObjectPermissionsList) DeepCopyInto(out *UserObjectPermissionsList return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserObjectPermissionsList. -func (in *UserObjectPermissionsList) DeepCopy() *UserObjectPermissionsList { +// 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(UserObjectPermissionsList) + out := new(VirtualClusterAccessKeyList) 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 { +func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7784,66 +7943,27 @@ func (in *UserObjectPermissionsList) 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 *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { *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) - } + out.Spec = in.Spec + out.Status = in.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 VirtualClusterExternalDatabase. +func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { if in == nil { return nil } - out := new(UserPermissions) + out := new(VirtualClusterExternalDatabase) 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 *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7851,13 +7971,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 *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]UserPermissions, len(*in)) + *out = make([]VirtualClusterExternalDatabase, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7865,18 +7985,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 VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { if in == nil { return nil } - out := new(UserPermissionsList) + out := new(VirtualClusterExternalDatabaseList) 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 *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7884,72 +8004,87 @@ 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 *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { *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 VirtualClusterExternalDatabaseSpec. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { + if in == nil { + return nil } + out := new(VirtualClusterExternalDatabaseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPermissionsRole. -func (in *UserPermissionsRole) DeepCopy() *UserPermissionsRole { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { if in == nil { return nil } - out := new(UserPermissionsRole) + 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 *UserProfile) DeepCopyInto(out *UserProfile) { +func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { *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.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstance. +func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { + if in == nil { + return nil } - 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 - } - } + out := new(VirtualClusterInstance) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstance) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { + *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 UserProfile. -func (in *UserProfile) DeepCopy() *UserProfile { +// 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(UserProfile) + out := new(VirtualClusterInstanceKubeConfig) 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 { +func (in *VirtualClusterInstanceKubeConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7957,13 +8092,13 @@ func (in *UserProfile) DeepCopyObject() runtime.Object { } // 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 *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([]UserProfile, len(*in)) + *out = make([]VirtualClusterInstanceKubeConfig, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -7971,18 +8106,18 @@ func (in *UserProfileList) DeepCopyInto(out *UserProfileList) { 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 VirtualClusterInstanceKubeConfigList. +func (in *VirtualClusterInstanceKubeConfigList) DeepCopy() *VirtualClusterInstanceKubeConfigList { if in == nil { return nil } - out := new(UserProfileList) + out := new(VirtualClusterInstanceKubeConfigList) 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 { +func (in *VirtualClusterInstanceKubeConfigList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7990,75 +8125,69 @@ func (in *UserProfileList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *UserProfileSecret) DeepCopyInto(out *UserProfileSecret) { +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 UserProfileSecret. -func (in *UserProfileSecret) DeepCopy() *UserProfileSecret { +// 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(UserProfileSecret) + 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 *UserQuotasOptions) DeepCopyInto(out *UserQuotasOptions) { +func (in *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { *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 { +// 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(UserQuotasOptions) + out := new(VirtualClusterInstanceKubeConfigStatus) 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) { +func (in *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { *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([]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 UserSpacesOptions. -func (in *UserSpacesOptions) DeepCopy() *UserSpacesOptions { +// 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(UserSpacesOptions) + out := new(VirtualClusterInstanceList) 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 *VirtualClusterInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8066,63 +8195,102 @@ 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 *VirtualClusterInstanceLog) DeepCopyInto(out *VirtualClusterInstanceLog) { *out = *in - in.UserSpec.DeepCopyInto(&out.UserSpec) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 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 VirtualClusterInstanceLog. +func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { if in == nil { return nil } - out := new(UserSpec) + out := new(VirtualClusterInstanceLog) 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 *UserStatus) DeepCopyInto(out *UserStatus) { +func (in *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanceLogList) { *out = *in - in.UserStatus.DeepCopyInto(&out.UserStatus) + 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]) + } + } 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 VirtualClusterInstanceLogList. +func (in *VirtualClusterInstanceLogList) DeepCopy() *VirtualClusterInstanceLogList { if in == nil { return nil } - out := new(UserStatus) + out := new(VirtualClusterInstanceLogList) 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // 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 *VirtualClusterInstanceLogOptions) DeepCopyInto(out *VirtualClusterInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = make([]string, len(*in)) - copy(*out, *in) + 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 UserVirtualClustersOptions. -func (in *UserVirtualClustersOptions) DeepCopy() *UserVirtualClustersOptions { +// 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(UserVirtualClustersOptions) + out := new(VirtualClusterInstanceLogOptions) 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 *VirtualClusterInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8130,25 +8298,27 @@ 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 *VirtualClusterInstanceShell) DeepCopyInto(out *VirtualClusterInstanceShell) { *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 VirtualClusterAccessKey. -func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { +// 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(VirtualClusterAccessKey) + out := new(VirtualClusterInstanceShell) 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 *VirtualClusterInstanceShell) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8156,13 +8326,13 @@ 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 *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([]VirtualClusterAccessKey, len(*in)) + *out = make([]VirtualClusterInstanceShell, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8170,18 +8340,18 @@ func (in *VirtualClusterAccessKeyList) DeepCopyInto(out *VirtualClusterAccessKey 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 VirtualClusterInstanceShellList. +func (in *VirtualClusterInstanceShellList) DeepCopy() *VirtualClusterInstanceShellList { if in == nil { return nil } - out := new(VirtualClusterAccessKeyList) + out := new(VirtualClusterInstanceShellList) 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 { +func (in *VirtualClusterInstanceShellList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8189,27 +8359,26 @@ func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { +func (in *VirtualClusterInstanceSnapshot) DeepCopyInto(out *VirtualClusterInstanceSnapshot) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabase. -func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { +// 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(VirtualClusterExternalDatabase) + out := new(VirtualClusterInstanceSnapshot) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshot) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8217,13 +8386,13 @@ func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { +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([]VirtualClusterExternalDatabase, len(*in)) + *out = make([]VirtualClusterInstanceSnapshot, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8231,18 +8400,18 @@ func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterEx return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. -func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { +// 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(VirtualClusterExternalDatabaseList) + out := new(VirtualClusterInstanceSnapshotList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshotList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8250,87 +8419,89 @@ func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { +func (in *VirtualClusterInstanceSnapshotStatus) DeepCopyInto(out *VirtualClusterInstanceSnapshotStatus) { *out = *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]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. -func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { +// 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(VirtualClusterExternalDatabaseSpec) + 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 *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { +func (in *VirtualClusterInstanceSpec) DeepCopyInto(out *VirtualClusterInstanceSpec) { *out = *in + in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. -func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { +// 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(VirtualClusterExternalDatabaseStatus) + out := new(VirtualClusterInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { +func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + 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 VirtualClusterInstance. -func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { +// 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(VirtualClusterInstance) + out := new(VirtualClusterInstanceStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { +func (in *VirtualClusterNodeAccessKey) DeepCopyInto(out *VirtualClusterNodeAccessKey) { *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 VirtualClusterNodeAccessKey. +func (in *VirtualClusterNodeAccessKey) DeepCopy() *VirtualClusterNodeAccessKey { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfig) + out := new(VirtualClusterNodeAccessKey) 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 *VirtualClusterNodeAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8338,13 +8509,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 *VirtualClusterNodeAccessKeyList) DeepCopyInto(out *VirtualClusterNodeAccessKeyList) { *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([]VirtualClusterNodeAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8352,18 +8523,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 VirtualClusterNodeAccessKeyList. +func (in *VirtualClusterNodeAccessKeyList) DeepCopy() *VirtualClusterNodeAccessKeyList { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfigList) + out := new(VirtualClusterNodeAccessKeyList) 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 *VirtualClusterNodeAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8371,95 +8542,77 @@ 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 *VirtualClusterNodeAccessKeySpec) DeepCopyInto(out *VirtualClusterNodeAccessKeySpec) { *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 VirtualClusterNodeAccessKeySpec. +func (in *VirtualClusterNodeAccessKeySpec) DeepCopy() *VirtualClusterNodeAccessKeySpec { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfigSpec) + 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 *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopyInto(out *VirtualClusterNodeAccessKeyStatus) { *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 VirtualClusterNodeAccessKeyStatus. +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopy() *VirtualClusterNodeAccessKeyStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfigStatus) + 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 *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { +func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { *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]) - } - } + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia 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 VirtualClusterRole. +func (in *VirtualClusterRole) DeepCopy() *VirtualClusterRole { if in == nil { return nil } - out := new(VirtualClusterInstanceList) + out := new(VirtualClusterRole) 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 *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLog. -func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { +// 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(VirtualClusterInstanceLog) + out := new(VirtualClusterSchema) 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 { +func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8467,13 +8620,13 @@ func (in *VirtualClusterInstanceLog) DeepCopyObject() runtime.Object { } // 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 *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([]VirtualClusterInstanceLog, len(*in)) + *out = make([]VirtualClusterSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8481,18 +8634,18 @@ func (in *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanc 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 VirtualClusterSchemaList. +func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { if in == nil { return nil } - out := new(VirtualClusterInstanceLogList) + out := new(VirtualClusterSchemaList) 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 *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8500,128 +8653,91 @@ 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 *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { *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 VirtualClusterInstanceLogOptions. -func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { +// 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(VirtualClusterInstanceLogOptions) + out := new(VirtualClusterSchemaSpec) 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // 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 *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { *out = *in - in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) 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 VirtualClusterSchemaStatus. +func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceSpec) + 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 *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { +func (in *VirtualClusterShellSpec) DeepCopyInto(out *VirtualClusterShellSpec) { *out = *in - 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 VirtualClusterInstanceStatus. -func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus { +// 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(VirtualClusterInstanceStatus) + out := new(VirtualClusterShellSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { +func (in *VirtualClusterShellStatus) DeepCopyInto(out *VirtualClusterShellStatus) { *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 { +// 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(VirtualClusterRole) + out := new(VirtualClusterShellStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { +func (in *VirtualClusterStandalone) DeepCopyInto(out *VirtualClusterStandalone) { *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 VirtualClusterSchema. -func (in *VirtualClusterSchema) DeepCopy() *VirtualClusterSchema { +// 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(VirtualClusterSchema) + out := new(VirtualClusterStandalone) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandalone) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8629,13 +8745,13 @@ func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) { +func (in *VirtualClusterStandaloneList) DeepCopyInto(out *VirtualClusterStandaloneList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VirtualClusterSchema, len(*in)) + *out = make([]VirtualClusterStandalone, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8643,18 +8759,18 @@ func (in *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaList. -func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { +// 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(VirtualClusterSchemaList) + out := new(VirtualClusterStandaloneList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandaloneList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8662,33 +8778,41 @@ func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { +func (in *VirtualClusterStandaloneSpec) DeepCopyInto(out *VirtualClusterStandaloneSpec) { *out = *in + out.CurrentPeer = in.CurrentPeer + in.CurrentPKI.DeepCopyInto(&out.CurrentPKI) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaSpec. -func (in *VirtualClusterSchemaSpec) DeepCopy() *VirtualClusterSchemaSpec { +// 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(VirtualClusterSchemaSpec) + 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 *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { +func (in *VirtualClusterStandaloneStatus) DeepCopyInto(out *VirtualClusterStandaloneStatus) { *out = *in + 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 VirtualClusterSchemaStatus. -func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { +// 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(VirtualClusterSchemaStatus) + out := new(VirtualClusterStandaloneStatus) in.DeepCopyInto(out) return out } @@ -8798,3 +8922,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 fd9afaf0..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 ( - corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,917 +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(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) - }) - scheme.AddTypeDefaultingFunc(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) - scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } - -func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { - if in.Spec.DevPodWorkspaceInstanceSpec.Template != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } - if in.Status.DevPodWorkspaceInstanceStatus.Instance != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstance(a) - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { - if in.Workspace != nil { - SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) - } - if in.Template != nil { - if in.Template.Spec.Template.Kubernetes != nil { - if in.Template.Spec.Template.Kubernetes.Pod != nil { - for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - for i := range in.Template.Spec.Versions { - a := &in.Template.Spec.Versions[i] - if a.Template.Kubernetes != nil { - if a.Template.Kubernetes.Pod != nil { - for j := range a.Template.Kubernetes.Pod.Spec.Volumes { - b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { - b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.Containers { - b := &a.Template.Kubernetes.Pod.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } - } - for i := range in.Pods { - a := &in.Pods[i] - for j := range a.Spec.Volumes { - b := &a.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Spec.InitContainers { - b := &a.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Spec.Containers { - b := &a.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Spec.EphemeralContainers { - b := &a.Spec.EphemeralContainers[j] - for k := range b.EphemeralContainerCommon.Ports { - c := &b.EphemeralContainerCommon.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.EphemeralContainerCommon.LivenessProbe != nil { - if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { - if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.EphemeralContainerCommon.ReadinessProbe != nil { - if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.EphemeralContainerCommon.StartupProbe != nil { - if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil { - if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) - } -} - -func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] - if a.Template.Kubernetes != nil { - if a.Template.Kubernetes.Pod != nil { - for j := range a.Template.Kubernetes.Pod.Spec.Volumes { - b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { - b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.Containers { - b := &a.Template.Kubernetes.Pod.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) - } -} - -func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { - for i := range in.DevPodWorkspaceTemplates { - a := &in.DevPodWorkspaceTemplates[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) - } -} - -func SetObjectDefaults_ProjectTemplatesList(in *ProjectTemplatesList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_ProjectTemplates(a) - } -} diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 7a9e9879..e90dd5a7 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -20,6 +20,7 @@ import ( "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" @@ -131,47 +132,7 @@ var ( NewDatabaseConnectorREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDatabaseConnectorRESTFunc(Factory) } - NewDatabaseConnectorRESTFunc NewRESTFunc - ManagementDevPodEnvironmentTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodEnvironmentTemplate, - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, // Register versioned resource - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, // Register versioned resource list - NewDevPodEnvironmentTemplateREST, - ) - NewDevPodEnvironmentTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodEnvironmentTemplateRESTFunc(Factory) - } - NewDevPodEnvironmentTemplateRESTFunc NewRESTFunc - ManagementDevPodWorkspaceInstanceStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspaceInstance, - func() runtime.Object { return &DevPodWorkspaceInstance{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, // Register versioned resource list - NewDevPodWorkspaceInstanceREST, - ) - NewDevPodWorkspaceInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceRESTFunc NewRESTFunc - ManagementDevPodWorkspacePresetStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspacePreset, - func() runtime.Object { return &DevPodWorkspacePreset{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspacePresetList{} }, // Register versioned resource list - NewDevPodWorkspacePresetREST, - ) - NewDevPodWorkspacePresetREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspacePresetRESTFunc(Factory) - } - NewDevPodWorkspacePresetRESTFunc NewRESTFunc - ManagementDevPodWorkspaceTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspaceTemplate, - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, // Register versioned resource list - NewDevPodWorkspaceTemplateREST, - ) - NewDevPodWorkspaceTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceTemplateRESTFunc(Factory) - } - NewDevPodWorkspaceTemplateRESTFunc NewRESTFunc + NewDatabaseConnectorRESTFunc NewRESTFunc ManagementDirectClusterEndpointTokenStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalDirectClusterEndpointToken, func() runtime.Object { return &DirectClusterEndpointToken{} }, // Register versioned resource @@ -269,8 +230,22 @@ var ( NewNodeClaimStatusREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewNodeClaimStatusRESTFunc(Factory) } - NewNodeClaimStatusRESTFunc NewRESTFunc - ManagementNodeProviderStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + 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 @@ -462,7 +437,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 @@ -694,110 +679,6 @@ var ( func() runtime.Object { return &DatabaseConnector{} }, func() runtime.Object { return &DatabaseConnectorList{} }, ) - 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{} }, - ) - InternalDevPodWorkspaceInstanceCancelREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceCancel", "cancel", - func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, - ) - NewDevPodWorkspaceInstanceCancelREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceCancelRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceCancelRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceDownloadREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceDownload", "download", - func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, - ) - NewDevPodWorkspaceInstanceDownloadREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceDownloadRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceDownloadRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceLogREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceLog", "log", - func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, - ) - NewDevPodWorkspaceInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceLogRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceLogRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceStopREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceStop", "stop", - func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, - ) - NewDevPodWorkspaceInstanceStopREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceStopRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceStopRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceTasksREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceTasks", "tasks", - func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, - ) - NewDevPodWorkspaceInstanceTasksREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceTasksRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceTasksRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceTroubleshootREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceTroubleshoot", "troubleshoot", - func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, - ) - NewDevPodWorkspaceInstanceTroubleshootREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceTroubleshootRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceTroubleshootRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceUpREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceUp", "up", - func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, - ) - NewDevPodWorkspaceInstanceUpREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceUpRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceUpRESTFunc NewRESTFunc - InternalDevPodWorkspacePreset = builders.NewInternalResource( - "devpodworkspacepresets", - "DevPodWorkspacePreset", - func() runtime.Object { return &DevPodWorkspacePreset{} }, - func() runtime.Object { return &DevPodWorkspacePresetList{} }, - ) - InternalDevPodWorkspacePresetStatus = builders.NewInternalResourceStatus( - "devpodworkspacepresets", - "DevPodWorkspacePresetStatus", - func() runtime.Object { return &DevPodWorkspacePreset{} }, - func() runtime.Object { return &DevPodWorkspacePresetList{} }, - ) - InternalDevPodWorkspaceTemplate = builders.NewInternalResource( - "devpodworkspacetemplates", - "DevPodWorkspaceTemplate", - 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{} }, - ) InternalDirectClusterEndpointToken = builders.NewInternalResource( "directclusterendpointtokens", "DirectClusterEndpointToken", @@ -914,6 +795,18 @@ var ( 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", @@ -926,7 +819,15 @@ var ( func() runtime.Object { return &NodeProvider{} }, func() runtime.Object { return &NodeProviderList{} }, ) - InternalNodeType = builders.NewInternalResource( + 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{} }, @@ -1030,7 +931,15 @@ var ( return NewProjectMigrateVirtualClusterInstanceRESTFunc(Factory) } NewProjectMigrateVirtualClusterInstanceRESTFunc NewRESTFunc - InternalProjectTemplatesREST = builders.NewInternalSubresource( + InternalProjectNodeTypesREST = builders.NewInternalSubresource( + "projects", "ProjectNodeTypes", "nodetypes", + func() runtime.Object { return &ProjectNodeTypes{} }, + ) + NewProjectNodeTypesREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewProjectNodeTypesRESTFunc(Factory) + } + NewProjectNodeTypesRESTFunc NewRESTFunc + InternalProjectTemplatesREST = builders.NewInternalSubresource( "projects", "ProjectTemplates", "templates", func() runtime.Object { return &ProjectTemplates{} }, ) @@ -1234,6 +1143,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", @@ -1329,8 +1250,40 @@ var ( NewVirtualClusterInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewVirtualClusterInstanceLogRESTFunc(Factory) } - NewVirtualClusterInstanceLogRESTFunc NewRESTFunc - InternalVirtualClusterSchema = 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 + 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{} }, @@ -1385,21 +1338,6 @@ var ( InternalConvertVirtualClusterConfigStatus, InternalDatabaseConnector, InternalDatabaseConnectorStatus, - InternalDevPodEnvironmentTemplate, - InternalDevPodEnvironmentTemplateStatus, - InternalDevPodWorkspaceInstance, - InternalDevPodWorkspaceInstanceStatus, - InternalDevPodWorkspaceInstanceCancelREST, - InternalDevPodWorkspaceInstanceDownloadREST, - InternalDevPodWorkspaceInstanceLogREST, - InternalDevPodWorkspaceInstanceStopREST, - InternalDevPodWorkspaceInstanceTasksREST, - InternalDevPodWorkspaceInstanceTroubleshootREST, - InternalDevPodWorkspaceInstanceUpREST, - InternalDevPodWorkspacePreset, - InternalDevPodWorkspacePresetStatus, - InternalDevPodWorkspaceTemplate, - InternalDevPodWorkspaceTemplateStatus, InternalDirectClusterEndpointToken, InternalDirectClusterEndpointTokenStatus, InternalEvent, @@ -1419,8 +1357,11 @@ var ( InternalLoftUpgradeStatus, InternalNodeClaim, InternalNodeClaimStatus, + InternalNodeEnvironment, + InternalNodeEnvironmentStatus, InternalNodeProvider, InternalNodeProviderStatus, + InternalNodeProviderExecREST, InternalNodeType, InternalNodeTypeStatus, InternalOIDCClient, @@ -1436,6 +1377,7 @@ var ( InternalProjectMembersREST, InternalProjectMigrateSpaceInstanceREST, InternalProjectMigrateVirtualClusterInstanceREST, + InternalProjectNodeTypesREST, InternalProjectTemplatesREST, InternalProjectSecret, InternalProjectSecretStatus, @@ -1468,6 +1410,8 @@ var ( InternalTeamPermissionsREST, InternalTranslateVClusterResourceName, InternalTranslateVClusterResourceNameStatus, + InternalUsageDownload, + InternalUsageDownloadStatus, InternalUser, InternalUserStatus, InternalUserAccessKeysREST, @@ -1481,6 +1425,10 @@ var ( InternalVirtualClusterExternalDatabaseREST, InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, + InternalVirtualClusterNodeAccessKeyREST, + InternalVirtualClusterInstanceShellREST, + InternalVirtualClusterInstanceSnapshotREST, + InternalVirtualClusterStandaloneREST, InternalVirtualClusterSchema, InternalVirtualClusterSchemaStatus, InternalVirtualClusterTemplate, @@ -1511,7 +1459,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 { @@ -1718,6 +1669,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 { @@ -1846,15 +1798,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"` - CostControl *AgentCostControlConfig `json:"costControl,omitempty"` + 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 @@ -1951,19 +1904,21 @@ type ConfigSpec struct { } type ConfigStatus struct { - Authentication Authentication `json:"auth,omitempty"` - OIDC *OIDC `json:"oidc,omitempty"` - Apps *Apps `json:"apps,omitempty"` - Audit *Audit `json:"audit,omitempty"` - LoftHost string `json:"loftHost,omitempty"` - ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` - DevPodSubDomain string `json:"devPodSubDomain,omitempty"` - UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` - VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` - DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` - Cloud *Cloud `json:"cloud,omitempty"` - CostControl *CostControl `json:"costControl,omitempty"` - ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` + Authentication Authentication `json:"auth,omitempty"` + OIDC *OIDC `json:"oidc,omitempty"` + Apps *Apps `json:"apps,omitempty"` + Audit *Audit `json:"audit,omitempty"` + LoftHost string `json:"loftHost,omitempty"` + ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` + DevPodSubDomain string `json:"devPodSubDomain,omitempty"` + UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` + VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` + DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` + AuthenticateVersionEndpoint bool `json:"authenticateVersionEndpoint,omitempty"` + Cloud *Cloud `json:"cloud,omitempty"` + CostControl *CostControl `json:"costControl,omitempty"` + PlatformDB *PlatformDB `json:"platformDB,omitempty"` + ImageBuilder *ImageBuilder `json:"imageBuilder,omitempty"` } type Connector struct { @@ -2056,169 +2011,6 @@ type DatabaseConnectorSpec struct { type DatabaseConnectorStatus struct { } -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodEnvironmentTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` -} - -type DevPodEnvironmentTemplateSpec struct { - storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` -} - -type DevPodEnvironmentTemplateStatus struct { -} - -// +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"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceCancel struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - TaskID string `json:"taskId,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceDownload struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceLog struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` -} - -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` -} - -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceStop struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` -} - -type DevPodWorkspaceInstanceStopSpec struct { - Options string `json:"options,omitempty"` -} - -type DevPodWorkspaceInstanceStopStatus struct { - TaskID string `json:"taskId,omitempty"` -} - -type DevPodWorkspaceInstanceTask struct { - ID string `json:"id,omitempty"` - Type string `json:"type,omitempty"` - Status string `json:"status,omitempty"` - Result []byte `json:"result,omitempty"` - Logs []byte `json:"logs,omitempty"` - CreatedAt metav1.Time `json:"createdAt,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTasks struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTroubleshoot struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - State string `json:"state,omitempty"` - Workspace *DevPodWorkspaceInstance `json:"workspace,omitempty"` - Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` - Pods []corev1.Pod `json:"pods,omitempty"` - PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` - Netmaps []string `json:"netmaps,omitempty"` - Errors []string `json:"errors,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceUp struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` -} - -type DevPodWorkspaceInstanceUpSpec struct { - Debug bool `json:"debug,omitempty"` - Options string `json:"options,omitempty"` -} - -type DevPodWorkspaceInstanceUpStatus struct { - TaskID string `json:"taskId,omitempty"` -} - -// +genclient -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspacePreset struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` - Status DevPodWorkspacePresetStatus `json:"status,omitempty"` -} - -type DevPodWorkspacePresetSpec struct { - storagev1.DevPodWorkspacePresetSpec `json:",inline"` -} - -type DevPodWorkspacePresetStatus struct { -} - -// +genclient -// +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 DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` -} - -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` -} - // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2321,19 +2113,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 { @@ -2365,8 +2165,9 @@ 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 @@ -2430,6 +2231,12 @@ type NodeClaim struct { Status NodeClaimStatus `json:"status,omitempty"` } +type NodeClaimData struct { + UserData string `json:"userData,omitempty"` + State []byte `json:"state,omitempty"` + Operations map[string]*Operation `json:"operations,omitempty"` +} + type NodeClaimSpec struct { storagev1.NodeClaimSpec `json:",inline"` } @@ -2438,6 +2245,31 @@ 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 @@ -2449,6 +2281,53 @@ type NodeProvider struct { 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 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"` } @@ -2457,6 +2336,11 @@ type NodeProviderStatus struct { storagev1.NodeProviderStatus `json:",inline"` } +type NodeProviderTerraformValidateResult struct { + Success bool `json:"success"` + Output string `json:"output"` +} + // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -2514,6 +2398,14 @@ type ObjectPermission struct { 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 @@ -2533,6 +2425,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"` @@ -2647,6 +2543,15 @@ type ProjectMigrateVirtualClusterInstanceSource struct { Namespace string `json:"namespace,omitempty"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type ProjectNodeTypes struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + NodeProviders []storagev1.NodeProvider `json:"nodeProviders,omitempty"` + NodeTypes []storagev1.NodeType `json:"nodeTypes,omitempty"` +} + type ProjectRole struct { ObjectName `json:",inline"` IsAdmin bool `json:"isAdmin,omitempty"` @@ -2686,17 +2591,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"` - DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` - DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + DefaultVirtualClusterTemplate string `json:"defaultVirtualClusterTemplate,omitempty"` + VirtualClusterTemplates []VirtualClusterTemplate `json:"virtualClusterTemplates,omitempty"` + DefaultSpaceTemplate string `json:"defaultSpaceTemplate,omitempty"` + SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` } // +genclient @@ -2730,17 +2630,19 @@ type RegisterVirtualCluster struct { } type RegisterVirtualClusterSpec struct { - ServiceUID string `json:"serviceUID,omitempty"` - Project string `json:"project,omitempty"` - Name string `json:"name,omitempty"` - ForceName bool `json:"forceName,omitempty"` - Chart string `json:"chart,omitempty"` - Version string `json:"version,omitempty"` - Values string `json:"values,omitempty"` + ServiceUID string `json:"serviceUID,omitempty"` + KubernetesVersion string `json:"kubernetesVersion,omitempty"` + Project string `json:"project,omitempty"` + Name string `json:"name,omitempty"` + ForceName bool `json:"forceName,omitempty"` + Chart string `json:"chart,omitempty"` + Version string `json:"version,omitempty"` + Values string `json:"values,omitempty"` } type RegisterVirtualClusterStatus struct { - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` + Namespace string `json:"namespace,omitempty"` } // +genclient @@ -2788,6 +2690,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"` } @@ -2829,6 +2732,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 @@ -2871,6 +2804,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 @@ -2998,6 +2946,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"` @@ -3105,7 +3070,8 @@ type VirtualClusterExternalDatabaseSpec struct { } type VirtualClusterExternalDatabaseStatus struct { - DataSource string `json:"dataSource,omitempty"` + DataSource string `json:"dataSource,omitempty"` + IdentityProvider string `json:"identityProvider,omitempty"` } // +genclient @@ -3145,6 +3111,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"` } @@ -3157,6 +3144,22 @@ 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"` +} + type VirtualClusterRole struct { ObjectName `json:",inline"` Role string `json:"role,omitempty"` @@ -3183,6 +3186,33 @@ type VirtualClusterSchemaStatus struct { 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 @@ -3203,6 +3233,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 @@ -4465,556 +4506,24 @@ func (s *storageDatabaseConnector) DeleteDatabaseConnector(ctx context.Context, return sync, err } -// DevPodEnvironmentTemplate Functions and Structs +// DirectClusterEndpointToken Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateStrategy struct { +type DirectClusterEndpointTokenStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateStatusStrategy struct { +type DirectClusterEndpointTokenStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplateList struct { +type DirectClusterEndpointTokenList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` -} - -func (DevPodEnvironmentTemplate) NewStatus() interface{} { - return DevPodEnvironmentTemplateStatus{} -} - -func (pc *DevPodEnvironmentTemplate) GetStatus() interface{} { - return pc.Status -} - -func (pc *DevPodEnvironmentTemplate) SetStatus(s interface{}) { - pc.Status = s.(DevPodEnvironmentTemplateStatus) -} - -func (pc *DevPodEnvironmentTemplate) GetSpec() interface{} { - return pc.Spec -} - -func (pc *DevPodEnvironmentTemplate) SetSpec(s interface{}) { - pc.Spec = s.(DevPodEnvironmentTemplateSpec) -} - -func (pc *DevPodEnvironmentTemplate) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *DevPodEnvironmentTemplate) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc DevPodEnvironmentTemplate) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store DevPodEnvironmentTemplate. -// +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) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodEnvironmentTemplateRegistry(sp builders.StandardStorageProvider) DevPodEnvironmentTemplateRegistry { - return &storageDevPodEnvironmentTemplate{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageDevPodEnvironmentTemplate struct { - builders.StandardStorageProvider -} - -func (s *storageDevPodEnvironmentTemplate) ListDevPodEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodEnvironmentTemplateList, 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.(*DevPodEnvironmentTemplateList), err -} - -func (s *storageDevPodEnvironmentTemplate) GetDevPodEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodEnvironmentTemplate, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*DevPodEnvironmentTemplate), nil -} - -func (s *storageDevPodEnvironmentTemplate) CreateDevPodEnvironmentTemplate(ctx context.Context, object *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevPodEnvironmentTemplate), nil -} - -func (s *storageDevPodEnvironmentTemplate) UpdateDevPodEnvironmentTemplate(ctx context.Context, object *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, 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 -} - -func (s *storageDevPodEnvironmentTemplate) DeleteDevPodEnvironmentTemplate(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 -// -// +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceStatusStrategy 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 DevPodWorkspaceInstanceCancelList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceCancel `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceDownloadList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceDownload `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceLogList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceLog `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceStopList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceStop `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTasksList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTasks `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceTroubleshootList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceInstanceUpList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceUp `json:"items"` -} - -func (DevPodWorkspaceInstance) NewStatus() interface{} { - return DevPodWorkspaceInstanceStatus{} -} - -func (pc *DevPodWorkspaceInstance) GetStatus() interface{} { - return pc.Status -} - -func (pc *DevPodWorkspaceInstance) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspaceInstanceStatus) -} - -func (pc *DevPodWorkspaceInstance) GetSpec() interface{} { - return pc.Spec -} - -func (pc *DevPodWorkspaceInstance) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspaceInstanceSpec) -} - -func (pc *DevPodWorkspaceInstance) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *DevPodWorkspaceInstance) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc DevPodWorkspaceInstance) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store DevPodWorkspaceInstance. -// +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) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspaceInstanceRegistry(sp builders.StandardStorageProvider) DevPodWorkspaceInstanceRegistry { - return &storageDevPodWorkspaceInstance{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageDevPodWorkspaceInstance struct { - builders.StandardStorageProvider -} - -func (s *storageDevPodWorkspaceInstance) ListDevPodWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceInstanceList, 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.(*DevPodWorkspaceInstanceList), err -} - -func (s *storageDevPodWorkspaceInstance) GetDevPodWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceInstance, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspaceInstance), nil -} - -func (s *storageDevPodWorkspaceInstance) CreateDevPodWorkspaceInstance(ctx context.Context, object *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspaceInstance), nil -} - -func (s *storageDevPodWorkspaceInstance) UpdateDevPodWorkspaceInstance(ctx context.Context, object *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, 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 -} - -func (s *storageDevPodWorkspaceInstance) DeleteDevPodWorkspaceInstance(ctx context.Context, id string) (bool, error) { - st := s.GetStandardStorage() - _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) - return sync, err -} - -// DevPodWorkspacePreset Functions and Structs -// -// +k8s:deepcopy-gen=false -type DevPodWorkspacePresetStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type DevPodWorkspacePresetStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspacePresetList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspacePreset `json:"items"` -} - -func (DevPodWorkspacePreset) NewStatus() interface{} { - return DevPodWorkspacePresetStatus{} -} - -func (pc *DevPodWorkspacePreset) GetStatus() interface{} { - return pc.Status -} - -func (pc *DevPodWorkspacePreset) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspacePresetStatus) -} - -func (pc *DevPodWorkspacePreset) GetSpec() interface{} { - return pc.Spec -} - -func (pc *DevPodWorkspacePreset) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspacePresetSpec) -} - -func (pc *DevPodWorkspacePreset) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *DevPodWorkspacePreset) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc DevPodWorkspacePreset) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store DevPodWorkspacePreset. -// +k8s:deepcopy-gen=false -type DevPodWorkspacePresetRegistry interface { - ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, error) - GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) - CreateDevPodWorkspacePreset(ctx context.Context, id *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) - UpdateDevPodWorkspacePreset(ctx context.Context, id *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) - DeleteDevPodWorkspacePreset(ctx context.Context, id string) (bool, error) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspacePresetRegistry(sp builders.StandardStorageProvider) DevPodWorkspacePresetRegistry { - return &storageDevPodWorkspacePreset{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageDevPodWorkspacePreset struct { - builders.StandardStorageProvider -} - -func (s *storageDevPodWorkspacePreset) ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, error) { - if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { - return nil, fmt.Errorf("field selector not supported yet") - } - st := s.GetStandardStorage() - obj, err := st.List(ctx, options) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspacePresetList), err -} - -func (s *storageDevPodWorkspacePreset) GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspacePreset), nil -} - -func (s *storageDevPodWorkspacePreset) CreateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspacePreset), nil -} - -func (s *storageDevPodWorkspacePreset) UpdateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { - st := s.GetStandardStorage() - obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspacePreset), nil -} - -func (s *storageDevPodWorkspacePreset) DeleteDevPodWorkspacePreset(ctx context.Context, id string) (bool, error) { - st := s.GetStandardStorage() - _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) - return sync, err -} - -// DevPodWorkspaceTemplate Functions and Structs -// -// +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevPodWorkspaceTemplateList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` -} - -func (DevPodWorkspaceTemplate) NewStatus() interface{} { - return DevPodWorkspaceTemplateStatus{} -} - -func (pc *DevPodWorkspaceTemplate) GetStatus() interface{} { - return pc.Status -} - -func (pc *DevPodWorkspaceTemplate) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspaceTemplateStatus) -} - -func (pc *DevPodWorkspaceTemplate) GetSpec() interface{} { - return pc.Spec -} - -func (pc *DevPodWorkspaceTemplate) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspaceTemplateSpec) -} - -func (pc *DevPodWorkspaceTemplate) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *DevPodWorkspaceTemplate) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc DevPodWorkspaceTemplate) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store DevPodWorkspaceTemplate. -// +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) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspaceTemplateRegistry(sp builders.StandardStorageProvider) DevPodWorkspaceTemplateRegistry { - return &storageDevPodWorkspaceTemplate{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageDevPodWorkspaceTemplate struct { - builders.StandardStorageProvider -} - -func (s *storageDevPodWorkspaceTemplate) ListDevPodWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceTemplateList, 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.(*DevPodWorkspaceTemplateList), err -} - -func (s *storageDevPodWorkspaceTemplate) GetDevPodWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceTemplate, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspaceTemplate), nil -} - -func (s *storageDevPodWorkspaceTemplate) CreateDevPodWorkspaceTemplate(ctx context.Context, object *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevPodWorkspaceTemplate), nil -} - -func (s *storageDevPodWorkspaceTemplate) UpdateDevPodWorkspaceTemplate(ctx context.Context, object *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, 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 -} - -func (s *storageDevPodWorkspaceTemplate) DeleteDevPodWorkspaceTemplate(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 -// -// +k8s:deepcopy-gen=false -type DirectClusterEndpointTokenStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type DirectClusterEndpointTokenStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DirectClusterEndpointTokenList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DirectClusterEndpointToken `json:"items"` + Items []DirectClusterEndpointToken `json:"items"` } func (DirectClusterEndpointToken) NewStatus() interface{} { @@ -6076,6 +5585,125 @@ func (s *storageNodeClaim) DeleteNodeClaim(ctx context.Context, id string) (bool return sync, err } +// NodeEnvironment Functions and Structs +// +// +k8s:deepcopy-gen=false +type NodeEnvironmentStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type NodeEnvironmentStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeEnvironmentList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeEnvironment `json:"items"` +} + +func (NodeEnvironment) NewStatus() interface{} { + return NodeEnvironmentStatus{} +} + +func (pc *NodeEnvironment) GetStatus() interface{} { + return pc.Status +} + +func (pc *NodeEnvironment) SetStatus(s interface{}) { + pc.Status = s.(NodeEnvironmentStatus) +} + +func (pc *NodeEnvironment) GetSpec() interface{} { + return pc.Spec +} + +func (pc *NodeEnvironment) SetSpec(s interface{}) { + pc.Spec = s.(NodeEnvironmentSpec) +} + +func (pc *NodeEnvironment) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *NodeEnvironment) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc NodeEnvironment) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store NodeEnvironment. +// +k8s:deepcopy-gen=false +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 NewNodeEnvironmentRegistry(sp builders.StandardStorageProvider) NodeEnvironmentRegistry { + return &storageNodeEnvironment{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageNodeEnvironment struct { + builders.StandardStorageProvider +} + +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") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*NodeEnvironmentList), err +} + +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.(*NodeEnvironment), nil +} + +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.(*NodeEnvironment), nil +} + +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.(*NodeEnvironment), nil +} + +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 +} + // NodeProvider Functions and Structs // // +k8s:deepcopy-gen=false @@ -6096,6 +5724,14 @@ type NodeProviderList struct { Items []NodeProvider `json:"items"` } +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type NodeProviderExecList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeProviderExec `json:"items"` +} + func (NodeProvider) NewStatus() interface{} { return NodeProviderStatus{} } @@ -6630,6 +6266,14 @@ type ProjectMigrateVirtualClusterInstanceList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +type ProjectNodeTypesList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ProjectNodeTypes `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + type ProjectTemplatesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -8322,6 +7966,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 @@ -8533,6 +8296,38 @@ 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 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{} } diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index e137b878..5d293c88 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -14,6 +14,7 @@ import ( 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" ) @@ -2022,6 +2023,11 @@ func (in *ConfigStatus) DeepCopyInto(out *ConfigStatus) { *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) @@ -2445,7 +2451,7 @@ func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2454,18 +2460,18 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. -func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointToken. +func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(DirectClusterEndpointToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { +func (in *DirectClusterEndpointToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2473,13 +2479,13 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *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([]DevPodEnvironmentTemplate, len(*in)) + *out = make([]DirectClusterEndpointToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2487,18 +2493,18 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DirectClusterEndpointTokenList. +func (in *DirectClusterEndpointTokenList) DeepCopy() *DirectClusterEndpointTokenList { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(DirectClusterEndpointTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { +func (in *DirectClusterEndpointTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2506,86 +2512,64 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *DirectClusterEndpointTokenSpec) DeepCopyInto(out *DirectClusterEndpointTokenSpec) { *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 { - if in == nil { - return nil + if in.Scope != nil { + in, out := &in.Scope, &out.Scope + *out = new(storagev1.AccessKeyScope) + (*in).DeepCopyInto(*out) } - out := new(DevPodEnvironmentTemplateSpec) - 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) { - *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 DirectClusterEndpointTokenSpec. +func (in *DirectClusterEndpointTokenSpec) DeepCopy() *DirectClusterEndpointTokenSpec { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(DirectClusterEndpointTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// 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(DevPodWorkspaceInstance) + out := new(DirectClusterEndpointTokenStatus) 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 *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { +func (in *Event) DeepCopyInto(out *Event) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancel. -func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { +// 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(DevPodWorkspaceInstanceCancel) + out := new(Event) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { +func (in *Event) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2593,13 +2577,13 @@ func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { +func (in *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([]DevPodWorkspaceInstanceCancel, len(*in)) + *out = make([]Event, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2607,18 +2591,18 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceIn return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancelList. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventList. +func (in *EventList) DeepCopy() *EventList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceCancelList) + out := new(EventList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { +func (in *EventList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2626,83 +2610,60 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { +func (in *EventSpec) DeepCopyInto(out *EventSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. -func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSpec. +func (in *EventSpec) DeepCopy() *EventSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownload) + out := new(EventSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { +func (in *EventStatus) DeepCopyInto(out *EventStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.Event.DeepCopyInto(&out.Event) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. +func (in *EventStatus) DeepCopy() *EventStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownloadList) + out := new(EventStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { +func (in *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 DevPodWorkspaceInstanceDownloadOptions. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { +// 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(DevPodWorkspaceInstanceDownloadOptions) + out := new(Feature) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { +func (in *Feature) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2710,13 +2671,13 @@ func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Objec } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *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([]DevPodWorkspaceInstance, len(*in)) + *out = make([]Feature, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2724,18 +2685,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 FeatureList. +func (in *FeatureList) DeepCopy() *FeatureList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(FeatureList) 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 *FeatureList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2743,130 +2704,97 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { +func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLog. -func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. +func (in *FeatureSpec) DeepCopy() *FeatureSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLog) + out := new(FeatureSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { +func (in *FeatureStatus) DeepCopyInto(out *FeatureStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceLog, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + out.Feature = in.Feature return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. -func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureStatus. +func (in *FeatureStatus) DeepCopy() *FeatureStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLogList) + out := new(FeatureStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { +func (in *GroupResources) DeepCopyInto(out *GroupResources) { *out = *in - out.TypeMeta = in.TypeMeta - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogOptions. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { - 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(DevPodWorkspaceInstanceLogOptions) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { - 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 *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { - *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) 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 GroupResources. +func (in *GroupResources) DeepCopy() *GroupResources { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + 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 *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { +func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) - if in.SleepModeConfig != nil { - in, out := &in.SleepModeConfig, &out.SleepModeConfig - *out = new(clusterv1.SleepModeConfig) + 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 DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { +// 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(DevPodWorkspaceInstanceStatus) + 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 *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { +func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2875,18 +2803,18 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. -func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthToken. +func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStop) + out := new(IngressAuthToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { +func (in *IngressAuthToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2894,13 +2822,13 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { +func (in *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([]DevPodWorkspaceInstanceStop, len(*in)) + *out = make([]IngressAuthToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2908,18 +2836,18 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInst return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopList. -func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenList. +func (in *IngressAuthTokenList) DeepCopy() *IngressAuthTokenList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopList) + out := new(IngressAuthTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { +func (in *IngressAuthTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2927,91 +2855,59 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopSpec. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceStopSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { +func (in *IngressAuthTokenSpec) DeepCopyInto(out *IngressAuthTokenSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressAuthTokenSpec. +func (in *IngressAuthTokenSpec) DeepCopy() *IngressAuthTokenSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopStatus) + 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 *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { +func (in *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { *out = *in - if in.Result != nil { - in, out := &in.Result, &out.Result - *out = make([]byte, len(*in)) - copy(*out, *in) - } - if in.Logs != nil { - in, out := &in.Logs, &out.Logs - *out = make([]byte, len(*in)) - copy(*out, *in) - } - in.CreatedAt.DeepCopyInto(&out.CreatedAt) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. -func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { +// 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(DevPodWorkspaceInstanceTask) + 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 *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanceTasks) { +func (in *Kiosk) DeepCopyInto(out *Kiosk) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Tasks != nil { - in, out := &in.Tasks, &out.Tasks - *out = make([]DevPodWorkspaceInstanceTask, len(*in)) - 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 DevPodWorkspaceInstanceTasks. -func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { +// 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(DevPodWorkspaceInstanceTasks) + out := new(Kiosk) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { +func (in *Kiosk) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3019,13 +2915,13 @@ func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { +func (in *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([]DevPodWorkspaceInstanceTasks, len(*in)) + *out = make([]Kiosk, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3033,18 +2929,18 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksList. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskList. +func (in *KioskList) DeepCopy() *KioskList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasksList) + out := new(KioskList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { +func (in *KioskList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3052,84 +2948,73 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { +func (in *KioskSpec) DeepCopyInto(out *KioskSpec) { *out = *in - out.TypeMeta = in.TypeMeta + 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 DevPodWorkspaceInstanceTasksOptions. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { +// 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(DevPodWorkspaceInstanceTasksOptions) + out := new(KioskSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KioskStatus) DeepCopyInto(out *KioskStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KioskStatus. +func (in *KioskStatus) DeepCopy() *KioskStatus { + if in == nil { + return nil } - return nil + out := new(KioskStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { +func (in *License) DeepCopyInto(out *License) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - if in.Workspace != nil { - in, out := &in.Workspace, &out.Workspace - *out = new(DevPodWorkspaceInstance) - (*in).DeepCopyInto(*out) - } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = new(storagev1.DevPodWorkspaceTemplate) - (*in).DeepCopyInto(*out) - } - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = make([]corev1.Pod, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PVCs != nil { - in, out := &in.PVCs, &out.PVCs - *out = make([]corev1.PersistentVolumeClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Netmaps != nil { - in, out := &in.Netmaps, &out.Netmaps - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Errors != nil { - in, out := &in.Errors, &out.Errors - *out = make([]string, len(*in)) - copy(*out, *in) - } + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License. +func (in *License) DeepCopy() *License { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshoot) + out := new(License) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { +func (in *License) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3137,13 +3022,13 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { +func (in *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([]DevPodWorkspaceInstanceTroubleshoot, len(*in)) + *out = make([]License, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3151,18 +3036,18 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorks return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. +func (in *LicenseList) DeepCopy() *LicenseList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshootList) + out := new(LicenseList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { +func (in *LicenseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3170,27 +3055,27 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Obje } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { +func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { *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 DevPodWorkspaceInstanceUp. -func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { +// 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(DevPodWorkspaceInstanceUp) + out := new(LicenseRequest) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { +func (in *LicenseRequest) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3198,13 +3083,13 @@ func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { +func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceUp, len(*in)) + *out = make([]LicenseRequest, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3212,18 +3097,18 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstan return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. -func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestList. +func (in *LicenseRequestList) DeepCopy() *LicenseRequestList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpList) + out := new(LicenseRequestList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { +func (in *LicenseRequestList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3231,153 +3116,114 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { +func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { *out = *in + in.Input.DeepCopyInto(&out.Input) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. +func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpSpec) + 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 *DevPodWorkspaceInstanceUpStatus) DeepCopyInto(out *DevPodWorkspaceInstanceUpStatus) { +func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { *out = *in + if in.Output != nil { + in, out := &in.Output, &out.Output + *out = new(licenseapi.GenericRequestOutput) + (*in).DeepCopyInto(*out) + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. -func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { +// 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(DevPodWorkspaceInstanceUpStatus) + 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 *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { +func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. -func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { +// 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(DevPodWorkspacePreset) + out := new(LicenseSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { +func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspacePreset, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. -func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { - if in == nil { - return nil + if in.License != nil { + in, out := &in.License, &out.License + *out = new(licenseapi.License) + (*in).DeepCopyInto(*out) } - out := new(DevPodWorkspacePresetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c + if in.ResourceUsage != nil { + in, out := &in.ResourceUsage, &out.ResourceUsage + *out = make(map[string]licenseapi.ResourceCount, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { - *out = *in - in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. -func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { - if in == nil { - return nil + if in.PlatformDatabase != nil { + in, out := &in.PlatformDatabase, &out.PlatformDatabase + *out = new(licenseapi.PlatformDatabase) + **out = **in } - out := new(DevPodWorkspacePresetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { - *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. -func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { +// 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(DevPodWorkspacePresetStatus) + 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 *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { *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 DevPodWorkspaceTemplate. -func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. +func (in *LicenseToken) DeepCopy() *LicenseToken { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(LicenseToken) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { +func (in *LicenseToken) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3385,13 +3231,13 @@ func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { +func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceTemplate, len(*in)) + *out = make([]LicenseToken, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3399,18 +3245,18 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. +func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(LicenseTokenList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { +func (in *LicenseTokenList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3418,61 +3264,64 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { *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 LicenseTokenSpec. +func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(LicenseTokenSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + 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 DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. +func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateStatus) + out := new(LicenseTokenStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DirectClusterEndpointToken) DeepCopyInto(out *DirectClusterEndpointToken) { +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 DirectClusterEndpointToken. -func (in *DirectClusterEndpointToken) DeepCopy() *DirectClusterEndpointToken { +// 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(DirectClusterEndpointToken) + out := new(LoftUpgrade) 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 *LoftUpgrade) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3480,13 +3329,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 *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([]DirectClusterEndpointToken, len(*in)) + *out = make([]LoftUpgrade, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3494,18 +3343,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 LoftUpgradeList. +func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { if in == nil { return nil } - out := new(DirectClusterEndpointTokenList) + out := new(LoftUpgradeList) 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 *LoftUpgradeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3513,172 +3362,143 @@ 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 *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { *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 LoftUpgradeSpec. +func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { if in == nil { return nil } - out := new(DirectClusterEndpointTokenSpec) + 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 *DirectClusterEndpointTokenStatus) DeepCopyInto(out *DirectClusterEndpointTokenStatus) { +func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { *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 LoftUpgradeStatus. +func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { if in == nil { return nil } - out := new(DirectClusterEndpointTokenStatus) + 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 *Event) DeepCopyInto(out *Event) { +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 Event. -func (in *Event) DeepCopy() *Event { +// 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(Event) + out := new(MaintenanceWindow) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Event) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventList) DeepCopyInto(out *EventList) { +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([]Event, 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 EventList. -func (in *EventList) DeepCopy() *EventList { +// 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(EventList) + out := new(ManagementRole) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *EventList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventSpec) DeepCopyInto(out *EventSpec) { +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 EventSpec. -func (in *EventSpec) DeepCopy() *EventSpec { +// 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(EventSpec) + out := new(NodeClaim) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EventStatus) DeepCopyInto(out *EventStatus) { - *out = *in - in.Event.DeepCopyInto(&out.Event) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventStatus. -func (in *EventStatus) DeepCopy() *EventStatus { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeClaim) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(EventStatus) - 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 *Feature) DeepCopyInto(out *Feature) { +func (in *NodeClaimData) DeepCopyInto(out *NodeClaimData) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + 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 Feature. -func (in *Feature) DeepCopy() *Feature { +// 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(Feature) + out := new(NodeClaimData) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Feature) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FeatureList) DeepCopyInto(out *FeatureList) { +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([]Feature, len(*in)) + *out = make([]NodeClaim, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3686,18 +3506,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 NodeClaimList. +func (in *NodeClaimList) DeepCopy() *NodeClaimList { if in == nil { return nil } - out := new(FeatureList) + out := new(NodeClaimList) 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 *NodeClaimList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3705,131 +3525,116 @@ 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 *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { *out = *in + in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec. -func (in *FeatureSpec) DeepCopy() *FeatureSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimSpec. +func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { if in == nil { return nil } - out := new(FeatureSpec) + 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 *FeatureStatus) DeepCopyInto(out *FeatureStatus) { +func (in *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { *out = *in - out.Feature = in.Feature + in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) 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 NodeClaimStatus. +func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { if in == nil { return nil } - out := new(FeatureStatus) + 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 *GroupResources) DeepCopyInto(out *GroupResources) { +func (in *NodeEnvironment) DeepCopyInto(out *NodeEnvironment) { *out = *in - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.ResourceNames != nil { - in, out := &in.ResourceNames, &out.ResourceNames - *out = make([]string, len(*in)) - copy(*out, *in) - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResources. -func (in *GroupResources) DeepCopy() *GroupResources { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeEnvironment. +func (in *NodeEnvironment) DeepCopy() *NodeEnvironment { if in == nil { return nil } - out := new(GroupResources) + out := new(NodeEnvironment) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ImageBuilder) DeepCopyInto(out *ImageBuilder) { - *out = *in - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = new(bool) - **out = **in - } - if in.Replicas != nil { - in, out := &in.Replicas, &out.Replicas - *out = new(int32) - **out = **in - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = new(corev1.ResourceRequirements) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageBuilder. -func (in *ImageBuilder) DeepCopy() *ImageBuilder { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *NodeEnvironment) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(ImageBuilder) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressAuthToken) DeepCopyInto(out *IngressAuthToken) { +func (in *NodeEnvironmentData) DeepCopyInto(out *NodeEnvironmentData) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.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 IngressAuthToken. -func (in *IngressAuthToken) DeepCopy() *IngressAuthToken { +// 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(IngressAuthToken) + out := new(NodeEnvironmentData) 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 *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([]IngressAuthToken, len(*in)) + *out = make([]NodeEnvironment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3837,18 +3642,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 NodeEnvironmentList. +func (in *NodeEnvironmentList) DeepCopy() *NodeEnvironmentList { if in == nil { return nil } - out := new(IngressAuthTokenList) + out := new(NodeEnvironmentList) 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 *NodeEnvironmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3856,59 +3661,61 @@ 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 *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { *out = *in + in.NodeEnvironmentSpec.DeepCopyInto(&out.NodeEnvironmentSpec) 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 NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { if in == nil { return nil } - out := new(IngressAuthTokenSpec) + 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 *IngressAuthTokenStatus) DeepCopyInto(out *IngressAuthTokenStatus) { +func (in *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { *out = *in + in.NodeEnvironmentStatus.DeepCopyInto(&out.NodeEnvironmentStatus) 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 NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { if in == nil { return nil } - out := new(IngressAuthTokenStatus) + 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 *Kiosk) DeepCopyInto(out *Kiosk) { +func (in *NodeProvider) DeepCopyInto(out *NodeProvider) { *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 Kiosk. -func (in *Kiosk) DeepCopy() *Kiosk { +// 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(Kiosk) + out := new(NodeProvider) 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 *NodeProvider) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3916,13 +3723,18 @@ 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 *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([]Kiosk, 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]) } @@ -3930,125 +3742,98 @@ 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 NodeProviderBCMGetResourcesResult. +func (in *NodeProviderBCMGetResourcesResult) DeepCopy() *NodeProviderBCMGetResourcesResult { if in == nil { return nil } - out := new(KioskList) + out := new(NodeProviderBCMGetResourcesResult) 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 *NodeProviderBCMNodeGroup) DeepCopyInto(out *NodeProviderBCMNodeGroup) { *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) + if in.Nodes != nil { + in, out := &in.Nodes, &out.Nodes + *out = make([]string, len(*in)) + copy(*out, *in) + } 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 NodeProviderBCMNodeGroup. +func (in *NodeProviderBCMNodeGroup) DeepCopy() *NodeProviderBCMNodeGroup { if in == nil { return nil } - out := new(KioskSpec) + 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 *KioskStatus) DeepCopyInto(out *KioskStatus) { +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 KioskStatus. -func (in *KioskStatus) DeepCopy() *KioskStatus { +// 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(KioskStatus) + 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 *License) DeepCopyInto(out *License) { +func (in *NodeProviderBCMTestConnectionResult) DeepCopyInto(out *NodeProviderBCMTestConnectionResult) { *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 NodeProviderBCMTestConnectionResult. +func (in *NodeProviderBCMTestConnectionResult) DeepCopy() *NodeProviderBCMTestConnectionResult { if in == nil { return nil } - out := new(License) + out := new(NodeProviderBCMTestConnectionResult) 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 *NodeProviderCalculateCostResult) DeepCopyInto(out *NodeProviderCalculateCostResult) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]License, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList. -func (in *LicenseList) DeepCopy() *LicenseList { +// 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(LicenseList) + out := new(NodeProviderCalculateCostResult) 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 *NodeProviderExec) DeepCopyInto(out *NodeProviderExec) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4057,18 +3842,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 NodeProviderExec. +func (in *NodeProviderExec) DeepCopy() *NodeProviderExec { if in == nil { return nil } - out := new(LicenseRequest) + out := new(NodeProviderExec) 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 *NodeProviderExec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4076,13 +3861,13 @@ func (in *LicenseRequest) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseRequestList) DeepCopyInto(out *LicenseRequestList) { +func (in *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([]LicenseRequest, len(*in)) + *out = make([]NodeProviderExec, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4090,18 +3875,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 NodeProviderExecList. +func (in *NodeProviderExecList) DeepCopy() *NodeProviderExecList { if in == nil { return nil } - out := new(LicenseRequestList) + out := new(NodeProviderExecList) 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 *NodeProviderExecList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4109,109 +3894,82 @@ 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 *NodeProviderExecResult) DeepCopyInto(out *NodeProviderExecResult) { *out = *in - in.Input.DeepCopyInto(&out.Input) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseRequestSpec. -func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { +// 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(LicenseRequestSpec) + 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 *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { +func (in *NodeProviderExecSpec) DeepCopyInto(out *NodeProviderExecSpec) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } + in.Args.DeepCopyInto(&out.Args) 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 NodeProviderExecSpec. +func (in *NodeProviderExecSpec) DeepCopy() *NodeProviderExecSpec { if in == nil { return nil } - out := new(LicenseRequestStatus) + 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 *LicenseSpec) DeepCopyInto(out *LicenseSpec) { +func (in *NodeProviderExecStatus) DeepCopyInto(out *NodeProviderExecStatus) { *out = *in + in.Result.DeepCopyInto(&out.Result) 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 NodeProviderExecStatus. +func (in *NodeProviderExecStatus) DeepCopy() *NodeProviderExecStatus { if in == nil { return nil } - out := new(LicenseSpec) + 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 *LicenseStatus) DeepCopyInto(out *LicenseStatus) { +func (in *NodeProviderList) DeepCopyInto(out *NodeProviderList) { *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() + 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 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 NodeProviderList. +func (in *NodeProviderList) DeepCopy() *NodeProviderList { if in == nil { return nil } - out := new(LicenseToken) + out := new(NodeProviderList) 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 *NodeProviderList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4219,97 +3977,77 @@ 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 *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([]LicenseToken, 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 LicenseTokenList. -func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { +// 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(LicenseTokenList) + out := new(NodeProviderSpec) 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 - } - return nil -} - // 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 *NodeProviderStatus) DeepCopyInto(out *NodeProviderStatus) { *out = *in + in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) 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 NodeProviderStatus. +func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { if in == nil { return nil } - out := new(LicenseTokenSpec) + 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 *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { +func (in *NodeProviderTerraformValidateResult) DeepCopyInto(out *NodeProviderTerraformValidateResult) { *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 LicenseTokenStatus. -func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { +// 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(LicenseTokenStatus) + 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 *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { +func (in *NodeType) DeepCopyInto(out *NodeType) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgrade. -func (in *LoftUpgrade) DeepCopy() *LoftUpgrade { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. +func (in *NodeType) DeepCopy() *NodeType { if in == nil { return nil } - out := new(LoftUpgrade) + out := new(NodeType) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgrade) DeepCopyObject() runtime.Object { +func (in *NodeType) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4317,13 +4055,13 @@ func (in *LoftUpgrade) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { +func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LoftUpgrade, len(*in)) + *out = make([]NodeType, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4331,18 +4069,18 @@ func (in *LoftUpgradeList) DeepCopyInto(out *LoftUpgradeList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeList. -func (in *LoftUpgradeList) DeepCopy() *LoftUpgradeList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeList. +func (in *NodeTypeList) DeepCopy() *NodeTypeList { if in == nil { return nil } - out := new(LoftUpgradeList) + out := new(NodeTypeList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { +func (in *NodeTypeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4350,93 +4088,84 @@ func (in *LoftUpgradeList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeSpec) DeepCopyInto(out *LoftUpgradeSpec) { +func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { *out = *in + in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeSpec. -func (in *LoftUpgradeSpec) DeepCopy() *LoftUpgradeSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. +func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { if in == nil { return nil } - out := new(LoftUpgradeSpec) + out := new(NodeTypeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoftUpgradeStatus) DeepCopyInto(out *LoftUpgradeStatus) { +func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in + in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoftUpgradeStatus. -func (in *LoftUpgradeStatus) DeepCopy() *LoftUpgradeStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. +func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { if in == nil { return nil } - out := new(LoftUpgradeStatus) + out := new(NodeTypeStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { +func (in *OIDC) DeepCopyInto(out *OIDC) { *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MaintenanceWindow. -func (in *MaintenanceWindow) DeepCopy() *MaintenanceWindow { - if in == nil { - return nil + if in.Clients != nil { + in, out := &in.Clients, &out.Clients + *out = make([]OIDCClientSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - out := new(MaintenanceWindow) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ManagementRole) DeepCopyInto(out *ManagementRole) { - *out = *in - out.ObjectName = in.ObjectName - out.AssignedVia = in.AssignedVia return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementRole. -func (in *ManagementRole) DeepCopy() *ManagementRole { +// 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(ManagementRole) + 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 *NodeClaim) DeepCopyInto(out *NodeClaim) { +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 NodeClaim. -func (in *NodeClaim) DeepCopy() *NodeClaim { +// 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(NodeClaim) + out := new(OIDCClient) 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 { +func (in *OIDCClient) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4444,13 +4173,13 @@ func (in *NodeClaim) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { +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([]NodeClaim, len(*in)) + *out = make([]OIDCClient, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4458,18 +4187,18 @@ func (in *NodeClaimList) DeepCopyInto(out *NodeClaimList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimList. -func (in *NodeClaimList) DeepCopy() *NodeClaimList { +// 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(NodeClaimList) + out := new(OIDCClientList) 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 { +func (in *OIDCClientList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4477,136 +4206,105 @@ func (in *NodeClaimList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { +func (in *OIDCClientSpec) DeepCopyInto(out *OIDCClientSpec) { *out = *in - in.NodeClaimSpec.DeepCopyInto(&out.NodeClaimSpec) + 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 NodeClaimSpec. -func (in *NodeClaimSpec) DeepCopy() *NodeClaimSpec { +// 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(NodeClaimSpec) + 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 *NodeClaimStatus) DeepCopyInto(out *NodeClaimStatus) { +func (in *OIDCClientStatus) DeepCopyInto(out *OIDCClientStatus) { *out = *in - in.NodeClaimStatus.DeepCopyInto(&out.NodeClaimStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeClaimStatus. -func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { +// 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(NodeClaimStatus) + 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { +func (in *ObjectName) DeepCopyInto(out *ObjectName) { *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 { +// 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(NodeProvider) + out := new(ObjectName) 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 *NodeProviderList) DeepCopyInto(out *NodeProviderList) { +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([]NodeProvider, 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 NodeProviderList. -func (in *NodeProviderList) DeepCopy() *NodeProviderList { +// 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(NodeProviderList) + out := new(ObjectPermission) 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 *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { +func (in *Operation) DeepCopyInto(out *Operation) { *out = *in - in.NodeProviderSpec.DeepCopyInto(&out.NodeProviderSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderSpec. -func (in *NodeProviderSpec) DeepCopy() *NodeProviderSpec { - if in == nil { - return nil + 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) } - 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 - in.NodeProviderStatus.DeepCopyInto(&out.NodeProviderStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderStatus. -func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { +// 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(NodeProviderStatus) + 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 *NodeType) DeepCopyInto(out *NodeType) { +func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4615,18 +4313,18 @@ func (in *NodeType) DeepCopyInto(out *NodeType) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeType. -func (in *NodeType) DeepCopy() *NodeType { +// 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(NodeType) + out := new(OwnedAccessKey) 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 { +func (in *OwnedAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4634,13 +4332,13 @@ func (in *NodeType) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { +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([]NodeType, len(*in)) + *out = make([]OwnedAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -4648,18 +4346,18 @@ func (in *NodeTypeList) DeepCopyInto(out *NodeTypeList) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeList. -func (in *NodeTypeList) DeepCopy() *NodeTypeList { +// 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(NodeTypeList) + out := new(OwnedAccessKeyList) 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 { +func (in *OwnedAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4667,84 +4365,98 @@ func (in *NodeTypeList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeTypeSpec) DeepCopyInto(out *NodeTypeSpec) { +func (in *OwnedAccessKeySpec) DeepCopyInto(out *OwnedAccessKeySpec) { *out = *in - in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + in.AccessKeySpec.DeepCopyInto(&out.AccessKeySpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeSpec. -func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { +// 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(NodeTypeSpec) + 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 *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { +func (in *OwnedAccessKeyStatus) DeepCopyInto(out *OwnedAccessKeyStatus) { *out = *in - in.NodeTypeStatus.DeepCopyInto(&out.NodeTypeStatus) + in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTypeStatus. -func (in *NodeTypeStatus) DeepCopy() *NodeTypeStatus { +// 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(NodeTypeStatus) + out := new(OwnedAccessKeyStatus) 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 *PlatformDB) DeepCopyInto(out *PlatformDB) { *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 PlatformDB. +func (in *PlatformDB) DeepCopy() *PlatformDB { + if in == nil { + return nil + } + out := new(PlatformDB) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PredefinedApp) DeepCopyInto(out *PredefinedApp) { + *out = *in + if in.Clusters != nil { + in, out := &in.Clusters, &out.Clusters + *out = make([]string, len(*in)) + copy(*out, *in) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDC. -func (in *OIDC) DeepCopy() *OIDC { +// 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(OIDC) + 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 *OIDCClient) DeepCopyInto(out *OIDCClient) { +func (in *Project) DeepCopyInto(out *Project) { *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 Project. +func (in *Project) DeepCopy() *Project { if in == nil { return nil } - out := new(OIDCClient) + out := new(Project) 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 *Project) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4752,32 +4464,27 @@ 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 *ProjectChartInfo) DeepCopyInto(out *ProjectChartInfo) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]OIDCClient, 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 OIDCClientList. -func (in *OIDCClientList) DeepCopy() *OIDCClientList { +// 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(OIDCClientList) + out := new(ProjectChartInfo) 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 *ProjectChartInfo) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4785,321 +4492,74 @@ 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 *ProjectChartInfoList) DeepCopyInto(out *ProjectChartInfoList) { *out = *in - if in.RedirectURIs != nil { - in, out := &in.RedirectURIs, &out.RedirectURIs - *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([]ProjectChartInfo, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCClientSpec. -func (in *OIDCClientSpec) DeepCopy() *OIDCClientSpec { +// 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(OIDCClientSpec) + out := new(ProjectChartInfoList) 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // 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 *ProjectChartInfoSpec) DeepCopyInto(out *ProjectChartInfoSpec) { *out = *in + in.ChartInfoSpec.DeepCopyInto(&out.ChartInfoSpec) 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 ProjectChartInfoSpec. +func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { if in == nil { return nil } - out := new(OIDCClientStatus) + 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 *ObjectName) DeepCopyInto(out *ObjectName) { +func (in *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { *out = *in + in.ChartInfoStatus.DeepCopyInto(&out.ChartInfoStatus) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectName. -func (in *ObjectName) DeepCopy() *ObjectName { +// 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(ObjectName) + 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 *ObjectPermission) DeepCopyInto(out *ObjectPermission) { - *out = *in - out.ObjectName = in.ObjectName - if in.Verbs != nil { - in, out := &in.Verbs, &out.Verbs - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectPermission. -func (in *ObjectPermission) DeepCopy() *ObjectPermission { - if in == nil { - return nil - } - out := new(ObjectPermission) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OwnedAccessKey) DeepCopyInto(out *OwnedAccessKey) { - *out = *in - 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 OwnedAccessKey. -func (in *OwnedAccessKey) DeepCopy() *OwnedAccessKey { - if in == nil { - return nil - } - out := new(OwnedAccessKey) - 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) { - *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// 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(OwnedAccessKeyList) - 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// 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) { - *out = *in - in.AccessKeyStatus.DeepCopyInto(&out.AccessKeyStatus) - return -} - -// 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(OwnedAccessKeyStatus) - 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) { - *out = *in - if in.Clusters != nil { - in, out := &in.Clusters, &out.Clusters - *out = make([]string, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PredefinedApp. -func (in *PredefinedApp) DeepCopy() *PredefinedApp { - if in == nil { - return nil - } - 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 *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 { - if in == nil { - return nil - } - out := new(ProjectChartInfo) - 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -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([]ProjectChartInfo, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectChartInfoList. -func (in *ProjectChartInfoList) DeepCopy() *ProjectChartInfoList { - if in == nil { - return nil - } - out := new(ProjectChartInfoList) - 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -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 ProjectChartInfoSpec. -func (in *ProjectChartInfoSpec) DeepCopy() *ProjectChartInfoSpec { - if in == nil { - return nil - } - 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 *ProjectChartInfoStatus) DeepCopyInto(out *ProjectChartInfoStatus) { - *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 { - if in == nil { - return nil - } - 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 *ProjectCharts) DeepCopyInto(out *ProjectCharts) { +func (in *ProjectCharts) DeepCopyInto(out *ProjectCharts) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5597,11 +5057,84 @@ func (in *ProjectMigrateVirtualClusterInstanceSource) DeepCopy() *ProjectMigrate } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { +func (in *ProjectNodeTypes) DeepCopyInto(out *ProjectNodeTypes) { *out = *in - out.ObjectName = in.ObjectName - return -} + out.TypeMeta = in.TypeMeta + 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]) + } + } + return +} + +// 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(ProjectNodeTypes) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectNodeTypes) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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([]ProjectNodeTypes, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(ProjectNodeTypesList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectNodeTypesList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectRole) DeepCopyInto(out *ProjectRole) { + *out = *in + out.ObjectName = in.ObjectName + return +} // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRole. func (in *ProjectRole) DeepCopy() *ProjectRole { @@ -5793,27 +5326,6 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodWorkspaceTemplates != nil { - in, out := &in.DevPodWorkspaceTemplates, &out.DevPodWorkspaceTemplates - *out = make([]DevPodWorkspaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - 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.DevPodWorkspacePresets != nil { - in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets - *out = make([]DevPodWorkspacePreset, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } return } @@ -6457,6 +5969,92 @@ func (in *SharedSecretStatus) DeepCopy() *SharedSecretStatus { 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 @@ -6663,6 +6261,70 @@ func (in *SpaceTemplateStatus) DeepCopy() *SpaceTemplateStatus { 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 @@ -7438,6 +7100,99 @@ func (in *TranslateVClusterResourceNameStatus) DeepCopy() *TranslateVClusterReso 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 @@ -8084,13 +7839,429 @@ func (in *VirtualClusterAccessKey) DeepCopy() *VirtualClusterAccessKey { if in == nil { return nil } - out := new(VirtualClusterAccessKey) + out := new(VirtualClusterAccessKey) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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([]VirtualClusterAccessKey, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(VirtualClusterAccessKeyList) + 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 *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabase. +func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabase) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VirtualClusterExternalDatabase, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. +func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. +func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. +func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { + if in == nil { + return nil + } + out := new(VirtualClusterExternalDatabaseStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { + *out = *in + 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 VirtualClusterInstance. +func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { + if in == nil { + return nil + } + out := new(VirtualClusterInstance) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterInstance) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { + *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 VirtualClusterInstanceKubeConfig. +func (in *VirtualClusterInstanceKubeConfig) DeepCopy() *VirtualClusterInstanceKubeConfig { + if in == nil { + return nil + } + out := new(VirtualClusterInstanceKubeConfig) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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([]VirtualClusterInstanceKubeConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// 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(VirtualClusterInstanceKubeConfigList) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 VirtualClusterInstanceKubeConfigSpec. +func (in *VirtualClusterInstanceKubeConfigSpec) DeepCopy() *VirtualClusterInstanceKubeConfigSpec { + if in == nil { + return nil + } + 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 *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { + *out = *in + return +} + +// 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(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 *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { + *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 { + if in == nil { + return nil + } + out := new(VirtualClusterInstanceList) + 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) { + *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 { + if in == nil { + return nil + } + out := new(VirtualClusterInstanceLog) + 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) { + *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]) + } + } + return +} + +// 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(VirtualClusterInstanceLogList) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterInstanceLogOptions) DeepCopyInto(out *VirtualClusterInstanceLogOptions) { + *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 VirtualClusterInstanceLogOptions. +func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { + if in == nil { + return nil + } + out := new(VirtualClusterInstanceLogOptions) + 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 { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterInstanceShell) DeepCopyInto(out *VirtualClusterInstanceShell) { + *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 VirtualClusterInstanceShell. +func (in *VirtualClusterInstanceShell) DeepCopy() *VirtualClusterInstanceShell { + if in == nil { + return nil + } + out := new(VirtualClusterInstanceShell) 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 *VirtualClusterInstanceShell) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8098,13 +8269,13 @@ 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 *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([]VirtualClusterAccessKey, len(*in)) + *out = make([]VirtualClusterInstanceShell, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8112,18 +8283,18 @@ func (in *VirtualClusterAccessKeyList) DeepCopyInto(out *VirtualClusterAccessKey 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 VirtualClusterInstanceShellList. +func (in *VirtualClusterInstanceShellList) DeepCopy() *VirtualClusterInstanceShellList { if in == nil { return nil } - out := new(VirtualClusterAccessKeyList) + out := new(VirtualClusterInstanceShellList) 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 { +func (in *VirtualClusterInstanceShellList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8131,27 +8302,26 @@ func (in *VirtualClusterAccessKeyList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterExternalDatabase) DeepCopyInto(out *VirtualClusterExternalDatabase) { +func (in *VirtualClusterInstanceSnapshot) DeepCopyInto(out *VirtualClusterInstanceSnapshot) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabase. -func (in *VirtualClusterExternalDatabase) DeepCopy() *VirtualClusterExternalDatabase { +// 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(VirtualClusterExternalDatabase) + out := new(VirtualClusterInstanceSnapshot) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshot) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8159,13 +8329,13 @@ func (in *VirtualClusterExternalDatabase) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterExternalDatabaseList) { +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([]VirtualClusterExternalDatabase, len(*in)) + *out = make([]VirtualClusterInstanceSnapshot, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8173,18 +8343,18 @@ func (in *VirtualClusterExternalDatabaseList) DeepCopyInto(out *VirtualClusterEx return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseList. -func (in *VirtualClusterExternalDatabaseList) DeepCopy() *VirtualClusterExternalDatabaseList { +// 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(VirtualClusterExternalDatabaseList) + out := new(VirtualClusterInstanceSnapshotList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterInstanceSnapshotList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8192,87 +8362,89 @@ func (in *VirtualClusterExternalDatabaseList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterExternalDatabaseSpec) DeepCopyInto(out *VirtualClusterExternalDatabaseSpec) { +func (in *VirtualClusterInstanceSnapshotStatus) DeepCopyInto(out *VirtualClusterInstanceSnapshotStatus) { *out = *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]) + } + } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseSpec. -func (in *VirtualClusterExternalDatabaseSpec) DeepCopy() *VirtualClusterExternalDatabaseSpec { +// 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(VirtualClusterExternalDatabaseSpec) + 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 *VirtualClusterExternalDatabaseStatus) DeepCopyInto(out *VirtualClusterExternalDatabaseStatus) { +func (in *VirtualClusterInstanceSpec) DeepCopyInto(out *VirtualClusterInstanceSpec) { *out = *in + in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterExternalDatabaseStatus. -func (in *VirtualClusterExternalDatabaseStatus) DeepCopy() *VirtualClusterExternalDatabaseStatus { +// 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(VirtualClusterExternalDatabaseStatus) + out := new(VirtualClusterInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstance) DeepCopyInto(out *VirtualClusterInstance) { +func (in *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + 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 VirtualClusterInstance. -func (in *VirtualClusterInstance) DeepCopy() *VirtualClusterInstance { +// 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(VirtualClusterInstance) + out := new(VirtualClusterInstanceStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterInstanceKubeConfig) DeepCopyInto(out *VirtualClusterInstanceKubeConfig) { +func (in *VirtualClusterNodeAccessKey) DeepCopyInto(out *VirtualClusterNodeAccessKey) { *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 VirtualClusterNodeAccessKey. +func (in *VirtualClusterNodeAccessKey) DeepCopy() *VirtualClusterNodeAccessKey { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfig) + out := new(VirtualClusterNodeAccessKey) 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 *VirtualClusterNodeAccessKey) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8280,13 +8452,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 *VirtualClusterNodeAccessKeyList) DeepCopyInto(out *VirtualClusterNodeAccessKeyList) { *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([]VirtualClusterNodeAccessKey, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8294,18 +8466,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 VirtualClusterNodeAccessKeyList. +func (in *VirtualClusterNodeAccessKeyList) DeepCopy() *VirtualClusterNodeAccessKeyList { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfigList) + out := new(VirtualClusterNodeAccessKeyList) 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 *VirtualClusterNodeAccessKeyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8313,95 +8485,77 @@ 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 *VirtualClusterNodeAccessKeySpec) DeepCopyInto(out *VirtualClusterNodeAccessKeySpec) { *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 VirtualClusterNodeAccessKeySpec. +func (in *VirtualClusterNodeAccessKeySpec) DeepCopy() *VirtualClusterNodeAccessKeySpec { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfigSpec) + 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 *VirtualClusterInstanceKubeConfigStatus) DeepCopyInto(out *VirtualClusterInstanceKubeConfigStatus) { +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopyInto(out *VirtualClusterNodeAccessKeyStatus) { *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 VirtualClusterNodeAccessKeyStatus. +func (in *VirtualClusterNodeAccessKeyStatus) DeepCopy() *VirtualClusterNodeAccessKeyStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceKubeConfigStatus) + 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 *VirtualClusterInstanceList) DeepCopyInto(out *VirtualClusterInstanceList) { +func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { *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]) - } - } + out.ObjectName = in.ObjectName + out.AssignedVia = in.AssignedVia 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 VirtualClusterRole. +func (in *VirtualClusterRole) DeepCopy() *VirtualClusterRole { if in == nil { return nil } - out := new(VirtualClusterInstanceList) + out := new(VirtualClusterRole) 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 *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterInstanceLog. -func (in *VirtualClusterInstanceLog) DeepCopy() *VirtualClusterInstanceLog { +// 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(VirtualClusterInstanceLog) + out := new(VirtualClusterSchema) 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 { +func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8409,13 +8563,13 @@ func (in *VirtualClusterInstanceLog) DeepCopyObject() runtime.Object { } // 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 *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([]VirtualClusterInstanceLog, len(*in)) + *out = make([]VirtualClusterSchema, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8423,18 +8577,18 @@ func (in *VirtualClusterInstanceLogList) DeepCopyInto(out *VirtualClusterInstanc 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 VirtualClusterSchemaList. +func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { if in == nil { return nil } - out := new(VirtualClusterInstanceLogList) + out := new(VirtualClusterSchemaList) 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 *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8442,128 +8596,91 @@ 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 *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { *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 VirtualClusterInstanceLogOptions. -func (in *VirtualClusterInstanceLogOptions) DeepCopy() *VirtualClusterInstanceLogOptions { +// 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(VirtualClusterInstanceLogOptions) + out := new(VirtualClusterSchemaSpec) 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 { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // 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 *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { *out = *in - in.VirtualClusterInstanceSpec.DeepCopyInto(&out.VirtualClusterInstanceSpec) 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 VirtualClusterSchemaStatus. +func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { if in == nil { return nil } - out := new(VirtualClusterInstanceSpec) + 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 *VirtualClusterInstanceStatus) DeepCopyInto(out *VirtualClusterInstanceStatus) { +func (in *VirtualClusterShellSpec) DeepCopyInto(out *VirtualClusterShellSpec) { *out = *in - 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 VirtualClusterInstanceStatus. -func (in *VirtualClusterInstanceStatus) DeepCopy() *VirtualClusterInstanceStatus { +// 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(VirtualClusterInstanceStatus) + out := new(VirtualClusterShellSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { +func (in *VirtualClusterShellStatus) DeepCopyInto(out *VirtualClusterShellStatus) { *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 { +// 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(VirtualClusterRole) + out := new(VirtualClusterShellStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterSchema) DeepCopyInto(out *VirtualClusterSchema) { +func (in *VirtualClusterStandalone) DeepCopyInto(out *VirtualClusterStandalone) { *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 VirtualClusterSchema. -func (in *VirtualClusterSchema) DeepCopy() *VirtualClusterSchema { +// 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(VirtualClusterSchema) + out := new(VirtualClusterStandalone) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandalone) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8571,13 +8688,13 @@ func (in *VirtualClusterSchema) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) { +func (in *VirtualClusterStandaloneList) DeepCopyInto(out *VirtualClusterStandaloneList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VirtualClusterSchema, len(*in)) + *out = make([]VirtualClusterStandalone, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -8585,18 +8702,18 @@ func (in *VirtualClusterSchemaList) DeepCopyInto(out *VirtualClusterSchemaList) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaList. -func (in *VirtualClusterSchemaList) DeepCopy() *VirtualClusterSchemaList { +// 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(VirtualClusterSchemaList) + out := new(VirtualClusterStandaloneList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { +func (in *VirtualClusterStandaloneList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -8604,33 +8721,41 @@ func (in *VirtualClusterSchemaList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VirtualClusterSchemaSpec) DeepCopyInto(out *VirtualClusterSchemaSpec) { +func (in *VirtualClusterStandaloneSpec) DeepCopyInto(out *VirtualClusterStandaloneSpec) { *out = *in + out.CurrentPeer = in.CurrentPeer + in.CurrentPKI.DeepCopyInto(&out.CurrentPKI) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualClusterSchemaSpec. -func (in *VirtualClusterSchemaSpec) DeepCopy() *VirtualClusterSchemaSpec { +// 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(VirtualClusterSchemaSpec) + 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 *VirtualClusterSchemaStatus) DeepCopyInto(out *VirtualClusterSchemaStatus) { +func (in *VirtualClusterStandaloneStatus) DeepCopyInto(out *VirtualClusterStandaloneStatus) { *out = *in + 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 VirtualClusterSchemaStatus. -func (in *VirtualClusterSchemaStatus) DeepCopy() *VirtualClusterSchemaStatus { +// 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(VirtualClusterSchemaStatus) + out := new(VirtualClusterStandaloneStatus) in.DeepCopyInto(out) return out } @@ -8740,3 +8865,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 632f5e31..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,917 +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(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) - }) - scheme.AddTypeDefaultingFunc(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) - scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } - -func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { - if in.Spec.DevPodWorkspaceInstanceSpec.Template != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } - if in.Status.DevPodWorkspaceInstanceStatus.Instance != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstance(a) - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { - if in.Workspace != nil { - SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) - } - if in.Template != nil { - if in.Template.Spec.Template.Kubernetes != nil { - if in.Template.Spec.Template.Kubernetes.Pod != nil { - for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Template.Spec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - for i := range in.Template.Spec.Versions { - a := &in.Template.Spec.Versions[i] - if a.Template.Kubernetes != nil { - if a.Template.Kubernetes.Pod != nil { - for j := range a.Template.Kubernetes.Pod.Spec.Volumes { - b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { - b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.Containers { - b := &a.Template.Kubernetes.Pod.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } - } - for i := range in.Pods { - a := &in.Pods[i] - for j := range a.Spec.Volumes { - b := &a.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Spec.InitContainers { - b := &a.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Spec.Containers { - b := &a.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Spec.EphemeralContainers { - b := &a.Spec.EphemeralContainers[j] - for k := range b.EphemeralContainerCommon.Ports { - c := &b.EphemeralContainerCommon.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.EphemeralContainerCommon.LivenessProbe != nil { - if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { - if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.EphemeralContainerCommon.ReadinessProbe != nil { - if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.EphemeralContainerCommon.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.EphemeralContainerCommon.StartupProbe != nil { - if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC != nil { - if b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.EphemeralContainerCommon.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) - } -} - -func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] - 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.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] - if a.Template.Kubernetes != nil { - if a.Template.Kubernetes.Pod != nil { - for j := range a.Template.Kubernetes.Pod.Spec.Volumes { - b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := v1.AzureDataDiskCachingMode(v1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := v1.AzureDataDiskKind(v1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { - b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.Containers { - b := &a.Template.Kubernetes.Pod.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) - } -} - -func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { - for i := range in.DevPodWorkspaceTemplates { - a := &in.DevPodWorkspaceTemplates[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) - } -} - -func SetObjectDefaults_ProjectTemplatesList(in *ProjectTemplatesList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_ProjectTemplates(a) - } -} diff --git a/pkg/apis/storage/v1/cluster_types.go b/pkg/apis/storage/v1/cluster_types.go index 37ebf40d..2bec49bf 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -23,6 +23,10 @@ const ( 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" diff --git a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go b/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go deleted file mode 100644 index b1d73905..00000000 --- a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go +++ /dev/null @@ -1,150 +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"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` -} - -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct { -} - -func (a *DevPodEnvironmentTemplate) GetVersions() []VersionAccessor { - var retVersions []VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodEnvironmentTemplateVersion) GetVersion() string { - return a.Version -} - -func (a *DevPodEnvironmentTemplate) GetOwner() *UserOrTeam { - 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"` - - // Description describes the environment template - // +optional - Description string `json:"description,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"` - - // Template is the inline template to use for DevPod environments - // +optional - Template *DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` - - // Versions are different versions of the template that can be referenced as well - // +optional - Versions []DevPodEnvironmentTemplateVersion `json:"versions,omitempty"` -} - -type DevPodEnvironmentTemplateDefinition struct { - // Git holds configuration for git environment spec source - // +optional - Git *GitEnvironmentTemplate `json:"git,omitempty"` - - // Inline holds an inline devcontainer.json definition - // +optional - Inline string `json:"inline,omitempty"` - - // WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based - // +optional - WorkspaceRepositoryCloneStrategy GitCloneStrategy `json:"workspaceRepositoryCloneStrategy,omitempty"` - - // WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace - // +optional - WorkspaceRepositorySkipLFS bool `json:"workspaceRepositorySkipLFS,omitempty"` -} - -// GitEnvironmentTemplate stores configuration of Git environment template source -type GitEnvironmentTemplate struct { - // Repository stores repository URL for Git environment spec source - 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 { - // Template holds the environment template definition - // +optional - Template DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` - - // Version is the version. Needs to be in X.X.X format. - // +optional - Version string `json:"version,omitempty"` -} - -// +enum -type GitCloneStrategy string - -// WARN: Need to match https://github.com/loft-sh/devpod/pkg/git/clone.go -const ( - FullCloneStrategy GitCloneStrategy = "" - BloblessCloneStrategy GitCloneStrategy = "blobless" - TreelessCloneStrategy GitCloneStrategy = "treeless" - ShallowCloneStrategy GitCloneStrategy = "shallow" -) - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects -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 eebd16ef..00000000 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ /dev/null @@ -1,450 +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" - metricsv1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" -) - -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" - - // DevPodKubernetesProviderWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace on resources - // created by the DevPod Kubernetes provider. - DevPodKubernetesProviderWorkspaceUIDLabel = "devpod.sh/workspace-uid" - - // DevPodWorkspacePictureAnnotation holds the workspace picture url of the devpod workspace - DevPodWorkspacePictureAnnotation = "loft.sh/workspace-picture" - - // DevPodWorkspaceSourceAnnotation holds the workspace source of the devpod workspace - DevPodWorkspaceSourceAnnotation = "loft.sh/workspace-source" - - // DevPodClientsAnnotation holds the active clients for a workspace networpeer - DevPodClientsAnnotation = "loft.sh/devpod-clients" -) - -var ( - DevPodPlatformOptions = "DEVPOD_PLATFORM_OPTIONS" - - DevPodFlagsUp = "DEVPOD_FLAGS_UP" - DevPodFlagsDelete = "DEVPOD_FLAGS_DELETE" - 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"` - - // PresetRef holds the DevPodWorkspacePreset template reference - // +optional - PresetRef *PresetRef `json:"presetRef,omitempty"` - - // TemplateRef holds the DevPod machine template reference - // +optional - TemplateRef *TemplateRef `json:"templateRef,omitempty"` - - // EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used - // +optional - EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` - - // Template is the inline template to use for DevPod machine creation. This is mutually - // exclusive with templateRef. - // +optional - Template *DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` - - // Target is the reference to the cluster holding this workspace - // +optional - Target WorkspaceTarget `json:"target,omitempty"` - - // RunnerRef is the reference to the runner holding this workspace - // +optional - RunnerRef RunnerRef `json:"runnerRef,omitempty"` - - // 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 PresetRef struct { - // Name is the name of DevPodWorkspacePreset - Name string `json:"name"` - - // Version holds the preset version to use. Version is expected to - // be in semantic versioning format. Alternatively, you can also exchange - // major, minor or patch with an 'x' to tell Loft to automatically select - // the latest major, minor or patch version. - // +optional - Version string `json:"version,omitempty"` -} - -type WorkspaceTarget struct { - // Cluster is the reference to the cluster holding this workspace - // +optional - Cluster *WorkspaceTargetName `json:"cluster,omitempty"` - - // Cluster is the reference to the virtual cluster holding this workspace - // +optional - VirtualCluster *WorkspaceTargetName `json:"virtualCluster,omitempty"` -} - -type WorkspaceResolvedTarget struct { - // Cluster is the reference to the cluster holding this workspace - // +optional - Cluster *WorkspaceTargetNamespace `json:"cluster,omitempty"` - - // Cluster is the reference to the virtual cluster holding this workspace - // +optional - VirtualCluster *WorkspaceTargetNamespace `json:"virtualCluster,omitempty"` - - // Space is the reference to the space holding this workspace - // +optional - Space *WorkspaceTargetName `json:"space,omitempty"` -} - -func (w WorkspaceResolvedTarget) Empty() bool { - return w == WorkspaceResolvedTarget{} -} - -type WorkspaceTargetName struct { - // Name is the name of the target - Name string `json:"name"` -} - -type WorkspaceTargetNamespace struct { - // Name is the name of the object - Name string `json:"name"` - - // Namespace is the namespace within the cluster. - // +optional - Namespace string `json:"namespace,omitempty"` -} - -type RunnerRef struct { - // Runner is the connected runner the workspace will be created in - // +optional - Runner string `json:"runner,omitempty"` -} - -type EnvironmentRef struct { - // Name is the name of DevPodEnvironmentTemplate this references - Name string `json:"name"` - - // Version is the version of DevPodEnvironmentTemplate this references - // +optional - Version string `json:"version,omitempty"` -} - -type DevPodWorkspaceInstanceStatus struct { - // ResolvedTarget is the resolved target of the workspace - // +optional - ResolvedTarget WorkspaceResolvedTarget `json:"resolvedTarget,omitempty"` - - // LastWorkspaceStatus is the last workspace status reported by the runner. - // +optional - LastWorkspaceStatus WorkspaceStatus `json:"lastWorkspaceStatus,omitempty"` - - // 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"` - - // Kubernetes is the status of the workspace on kubernetes - // +optional - Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` -} - -type DevPodWorkspaceInstanceKubernetesStatus struct { - // Last time the condition transitioned from one status to another. - // +required - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` - - // PodStatus is the status of the pod that is running the workspace - // +optional - PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` - - // PersistentVolumeClaimStatus is the pvc that is used to store the workspace - // +optional - PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` -} - -type DevPodWorkspaceInstancePodStatus struct { - // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. - // The conditions array, the reason and message fields, and the individual container status - // arrays contain more detail about the pod's status. - // There are five possible phase values: - // - // Pending: The pod has been accepted by the Kubernetes system, but one or more of the - // container images has not been created. This includes time before being scheduled as - // well as time spent downloading images over the network, which could take a while. - // Running: The pod has been bound to a node, and all of the containers have been created. - // At least one container is still running, or is in the process of starting or restarting. - // Succeeded: All containers in the pod have terminated in success, and will not be restarted. - // Failed: All containers in the pod have terminated, and at least one container has - // terminated in failure. The container either exited with non-zero status or was terminated - // by the system. - // Unknown: For some reason the state of the pod could not be obtained, typically due to an - // error in communicating with the host of the pod. - // - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - // +optional - Phase corev1.PodPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` - // Current service state of pod. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - Conditions []corev1.PodCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` - // A human readable message indicating details about why the pod is in this condition. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` - // A brief CamelCase message indicating details about why the pod is in this state. - // e.g. 'Evicted' - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` - // Statuses of init containers in this pod. The most recent successful non-restartable - // init container will have ready = true, the most recently started container will have - // startTime set. - // Each init container in the pod should have at most one status in this list, - // and all statuses should be for containers in the pod. - // However this is not enforced. - // If a status for a non-existent container is present in the list, or the list has duplicate names, - // the behavior of various Kubernetes components is not defined and those statuses might be - // ignored. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status - // +listType=atomic - InitContainerStatuses []corev1.ContainerStatus `json:"initContainerStatuses,omitempty" protobuf:"bytes,10,rep,name=initContainerStatuses"` - // Statuses of containers in this pod. - // Each container in the pod should have at most one status in this list, - // and all statuses should be for containers in the pod. - // However this is not enforced. - // If a status for a non-existent container is present in the list, or the list has duplicate names, - // the behavior of various Kubernetes components is not defined and those statuses might be - // ignored. - // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - // +optional - // +listType=atomic - ContainerStatuses []corev1.ContainerStatus `json:"containerStatuses,omitempty" protobuf:"bytes,8,rep,name=containerStatuses"` - // NodeName is the name of the node that is running the workspace - // +optional - NodeName string `json:"nodeName,omitempty"` - // Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running. - // +optional - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` - // ContainerResources are the resources of the containers that are running the workspace - // +optional - ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` - // ContainerMetrics are the metrics of the pod that is running the workspace - // +optional - ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` -} - -type DevPodWorkspaceInstanceContainerResource struct { - // Name is the name of the container - // +optional - Name string `json:"name,omitempty"` - // Resources is the resources of the container - // +optional - Resources corev1.ResourceRequirements `json:"resources,omitempty"` -} - -type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { - // phase represents the current phase of PersistentVolumeClaim. - // +optional - Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` - // capacity represents the actual resources of the underlying volume. - // +optional - Capacity corev1.ResourceList `json:"capacity,omitempty" protobuf:"bytes,3,rep,name=capacity,casttype=ResourceList,castkey=ResourceName"` - // conditions is the current Condition of persistent volume claim. If underlying persistent volume is being - // resized then the Condition will be set to 'Resizing'. - // +optional - // +patchMergeKey=type - // +patchStrategy=merge - // +listType=map - // +listMapKey=type - Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` - // Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound. - // +optional - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` -} - -type DevPodWorkspaceInstanceEvent struct { - // This should be a short, machine understandable string that gives the reason - // for the transition into the object's current status. - // TODO: provide exact specification for format. - // +optional - Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` - - // A human-readable description of the status of this operation. - // TODO: decide on maximum length. - // +optional - Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` - - // The time at which the most recent occurrence of this event was recorded. - // +optional - LastTimestamp metav1.Time `json:"lastTimestamp,omitempty" protobuf:"bytes,7,opt,name=lastTimestamp"` - - // Type of this event (Normal, Warning), new types could be added in the future - // +optional - Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"` -} - -type WorkspaceStatusResult struct { - 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/devpodworkspacepreset_types.go b/pkg/apis/storage/v1/devpodworkspacepreset_types.go deleted file mode 100644 index 5aea86d5..00000000 --- a/pkg/apis/storage/v1/devpodworkspacepreset_types.go +++ /dev/null @@ -1,117 +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 - -// DevPodWorkspacePreset -// +k8s:openapi-gen=true -type DevPodWorkspacePreset struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` - Status DevPodWorkspacePresetStatus `json:"status,omitempty"` -} - -func (a *DevPodWorkspacePreset) GetOwner() *UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspacePreset) GetAccess() []Access { - return a.Spec.Access -} - -func (a *DevPodWorkspacePreset) SetAccess(access []Access) { - a.Spec.Access = access -} - -type DevPodWorkspacePresetSpec struct { - // DisplayName is the name that should be displayed in the UI - // +optional - DisplayName string `json:"displayName,omitempty"` - - // Source stores inline path of project source - Source *DevPodWorkspacePresetSource `json:"source"` - - // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use - InfrastructureRef *TemplateRef `json:"infrastructureRef"` - - // EnvironmentRef stores reference to DevPodEnvironmentTemplate - // +optional - EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` - - // UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment - // +optional - UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` - - // Owner holds the owner of this object - // +optional - Owner *UserOrTeam `json:"owner,omitempty"` - - // Access to the DevPod machine instance object itself - // +optional - Access []Access `json:"access,omitempty"` - - // Versions are different versions of the template that can be referenced as well - // +optional - Versions []DevPodWorkspacePresetVersion `json:"versions,omitempty"` -} - -type DevPodWorkspacePresetSource struct { - // Git stores path to git repo to use as workspace source - // +optional - Git string `json:"git,omitempty"` - - // Image stores container image to use as workspace source - // +optional - Image string `json:"image,omitempty"` -} - -type DevPodWorkspacePresetVersion struct { - // Version is the version. Needs to be in X.X.X format. - // +optional - Version string `json:"version,omitempty"` - - // Source stores inline path of project source - // +optional - Source *DevPodWorkspacePresetSource `json:"source,omitempty"` - - // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use - // +optional - InfrastructureRef *TemplateRef `json:"infrastructureRef,omitempty"` - - // EnvironmentRef stores reference to DevPodEnvironmentTemplate - // +optional - EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` -} - -// DevPodWorkspacePresetStatus holds the status -type DevPodWorkspacePresetStatus struct { -} - -type WorkspaceRef struct { - // Name is the name of DevPodWorkspaceTemplate this references - Name string `json:"name"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects -type DevPodWorkspacePresetList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspacePreset `json:"items"` -} - -func init() { - SchemeBuilder.Register(&DevPodWorkspacePreset{}, &DevPodWorkspacePresetList{}) -} diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devpodworkspacetemplate_types.go deleted file mode 100644 index 19e34f20..00000000 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ /dev/null @@ -1,562 +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 { - // Kubernetes holds the definition for kubernetes based workspaces - Kubernetes *DevPodWorkspaceKubernetesSpec `json:"kubernetes,omitempty"` - - // WorkspaceEnv are environment variables that should be available within the created workspace. - // +optional - WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` - - // InstanceTemplate holds the workspace instance template - // +optional - InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` - - // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace - // +optional - CredentialForwarding *CredentialForwarding `json:"credentialForwarding,omitempty"` - - // Provider holds the legacy VM provider configuration - // - // +optional - Provider *DevPodWorkspaceProvider `json:"provider,omitempty"` -} - -type DevPodWorkspaceKubernetesSpec struct { - // Pod holds the definition for workspace pod. - // - // Defaults will be applied for fields that aren't specified. - // +optional - Pod *DevPodWorkspacePodTemplate `json:"pod,omitempty"` - - // VolumeClaim holds the definition for the main workspace persistent volume. - // This volume is guaranteed to exist for the lifespan of the workspace. - // - // Defaults will be applied for fields that aren't specified. - // +optional - VolumeClaim *DevPodWorkspaceVolumeClaimTemplate `json:"volumeClaim,omitempty"` - - // PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. - // Default: 10m - // +optional - PodTimeout string `json:"podTimeout,omitempty"` - - // NodeArchitecture specifies the node architecture the workspace image will be built for. - // Only necessary if you need to build workspace images on the fly in the kubernetes cluster and your cluster is mixed architecture. - // +optional - NodeArchitecure string `json:"nodeArchitecture,omitempty"` - - // SpaceTemplateRef is a reference to the space that should get created for this DevPod. - // If this is specified, the kubernetes provider will be selected automatically. - // +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"` -} - -// DevPodWorkspacePodTemplate is a less restrictive PodTemplate -type DevPodWorkspacePodTemplate struct { - // The pods metadata - // +kubebuilder:pruning:PreserveUnknownFields - // +optional - TemplateMetadata `json:"metadata,omitempty"` - - Spec DevPodWorkspacePodTemplateSpec `json:"spec,omitempty"` -} - -// DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements. -type DevPodWorkspaceResourceRequirements struct { - // Limits describes the maximum amount of compute resources allowed. - // +optional - Limits map[corev1.ResourceName]string `json:"limits,omitempty"` - - // Requests describes the minimum amount of compute resources required. - // +optional - Requests map[corev1.ResourceName]string `json:"requests,omitempty"` - - // Claims lists the names of resources, defined in spec.resourceClaims, - // that are used by this container. - // +optional - Claims []corev1.ResourceClaim `json:"claims,omitempty"` -} - -// // DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container. -type DevPodWorkspaceContainer struct { - // Name of the container specified as a DNS_LABEL. - Name string `json:"name"` - // Container image name. - // +optional - Image string `json:"image,omitempty"` - // Entrypoint array. Not executed within a shell. - // +optional - // +listType=atomic - Command []string `json:"command,omitempty"` - // Arguments to the entrypoint. - // +optional - // +listType=atomic - Args []string `json:"args,omitempty"` - // Container's working directory. - // +optional - WorkingDir string `json:"workingDir,omitempty"` - // List of ports to expose from the container. Not specifying a port here - // +optional - Ports []corev1.ContainerPort `json:"ports,omitempty"` - // +optional - // +listType=atomic - EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"` - // List of environment variables to set in the container. - // +optional - Env []corev1.EnvVar `json:"env,omitempty"` - // Compute Resources required by this container. - // +optional - Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` - // Resources resize policy for the container. - // +optional - // +listType=atomic - ResizePolicy []corev1.ContainerResizePolicy `json:"resizePolicy,omitempty"` - // RestartPolicy defines the restart behavior of individual containers in a pod. - // +optional - RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"` - // Pod volumes to mount into the container's filesystem. - // +optional - VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"` - // volumeDevices is the list of block devices to be used by the container. - // +optional - VolumeDevices []corev1.VolumeDevice `json:"volumeDevices,omitempty"` - // Periodic probe of container liveness. - // +optional - LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"` - // Periodic probe of container service readiness. - // +optional - ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"` - // StartupProbe indicates that the Pod has successfully initialized. - // +optional - StartupProbe *corev1.Probe `json:"startupProbe,omitempty"` - // Actions that the management system should take in response to container lifecycle events. - // +optional - Lifecycle *corev1.Lifecycle `json:"lifecycle,omitempty"` - // Optional: Path at which the file to which the container's termination message - // +optional - TerminationMessagePath string `json:"terminationMessagePath,omitempty"` - // Indicate how the termination message should be populated. File will use the contents of - // +optional - TerminationMessagePolicy corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"` - // Image pull policy. - // +optional - ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` - // SecurityContext defines the security options the container should be run with. - // +optional - SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"` - - // Whether this container should allocate a buffer for stdin in the container runtime. - // +optional - Stdin bool `json:"stdin,omitempty"` - // StdinOnce default is false - // +optional - StdinOnce bool `json:"stdinOnce,omitempty"` - // TTY default is false. - // +optional - TTY bool `json:"tty,omitempty"` -} - -// DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec -type DevPodWorkspacePodTemplateSpec struct { - // List of volumes that can be mounted by containers belonging to the pod. - // +optional - Volumes []corev1.Volume `json:"volumes,omitempty"` - - // List of initialization containers belonging to the pod. - // +optional - InitContainers []DevPodWorkspaceContainer `json:"initContainers,omitempty"` - - // List of containers belonging to the pod. - // +optional - Containers []DevPodWorkspaceContainer `json:"containers,omitempty"` - - // Restart policy for all containers within the pod. - // +optional - RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty"` - - // Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. - // +optional - TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` - - // Optional duration in seconds the pod may be active on the node relative to - // +optional - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` - - // Set DNS policy for the pod. - // +optional - DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty"` - - // NodeSelector is a selector which must be true for the pod to fit on a node. - // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty"` - - // ServiceAccountName is the name of the ServiceAccount to use to run this pod. - // +optional - ServiceAccountName string `json:"serviceAccountName,omitempty"` - - // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - // +optional - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` - - // NodeName indicates in which node this pod is scheduled. - // +optional - NodeName string `json:"nodeName,omitempty"` - - // Host networking requested for this pod. Use the host's network namespace. - // +optional - HostNetwork bool `json:"hostNetwork,omitempty"` - - // Use the host's pid namespace. - // +optional - HostPID bool `json:"hostPID,omitempty"` - - // Use the host's ipc namespace. - // +optional - HostIPC bool `json:"hostIPC,omitempty"` - - // Share a single process namespace between all of the containers in a pod. - // +optional - ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` - - // SecurityContext holds pod-level security attributes and common container settings. - // +optional - SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` - - // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. - // +optional - ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` - - // Specifies the hostname of the Pod - // +optional - Hostname string `json:"hostname,omitempty"` - - // If specified, the fully qualified Pod hostname will be "...svc.". - // +optional - Subdomain string `json:"subdomain,omitempty"` - - // If specified, the pod's scheduling constraints - // +optional - Affinity *corev1.Affinity `json:"affinity,omitempty"` - - // If specified, the pod will be dispatched by specified scheduler. - // If not specified, the pod will be dispatched by default scheduler. - // +optional - SchedulerName string `json:"schedulerName,omitempty"` - - // If specified, the pod's tolerations. - // +optional - Tolerations []corev1.Toleration `json:"tolerations,omitempty"` - - // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts - // +optional - HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` - - // If specified, indicates the pod's priority. - // +optional - PriorityClassName string `json:"priorityClassName,omitempty"` - - // +optional - Priority *int32 `json:"priority,omitempty"` - - // Specifies the DNS parameters of a pod. - // +optional - DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"` - - // If specified, all readiness gates will be evaluated for pod readiness. - // +optional - ReadinessGates []corev1.PodReadinessGate `json:"readinessGates,omitempty"` - - // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod - // +optional - RuntimeClassName *string `json:"runtimeClassName,omitempty"` - - // EnableServiceLinks indicates whether information about services should be injected into pod's - // environment variables, matching the syntax of Docker links. - // +optional - EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` - - // PreemptionPolicy is the Policy for preempting pods with lower priority. - // +optional - PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"` - - // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. - // +optional - Overhead corev1.ResourceList `json:"overhead,omitempty"` - - // TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. - // +optional - TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` - - // If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). - // In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). - // In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. - // +optional - SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"` - - // Specifies the OS of the containers in the pod. - // +optional - OS *corev1.PodOS `json:"os,omitempty"` - - // Use the host's user namespace. - // +optional - HostUsers *bool `json:"hostUsers,omitempty"` - - // SchedulingGates is an opaque list of values that if specified will block scheduling the pod. - // If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the - // scheduler will not attempt to schedule the pod. - // +optional - SchedulingGates []corev1.PodSchedulingGate `json:"schedulingGates,omitempty"` - - // ResourceClaims defines which ResourceClaims must be allocated - // and reserved before the Pod is allowed to start. The resources - // will be made available to those containers which consume them - // by name. - // +optional - ResourceClaims []corev1.PodResourceClaim `json:"resourceClaims,omitempty"` - - // Resources is the total amount of CPU and Memory resources required by all - // containers in the pod. It supports specifying Requests and Limits for - // "cpu" and "memory" resource names only. ResourceClaims are not supported. - // +optional - Resources *DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` -} - -type DevPodWorkspaceVolumeClaimTemplate struct { - // The pods metadata - // +kubebuilder:pruning:PreserveUnknownFields - // +optional - TemplateMetadata `json:"metadata,omitempty"` - - Spec DevPodWorkspaceVolumeClaimSpec `json:"spec,omitempty"` -} - -type DevPodWorkspaceVolumeClaimSpec struct { - // accessModes contains the desired access modes the volume should have. - // +optional - // +listType=atomic - AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"` - // selector is a label query over volumes to consider for binding. - // +optional - Selector *metav1.LabelSelector `json:"selector,omitempty"` - // resources represents the minimum resources the volume should have. - // +optional - Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` - // volumeName is the binding reference to the PersistentVolume backing this claim. - // +optional - VolumeName string `json:"volumeName,omitempty"` - // storageClassName is the name of the StorageClass required by the claim. - // +optional - StorageClassName *string `json:"storageClassName,omitempty"` - // volumeMode defines what type of volume is required by the claim. - // +optional - VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"` - // dataSource field can be used to specify either: - // +optional - DataSource *corev1.TypedLocalObjectReference `json:"dataSource,omitempty"` - // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty - // +optional - DataSourceRef *corev1.TypedObjectReference `json:"dataSourceRef,omitempty"` - // volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. - // +optional - VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"` -} - -type DevPodWorkspaceProvider struct { - // Name is the name of the provider. This can also be an url. - // +optional - Name string `json:"name,omitempty"` - - // 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 workspace 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"` -} - -type CredentialForwarding struct { - // Docker specifies controls for how workspaces created by this template forward docker credentials - // +optional - Docker *DockerCredentialForwarding `json:"docker,omitempty"` - - // Git specifies controls for how workspaces created by this template forward git credentials - // +optional - Git *GitCredentialForwarding `json:"git,omitempty"` -} - -type DockerCredentialForwarding struct { - // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace - // +optional - Disabled bool `json:"disabled,omitempty"` -} - -type GitCredentialForwarding struct { - // Disabled prevents all workspaces created by this template from forwarding credentials into the workspace - // +optional - Disabled bool `json:"disabled,omitempty"` -} - -// DevPodWorkspaceTemplateStatus holds the status -type DevPodWorkspaceTemplateStatus struct { -} - -// +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/nodeclaim_types.go b/pkg/apis/storage/v1/nodeclaim_types.go index 81f7e76f..9843adb7 100644 --- a/pkg/apis/storage/v1/nodeclaim_types.go +++ b/pkg/apis/storage/v1/nodeclaim_types.go @@ -8,15 +8,20 @@ import ( const ( // NodeClaim conditions - ConditionTypeProvisioned = "Provisioned" + 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. - ConditionTypeScheduled = "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{ - ConditionTypeProvisioned, - ConditionTypeScheduled, + NodeClaimConditionTypeScheduled, + NodeClaimConditionTypeProvisioned, + NodeClaimConditionTypeJoined, } ) @@ -36,7 +41,7 @@ const ( // +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:printcolumn:name="NodeType",type="string",JSONPath=".spec.typeRef" // +kubebuilder:subresource:status // NodeClaim holds the node claim for vCluster. @@ -80,11 +85,24 @@ type NodeClaimSpec struct { // Requirements are the requirements for the NodeClaim. Requirements []corev1.NodeSelectorRequirement `json:"requirements,omitempty"` - // NodeTypeRef is the name of the NodeType that this NodeClaim is based on. - NodeTypeRef string `json:"nodeTypeRef,omitempty"` + // Properties are extra properties for the NodeClaim. + // +optional + Properties map[string]string `json:"properties"` + + // ProviderRef is the name of the NodeProvider that this NodeClaim is based on. + ProviderRef string `json:"providerRef"` + + // TypeRef is the full name of the NodeType that this NodeClaim is based on. + // +optional + TypeRef string `json:"typeRef,omitempty"` // VClusterRef references source vCluster. This is required. VClusterRef string `json:"vClusterRef"` + + // ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as + // we want to ensure that the control plane is always set for easier checking in for example terraform templates. + // +optional + ControlPlane bool `json:"controlPlane"` } type NodeClaimStatus struct { diff --git a/pkg/apis/storage/v1/nodeenvironment_types.go b/pkg/apis/storage/v1/nodeenvironment_types.go new file mode 100644 index 00000000..4634735e --- /dev/null +++ b/pkg/apis/storage/v1/nodeenvironment_types.go @@ -0,0 +1,109 @@ +package v1 + +import ( + agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + // NodeEnvironment conditions + NodeEnvironmentConditionTypeInfrastructureProvisioned = "Provisioned" + NodeEnvironmentConditionTypeInfrastructureSynced = "Synced" + NodeEnvironmentConditionTypeKubernetesProvisioned = "KubernetesProvisioned" + NodeEnvironmentConditionTypeKubernetesSynced = "KubernetesSynced" +) + +var ( + NodeEnvironmentConditions = []agentstoragev1.ConditionType{ + NodeEnvironmentConditionTypeInfrastructureProvisioned, + NodeEnvironmentConditionTypeInfrastructureSynced, + NodeEnvironmentConditionTypeKubernetesProvisioned, + NodeEnvironmentConditionTypeKubernetesSynced, + } +) + +// NodeEnvironmentPhase defines the phase of the NodeEnvironment +type NodeEnvironmentPhase string + +const ( + // NodeEnvironmentPhasePending is the initial state of a NodeEnvironment. + NodeEnvironmentPhasePending NodeEnvironmentPhase = "Pending" + // NodeEnvironmentPhaseAvailable means the underlying node environment has been successfully provisioned. + NodeEnvironmentPhaseAvailable NodeEnvironmentPhase = "Available" + // NodeEnvironmentPhaseFailed means the provisioning process has failed. + NodeEnvironmentPhaseFailed NodeEnvironmentPhase = "Failed" +) + +// +genclient +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="VCluster",type="string",JSONPath=".spec.vClusterRef" +// +kubebuilder:printcolumn:name="NodeProvider",type="string",JSONPath=".spec.nodeProviderRef" +// +kubebuilder:subresource:status + +// NodeEnvironment holds the node environment for vCluster. +// +k8s:openapi-gen=true +type NodeEnvironment struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec NodeEnvironmentSpec `json:"spec,omitempty"` + Status NodeEnvironmentStatus `json:"status,omitempty"` +} + +func (a *NodeEnvironment) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *NodeEnvironment) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +// NodeEnvironmentSpec defines spec of node environment. +type NodeEnvironmentSpec struct { + // Properties are the properties for the NodeEnvironment. + // +optional + Properties map[string]string `json:"properties"` + + // ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on. + ProviderRef string `json:"providerRef"` + + // VClusterRef references source vCluster. This is required. + VClusterRef string `json:"vClusterRef"` + + // ControlPlane indicates if the node environment is a control plane environment. This is intentionally not omitempty as + // we want to ensure that the control plane is always set for easier checking in for example terraform templates. + // +optional + ControlPlane bool `json:"controlPlane"` +} + +type NodeEnvironmentStatus struct { + // Phase is the current lifecycle phase of the NodeEnvironment. + // +optional + Phase NodeEnvironmentPhase `json:"phase,omitempty"` + + // Reason describes the reason in machine-readable form + // +optional + Reason string `json:"reason,omitempty"` + + // Message describes the reason in human-readable form + // +optional + Message string `json:"message,omitempty"` + + // Conditions describe the current state of the platform NodeClaim. + // +optional + Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// NodeEnvironmentList contains a list of NodeEnvironment +type NodeEnvironmentList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []NodeEnvironment `json:"items"` +} + +func init() { + SchemeBuilder.Register(&NodeEnvironment{}, &NodeEnvironmentList{}) +} diff --git a/pkg/apis/storage/v1/nodeprovider_types.go b/pkg/apis/storage/v1/nodeprovider_types.go index 1aa79fa9..cf0a4d26 100644 --- a/pkg/apis/storage/v1/nodeprovider_types.go +++ b/pkg/apis/storage/v1/nodeprovider_types.go @@ -3,12 +3,14 @@ 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" - NodeProviderTypePods string = "pods" - NodeProviderTypeKubeVirt string = "kubeVirt" + NodeProviderTypeBCM string = "bcm" + NodeProviderTypeKubeVirt string = "kubeVirt" + NodeProviderTypeTerraform string = "terraform" + NodeProviderTypeClusterAPI string = "clusterAPI" // NodeProviderConditionTypeInitialized is the condition that indicates if the node provider is initialized. NodeProviderConditionTypeInitialized = "Initialized" @@ -31,11 +33,25 @@ const ( // NodeProviderPhaseFailed means the provisioning process has failed. NodeProviderPhaseFailed NodeProviderPhase = "Failed" // NodeProvider specific label - NodeProvidedManagedTypeIndicatorLabel = "autoscaling.loft.sh/managed-by" + 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 @@ -64,10 +80,9 @@ func (a *NodeProvider) SetConditions(conditions agentstoragev1.Conditions) { // NodeProviderSpec defines the desired state of NodeProvider. // Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time. type NodeProviderSpec struct { - // Pods configures a node provider based on Kubernetes Pods. - // This can be used for simpler, pod-based node provisioning for testing or demos. + // Properties are global properties that are applied to all node claims and environments managed by this provider. // +optional - Pods *NodeProviderPods `json:"pods,omitempty"` + Properties map[string]string `json:"properties,omitempty"` // BCM configures a node provider for BCM Bare Metal Cloud environments. // +optional @@ -78,15 +93,28 @@ type NodeProviderSpec struct { // +optional KubeVirt *NodeProviderKubeVirt `json:"kubeVirt,omitempty"` + // Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform. + // +optional + Terraform *NodeProviderTerraform `json:"terraform,omitempty"` + + // ClusterAPI configures a node provider using Cluster API, enabling nodes to be provisioned using Cluster API. + // This requires the vCluster to be deployed with Cluster API as well. + // +optional + ClusterAPI *NodeProviderClusterAPI `json:"clusterAPI,omitempty"` + // DisplayName is the name that should be displayed in the UI // +optional DisplayName string `json:"displayName,omitempty"` } -// NodeProviderPodsSpec defines the configuration for a pod-based node provider. -type NodeProviderPods struct { - // Image is the container image to use for the pod-based node provider. - Image string `json:"image,omitempty"` +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. @@ -101,12 +129,96 @@ type NodeProviderBCM struct { NodeTypes []BCMNodeTypeSpec `json:"nodeTypes,omitempty"` } -type BCMNodeTypeSpec struct { +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"` @@ -121,17 +233,67 @@ type NamespacedRef struct { 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 { - // If KubeVirt is deployed inside one of the vClusters, reference this vCluster here. - // Otherwise it will be assumed to run in the same host cluster as platform. - // +optional - VirtualClusterRef *VirtualClusterClusterRef `json:"virtualClusterRef,omitempty"` + // ClusterRef is a reference to connected host cluster in which KubeVirt operator is running + ClusterRef *NodeProviderClusterRef `json:"clusterRef,omitempty"` - // TargetNamespace is the namespace within the KubeVirt cluster where the - // VirtualMachines and their secrets will be created. - // +optional - TargetNamespace string `json:"targetNamespace,omitempty"` + // VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider + VirtualMachineTemplate *runtime.RawExtension `json:"virtualMachineTemplate,omitempty"` + + // NodeTypes define NodeTypes that should be automatically created for this provider. + NodeTypes []KubeVirtNodeTypeSpec `json:"nodeTypes"` +} + +type NodeProviderClusterRef struct { + // Cluster is the connected cluster the VMs will be created in + Cluster string `json:"cluster"` + + // Namespace is the namespace inside the connected cluster holding VMs + Namespace string `json:"namespace,omitempty"` } // NodeProviderStatus defines the observed state of NodeProvider. diff --git a/pkg/apis/storage/v1/nodetype_types.go b/pkg/apis/storage/v1/nodetype_types.go index ad6f2f43..b93fd29e 100644 --- a/pkg/apis/storage/v1/nodetype_types.go +++ b/pkg/apis/storage/v1/nodetype_types.go @@ -1,24 +1,23 @@ package v1 import ( - "strings" - agentstoragev1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) const ( - NodeProviderPropertyKey = "vcluster.com/node-provider" - NodeTypePropertyKey = "vcluster.com/node-type" + NodeTypePropertyKey = "vcluster.com/node-type" // NodeTypeConditionTypeSynced is the condition that indicates if the node type is synced with provider. - NodeTypeConditionTypeSynced = "Synced" + NodeTypeConditionTypeSynced = "Synced" + NodeTypeConditionHasCapacity = "HasCapacity" ) var ( NodeTypeConditions = []agentstoragev1.ConditionType{ NodeTypeConditionTypeSynced, + NodeTypeConditionHasCapacity, } ) @@ -53,14 +52,6 @@ type NodeTypeSpec struct { // +optional ProviderRef string `json:"providerRef,omitempty"` - // Zone is the zone of the node type. If empty, will default to "global". - // +optional - Zone string `json:"zone,omitempty"` - - // Region is the region of the node type. - // +optional - Region string `json:"region,omitempty"` - // Properties returns a flexible set of properties that may be selected for scheduling. Properties map[string]string `json:"properties,omitempty"` @@ -81,66 +72,6 @@ type NodeTypeSpec struct { DisplayName string `json:"displayName,omitempty"` } -func (a *NodeType) GetAllProperties() []corev1.NodeSelectorRequirement { - // default properties - zone := "global" - if a.Spec.Zone != "" { - zone = a.Spec.Zone - } - - // build all properties - allProperties := []corev1.NodeSelectorRequirement{ - { - Key: corev1.LabelInstanceTypeStable, - Operator: corev1.NodeSelectorOpIn, - Values: []string{a.Name}, - }, - { - Key: corev1.LabelOSStable, - Operator: corev1.NodeSelectorOpIn, - Values: []string{string(corev1.Linux)}, - }, - { - Key: corev1.LabelTopologyZone, - Operator: corev1.NodeSelectorOpIn, - Values: []string{zone}, - }, - { - Key: "karpenter.sh/capacity-type", - Operator: corev1.NodeSelectorOpIn, - Values: []string{"on-demand"}, - }, - { - Key: NodeProviderPropertyKey, - Operator: corev1.NodeSelectorOpIn, - Values: []string{a.Spec.ProviderRef}, - }, - { - Key: NodeTypePropertyKey, - Operator: corev1.NodeSelectorOpIn, - Values: []string{a.Name}, - }, - } - if a.Spec.Region != "" { - allProperties = append(allProperties, corev1.NodeSelectorRequirement{ - Key: corev1.LabelTopologyRegion, - Operator: corev1.NodeSelectorOpIn, - Values: []string{a.Spec.Region}, - }) - } - - // add custom properties - for key, value := range a.Spec.Properties { - allProperties = append(allProperties, corev1.NodeSelectorRequirement{ - Key: key, - Operator: corev1.NodeSelectorOpIn, - Values: strings.Split(value, ","), - }) - } - - return allProperties -} - // NodeTypeOverhead defines the resource overhead for a node type. type NodeTypeOverhead struct { // KubeReserved is the resource overhead for kubelet and other Kubernetes system daemons. @@ -174,27 +105,31 @@ type NodeTypeStatus struct { // +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"` + 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 - // +optional - Total int `json:"total,omitempty"` + Total int `json:"total"` - // Available is the number of available nodes of this type - // +optional - Available int `json:"available,omitempty"` - - // Provisioned is the number of already provisioned nodes of this type - // +optional - Provisioned int `json:"provisioned,omitempty"` + // 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 diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index 086e8e60..f31fbe95 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -93,7 +93,6 @@ type ProjectSpec struct { AllowedClusters []AllowedCluster `json:"allowedClusters,omitempty"` // AllowedRunners are target runners that are allowed to target with - // DevPod environments. // +optional AllowedRunners []AllowedRunner `json:"allowedRunners,omitempty"` @@ -133,10 +132,6 @@ type ProjectSpec struct { // RancherIntegration holds information about Rancher Integration // +optional RancherIntegration *RancherIntegrationSpec `json:"rancher,omitempty"` - - // DevPod holds DevPod specific configuration for project - // +optional - DevPod *DevPodProjectSpec `json:"devPod,omitempty"` } type RequireTemplate struct { @@ -161,10 +156,6 @@ type NamespacePattern struct { // VirtualCluster holds the namespace pattern to use for virtual cluster instances // +optional VirtualCluster string `json:"virtualCluster,omitempty"` - - // DevPodWorkspace holds the namespace pattern to use for DevPod workspaces - // +optional - DevPodWorkspace string `json:"devPodWorkspace,omitempty"` } type Quotas struct { @@ -177,10 +168,8 @@ type Quotas struct { } var ( - SpaceTemplateKind = "SpaceTemplate" - VirtualClusterTemplateKind = "VirtualClusterTemplate" - DevPodWorkspaceTemplateKind = "DevPodWorkspaceTemplate" - DevPodWorkspacePresetKind = "DevPodWorkspacePreset" + SpaceTemplateKind = "SpaceTemplate" + VirtualClusterTemplateKind = "VirtualClusterTemplate" ) type AllowedTemplate struct { @@ -515,45 +504,6 @@ type SyncMembersSpec struct { RoleMapping map[string]string `json:"roleMapping,omitempty"` } -type DevPodProjectSpec struct { - // Git defines additional git related settings like credentials - // +optional - Git *GitProjectSpec `json:"git,omitempty"` - - // FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected - // +optional - FallbackImage string `json:"fallbackImage,omitempty"` - - // RegistryPattern specifies a template pattern to use for building images on the fly. - // Requires the platform pods to be authenticated against the registry. - // +optional - RegistryPattern string `json:"registryPattern,omitempty"` -} - -type GitProjectSpec struct { - // HTTP defines additional http related settings like credentials, to be - // specified as base64 encoded strings. - // +optional - HTTP *GitProjectCredentials `json:"http,omitempty"` - - // SSH defines additional ssh related settings like private keys, to be - // specified as base64 encoded strings. - // +optional - SSH *GitProjectCredentials `json:"ssh,omitempty"` -} - -type GitProjectCredentials struct { - // Token defines the credentials to use for authentication, - // this is a base64 encoded string. - // +optional - Token string `json:"token,omitempty"` - - // TokenSecretRef defines the project secret to use as credentials 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/virtualclusterinstance_types.go b/pkg/apis/storage/v1/virtualclusterinstance_types.go index 5687f402..874b9b88 100644 --- a/pkg/apis/storage/v1/virtualclusterinstance_types.go +++ b/pkg/apis/storage/v1/virtualclusterinstance_types.go @@ -7,19 +7,22 @@ import ( ) const ( - InstanceScheduled agentstoragev1.ConditionType = "Scheduled" - InstanceTemplateSynced agentstoragev1.ConditionType = "TemplateSynced" - InstanceTemplateResolved agentstoragev1.ConditionType = "TemplateResolved" - InstanceSpaceSynced agentstoragev1.ConditionType = "SpaceSynced" - InstanceSpaceReady agentstoragev1.ConditionType = "SpaceReady" - InstanceVirtualClusterDeployed agentstoragev1.ConditionType = "VirtualClusterDeployed" - InstanceVirtualClusterSynced agentstoragev1.ConditionType = "VirtualClusterSynced" - InstanceVirtualClusterReady agentstoragev1.ConditionType = "VirtualClusterReady" - InstanceVirtualClusterOnline agentstoragev1.ConditionType = "VirtualClusterOnline" - InstanceProjectsSecretsSynced agentstoragev1.ConditionType = "ProjectSecretsSynced" - - InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" - InstanceVirtualClusterDBConnectorSynced agentstoragev1.ConditionType = "DBConnectorSynced" + InstanceScheduled agentstoragev1.ConditionType = "Scheduled" + InstanceTemplateSynced agentstoragev1.ConditionType = "TemplateSynced" + InstanceTemplateResolved agentstoragev1.ConditionType = "TemplateResolved" + InstanceSpaceSynced agentstoragev1.ConditionType = "SpaceSynced" + InstanceSpaceReady agentstoragev1.ConditionType = "SpaceReady" + InstanceVirtualClusterDeployed agentstoragev1.ConditionType = "VirtualClusterDeployed" + InstanceVirtualClusterSynced agentstoragev1.ConditionType = "VirtualClusterSynced" + InstanceVirtualClusterReady agentstoragev1.ConditionType = "VirtualClusterReady" + InstanceVirtualClusterOnline agentstoragev1.ConditionType = "VirtualClusterOnline" + InstanceProjectsSecretsSynced agentstoragev1.ConditionType = "ProjectSecretsSynced" + InstanceNodesProvisioned agentstoragev1.ConditionType = "NodesProvisioned" + InstanceExternalResourcesCleanedUp agentstoragev1.ConditionType = "ExternalResourcesCleanedUp" + + InstanceVirtualClusterAppsAndObjectsSynced agentstoragev1.ConditionType = "VirtualClusterAppsAndObjectsSynced" + InstanceVirtualClusterDBConnectorSynced agentstoragev1.ConditionType = "DBConnectorSynced" + InstanceVirtualClusterDBIdentityProviderSynced agentstoragev1.ConditionType = "DBIdentityProviderSynced" ) // +genclient @@ -108,6 +111,10 @@ type VirtualClusterInstanceSpec struct { // External specifies if the virtual cluster is managed by the platform agent or externally. // +optional External bool `json:"external,omitempty"` + + // Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster. + // +optional + Standalone bool `json:"standalone,omitempty"` } type VirtualClusterInstanceStatus struct { @@ -129,6 +136,10 @@ type VirtualClusterInstanceStatus struct { // +optional ServiceUID string `json:"serviceUID,omitempty"` + // KubernetesVersion is the Kubernetes version of the virtual cluster. + // +optional + KubernetesVersion string `json:"kubernetesVersion,omitempty"` + // DeployHash is the hash of the last deployed values. // +optional DeployHash string `json:"deployHash,omitempty"` @@ -283,6 +294,10 @@ type AppReference struct { // +optional Version string `json:"version,omitempty"` + // Hash is the hash of the app configuration + // +optional + Hash string `json:"hash,omitempty"` + // Parameters to use for the app // +optional Parameters string `json:"parameters,omitempty"` diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index 5e1a7c02..b301a84f 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -9,9 +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" - v1beta1 "k8s.io/metrics/pkg/apis/metrics/v1beta1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -884,7 +882,7 @@ func (in *ArgoSSOSpec) DeepCopy() *ArgoSSOSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BCMNodeTypeSpec) DeepCopyInto(out *BCMNodeTypeSpec) { *out = *in - in.NodeTypeSpec.DeepCopyInto(&out.NodeTypeSpec) + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) if in.Nodes != nil { in, out := &in.Nodes, &out.Nodes *out = make([]string, len(*in)) @@ -968,6 +966,60 @@ func (in *Cluster) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterAPINodeTypeSpec) DeepCopyInto(out *ClusterAPINodeTypeSpec) { + *out = *in + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + in.ClusterAPIObjects.DeepCopyInto(&out.ClusterAPIObjects) + if in.MergeInfrastructureMachineTemplate != nil { + in, out := &in.MergeInfrastructureMachineTemplate, &out.MergeInfrastructureMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.MergeBootstrapConfigTemplate != nil { + in, out := &in.MergeBootstrapConfigTemplate, &out.MergeBootstrapConfigTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPINodeTypeSpec. +func (in *ClusterAPINodeTypeSpec) DeepCopy() *ClusterAPINodeTypeSpec { + if in == nil { + return nil + } + out := new(ClusterAPINodeTypeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterAPIObjects) DeepCopyInto(out *ClusterAPIObjects) { + *out = *in + if in.InfrastructureMachineTemplate != nil { + in, out := &in.InfrastructureMachineTemplate, &out.InfrastructureMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.BootstrapConfigTemplate != nil { + in, out := &in.BootstrapConfigTemplate, &out.BootstrapConfigTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAPIObjects. +func (in *ClusterAPIObjects) DeepCopy() *ClusterAPIObjects { + if in == nil { + return nil + } + out := new(ClusterAPIObjects) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterAccess) DeepCopyInto(out *ClusterAccess) { *out = *in @@ -1226,1739 +1278,143 @@ func (in *ClusterRoleTemplateSpec) DeepCopyInto(out *ClusterRoleTemplateSpec) { } } in.ClusterRoleTemplate.DeepCopyInto(&out.ClusterRoleTemplate) - if in.LocalClusterRoleTemplate != nil { - in, out := &in.LocalClusterRoleTemplate, &out.LocalClusterRoleTemplate - *out = new(LocalClusterRoleTemplate) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleTemplateSpec. -func (in *ClusterRoleTemplateSpec) DeepCopy() *ClusterRoleTemplateSpec { - if in == nil { - return nil - } - out := new(ClusterRoleTemplateSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleTemplateStatus) DeepCopyInto(out *ClusterRoleTemplateStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleTemplateStatus. -func (in *ClusterRoleTemplateStatus) DeepCopy() *ClusterRoleTemplateStatus { - if in == nil { - return nil - } - out := new(ClusterRoleTemplateStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterRoleTemplateTemplate) DeepCopyInto(out *ClusterRoleTemplateTemplate) { - *out = *in - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - 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]) - } - } - if in.AggregationRule != nil { - in, out := &in.AggregationRule, &out.AggregationRule - *out = new(rbacv1.AggregationRule) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleTemplateTemplate. -func (in *ClusterRoleTemplateTemplate) DeepCopy() *ClusterRoleTemplateTemplate { - if in == nil { - return nil - } - out := new(ClusterRoleTemplateTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { - *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - out.Config = in.Config - 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.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 -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. -func (in *ClusterSpec) DeepCopy() *ClusterSpec { - if in == nil { - return nil - } - out := new(ClusterSpec) - in.DeepCopyInto(out) - return out -} - -// 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 -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. -func (in *ClusterStatus) DeepCopy() *ClusterStatus { - if in == nil { - return nil - } - out := new(ClusterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CredentialForwarding) DeepCopyInto(out *CredentialForwarding) { - *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 { - if in == nil { - return nil - } - out := new(CredentialForwarding) - 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) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandDeleteOptions. -func (in *DevPodCommandDeleteOptions) DeepCopy() *DevPodCommandDeleteOptions { - if in == nil { - return nil - } - out := new(DevPodCommandDeleteOptions) - 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) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandStatusOptions. -func (in *DevPodCommandStatusOptions) DeepCopy() *DevPodCommandStatusOptions { - if in == nil { - return nil - } - out := new(DevPodCommandStatusOptions) - 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) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandStopOptions. -func (in *DevPodCommandStopOptions) DeepCopy() *DevPodCommandStopOptions { - if in == nil { - return nil - } - out := new(DevPodCommandStopOptions) - 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) { - *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 { - if in == nil { - return nil - } - out := new(DevPodCommandUpOptions) - 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) { - *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 DevPodEnvironmentTemplate. -func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { - if in == nil { - return nil - } - out := new(DevPodEnvironmentTemplate) - 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 *DevPodEnvironmentTemplateDefinition) DeepCopyInto(out *DevPodEnvironmentTemplateDefinition) { - *out = *in - if in.Git != nil { - in, out := &in.Git, &out.Git - *out = new(GitEnvironmentTemplate) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateDefinition. -func (in *DevPodEnvironmentTemplateDefinition) DeepCopy() *DevPodEnvironmentTemplateDefinition { - if in == nil { - return nil - } - out := new(DevPodEnvironmentTemplateDefinition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { - *out = *in - 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]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { - if in == nil { - return nil - } - out := new(DevPodEnvironmentTemplateList) - 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) { - *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.Template != nil { - in, out := &in.Template, &out.Template - *out = new(DevPodEnvironmentTemplateDefinition) - (*in).DeepCopyInto(*out) - } - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]DevPodEnvironmentTemplateVersion, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateSpec. -func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSpec { - if in == nil { - return nil - } - out := new(DevPodEnvironmentTemplateSpec) - 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) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. -func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { - if in == nil { - return nil - } - out := new(DevPodEnvironmentTemplateStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateVersion) DeepCopyInto(out *DevPodEnvironmentTemplateVersion) { - *out = *in - in.Template.DeepCopyInto(&out.Template) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateVersion. -func (in *DevPodEnvironmentTemplateVersion) DeepCopy() *DevPodEnvironmentTemplateVersion { - if in == nil { - return nil - } - out := new(DevPodEnvironmentTemplateVersion) - 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) { - *out = *in - if in.Git != nil { - in, out := &in.Git, &out.Git - *out = new(GitProjectSpec) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProjectSpec. -func (in *DevPodProjectSpec) DeepCopy() *DevPodProjectSpec { - if in == nil { - return nil - } - out := new(DevPodProjectSpec) - 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) { - *out = *in - if in.ValueFrom != nil { - in, out := &in.ValueFrom, &out.ValueFrom - *out = new(DevPodProviderOptionFrom) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderOption. -func (in *DevPodProviderOption) DeepCopy() *DevPodProviderOption { - if in == nil { - return nil - } - out := new(DevPodProviderOption) - 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) { - *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 { - if in == nil { - return nil - } - out := new(DevPodProviderOptionFrom) - 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) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderSource. -func (in *DevPodProviderSource) DeepCopy() *DevPodProviderSource { - if in == nil { - return nil - } - out := new(DevPodProviderSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceContainer) DeepCopyInto(out *DevPodWorkspaceContainer) { - *out = *in - if in.Command != nil { - in, out := &in.Command, &out.Command - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Args != nil { - in, out := &in.Args, &out.Args - *out = make([]string, len(*in)) - copy(*out, *in) - } - if in.Ports != nil { - in, out := &in.Ports, &out.Ports - *out = make([]corev1.ContainerPort, len(*in)) - copy(*out, *in) - } - if in.EnvFrom != nil { - in, out := &in.EnvFrom, &out.EnvFrom - *out = make([]corev1.EnvFromSource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make([]corev1.EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.Resources.DeepCopyInto(&out.Resources) - if in.ResizePolicy != nil { - in, out := &in.ResizePolicy, &out.ResizePolicy - *out = make([]corev1.ContainerResizePolicy, len(*in)) - copy(*out, *in) - } - if in.RestartPolicy != nil { - in, out := &in.RestartPolicy, &out.RestartPolicy - *out = new(corev1.ContainerRestartPolicy) - **out = **in - } - if in.VolumeMounts != nil { - in, out := &in.VolumeMounts, &out.VolumeMounts - *out = make([]corev1.VolumeMount, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.VolumeDevices != nil { - in, out := &in.VolumeDevices, &out.VolumeDevices - *out = make([]corev1.VolumeDevice, len(*in)) - copy(*out, *in) - } - if in.LivenessProbe != nil { - in, out := &in.LivenessProbe, &out.LivenessProbe - *out = new(corev1.Probe) - (*in).DeepCopyInto(*out) - } - if in.ReadinessProbe != nil { - in, out := &in.ReadinessProbe, &out.ReadinessProbe - *out = new(corev1.Probe) - (*in).DeepCopyInto(*out) - } - if in.StartupProbe != nil { - in, out := &in.StartupProbe, &out.StartupProbe - *out = new(corev1.Probe) - (*in).DeepCopyInto(*out) - } - if in.Lifecycle != nil { - in, out := &in.Lifecycle, &out.Lifecycle - *out = new(corev1.Lifecycle) - (*in).DeepCopyInto(*out) - } - if in.SecurityContext != nil { - in, out := &in.SecurityContext, &out.SecurityContext - *out = new(corev1.SecurityContext) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceContainer. -func (in *DevPodWorkspaceContainer) DeepCopy() *DevPodWorkspaceContainer { - if in == nil { - return nil - } - out := new(DevPodWorkspaceContainer) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstance) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { - *out = *in - in.Resources.DeepCopyInto(&out.Resources) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceContainerResource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { - *out = *in - in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. -func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceEvent) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) - if in.PodStatus != nil { - in, out := &in.PodStatus, &out.PodStatus - *out = new(DevPodWorkspaceInstancePodStatus) - (*in).DeepCopyInto(*out) - } - if in.PersistentVolumeClaimStatus != nil { - in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus - *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceKubernetesStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { - *out = *in - 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]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceList) - 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 *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { - *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = make(corev1.ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]corev1.PersistentVolumeClaimCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePersistentVolumeClaimStatus. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]corev1.PodCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainerStatuses != nil { - in, out := &in.InitContainerStatuses, &out.InitContainerStatuses - *out = make([]corev1.ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerStatuses != nil { - in, out := &in.ContainerStatuses, &out.ContainerStatuses - *out = make([]corev1.ContainerStatus, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Events != nil { - in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerResources != nil { - in, out := &in.ContainerResources, &out.ContainerResources - *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ContainerMetrics != nil { - in, out := &in.ContainerMetrics, &out.ContainerMetrics - *out = make([]v1beta1.ContainerMetrics, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstancePodStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { - *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.PresetRef != nil { - in, out := &in.PresetRef, &out.PresetRef - *out = new(PresetRef) - **out = **in - } - if in.TemplateRef != nil { - in, out := &in.TemplateRef, &out.TemplateRef - *out = new(TemplateRef) - **out = **in - } - if in.EnvironmentRef != nil { - in, out := &in.EnvironmentRef, &out.EnvironmentRef - *out = new(EnvironmentRef) - **out = **in - } - if in.Template != nil { - in, out := &in.Template, &out.Template - *out = new(DevPodWorkspaceTemplateDefinition) - (*in).DeepCopyInto(*out) - } - in.Target.DeepCopyInto(&out.Target) - out.RunnerRef = in.RunnerRef - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. -func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { - *out = *in - in.ResolvedTarget.DeepCopyInto(&out.ResolvedTarget) - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make(storagev1.Conditions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Instance != nil { - in, out := &in.Instance, &out.Instance - *out = new(DevPodWorkspaceTemplateDefinition) - (*in).DeepCopyInto(*out) - } - if in.Kubernetes != nil { - in, out := &in.Kubernetes, &out.Kubernetes - *out = new(DevPodWorkspaceInstanceKubernetesStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceInstanceTemplateDefinition) { - *out = *in - in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTemplateDefinition. -func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopy() *DevPodWorkspaceInstanceTemplateDefinition { - if in == nil { - return nil - } - out := new(DevPodWorkspaceInstanceTemplateDefinition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceKubernetesSpec) DeepCopyInto(out *DevPodWorkspaceKubernetesSpec) { - *out = *in - if in.Pod != nil { - in, out := &in.Pod, &out.Pod - *out = new(DevPodWorkspacePodTemplate) - (*in).DeepCopyInto(*out) - } - if in.VolumeClaim != nil { - in, out := &in.VolumeClaim, &out.VolumeClaim - *out = new(DevPodWorkspaceVolumeClaimTemplate) - (*in).DeepCopyInto(*out) - } - if in.SpaceTemplateRef != nil { - in, out := &in.SpaceTemplateRef, &out.SpaceTemplateRef - *out = new(TemplateRef) - **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) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceKubernetesSpec. -func (in *DevPodWorkspaceKubernetesSpec) DeepCopy() *DevPodWorkspaceKubernetesSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspaceKubernetesSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePodTemplate) DeepCopyInto(out *DevPodWorkspacePodTemplate) { - *out = *in - in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePodTemplate. -func (in *DevPodWorkspacePodTemplate) DeepCopy() *DevPodWorkspacePodTemplate { - if in == nil { - return nil - } - out := new(DevPodWorkspacePodTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTemplateSpec) { - *out = *in - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]corev1.Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.InitContainers != nil { - in, out := &in.InitContainers, &out.InitContainers - *out = make([]DevPodWorkspaceContainer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Containers != nil { - in, out := &in.Containers, &out.Containers - *out = make([]DevPodWorkspaceContainer, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.TerminationGracePeriodSeconds != nil { - in, out := &in.TerminationGracePeriodSeconds, &out.TerminationGracePeriodSeconds - *out = new(int64) - **out = **in - } - if in.ActiveDeadlineSeconds != nil { - in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds - *out = new(int64) - **out = **in - } - if in.NodeSelector != nil { - in, out := &in.NodeSelector, &out.NodeSelector - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.AutomountServiceAccountToken != nil { - in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken - *out = new(bool) - **out = **in - } - if in.ShareProcessNamespace != nil { - in, out := &in.ShareProcessNamespace, &out.ShareProcessNamespace - *out = new(bool) - **out = **in - } - if in.SecurityContext != nil { - in, out := &in.SecurityContext, &out.SecurityContext - *out = new(corev1.PodSecurityContext) - (*in).DeepCopyInto(*out) - } - if in.ImagePullSecrets != nil { - in, out := &in.ImagePullSecrets, &out.ImagePullSecrets - *out = make([]corev1.LocalObjectReference, len(*in)) - copy(*out, *in) - } - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity - *out = new(corev1.Affinity) - (*in).DeepCopyInto(*out) - } - if in.Tolerations != nil { - in, out := &in.Tolerations, &out.Tolerations - *out = make([]corev1.Toleration, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.HostAliases != nil { - in, out := &in.HostAliases, &out.HostAliases - *out = make([]corev1.HostAlias, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Priority != nil { - in, out := &in.Priority, &out.Priority - *out = new(int32) - **out = **in - } - if in.DNSConfig != nil { - in, out := &in.DNSConfig, &out.DNSConfig - *out = new(corev1.PodDNSConfig) - (*in).DeepCopyInto(*out) - } - if in.ReadinessGates != nil { - in, out := &in.ReadinessGates, &out.ReadinessGates - *out = make([]corev1.PodReadinessGate, len(*in)) - copy(*out, *in) - } - if in.RuntimeClassName != nil { - in, out := &in.RuntimeClassName, &out.RuntimeClassName - *out = new(string) - **out = **in - } - if in.EnableServiceLinks != nil { - in, out := &in.EnableServiceLinks, &out.EnableServiceLinks - *out = new(bool) - **out = **in - } - if in.PreemptionPolicy != nil { - in, out := &in.PreemptionPolicy, &out.PreemptionPolicy - *out = new(corev1.PreemptionPolicy) - **out = **in - } - if in.Overhead != nil { - in, out := &in.Overhead, &out.Overhead - *out = make(corev1.ResourceList, len(*in)) - for key, val := range *in { - (*out)[key] = val.DeepCopy() - } - } - if in.TopologySpreadConstraints != nil { - in, out := &in.TopologySpreadConstraints, &out.TopologySpreadConstraints - *out = make([]corev1.TopologySpreadConstraint, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.SetHostnameAsFQDN != nil { - in, out := &in.SetHostnameAsFQDN, &out.SetHostnameAsFQDN - *out = new(bool) - **out = **in - } - if in.OS != nil { - in, out := &in.OS, &out.OS - *out = new(corev1.PodOS) - **out = **in - } - if in.HostUsers != nil { - in, out := &in.HostUsers, &out.HostUsers - *out = new(bool) - **out = **in - } - if in.SchedulingGates != nil { - in, out := &in.SchedulingGates, &out.SchedulingGates - *out = make([]corev1.PodSchedulingGate, len(*in)) - copy(*out, *in) - } - if in.ResourceClaims != nil { - in, out := &in.ResourceClaims, &out.ResourceClaims - *out = make([]corev1.PodResourceClaim, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Resources != nil { - in, out := &in.Resources, &out.Resources - *out = new(DevPodWorkspaceResourceRequirements) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePodTemplateSpec. -func (in *DevPodWorkspacePodTemplateSpec) DeepCopy() *DevPodWorkspacePodTemplateSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspacePodTemplateSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. -func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { - if in == nil { - return nil - } - out := new(DevPodWorkspacePreset) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspacePreset, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. -func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { - if in == nil { - return nil - } - out := new(DevPodWorkspacePresetList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. -func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { - if in == nil { - return nil - } - out := new(DevPodWorkspacePresetSource) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { - *out = *in - if in.Source != nil { - in, out := &in.Source, &out.Source - *out = new(DevPodWorkspacePresetSource) - **out = **in - } - if in.InfrastructureRef != nil { - in, out := &in.InfrastructureRef, &out.InfrastructureRef - *out = new(TemplateRef) - **out = **in - } - if in.EnvironmentRef != nil { - in, out := &in.EnvironmentRef, &out.EnvironmentRef - *out = new(EnvironmentRef) - **out = **in - } - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]DevPodWorkspacePresetVersion, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. -func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspacePresetSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. -func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspacePresetStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetVersion) DeepCopyInto(out *DevPodWorkspacePresetVersion) { - *out = *in - if in.Source != nil { - in, out := &in.Source, &out.Source - *out = new(DevPodWorkspacePresetSource) - **out = **in - } - if in.InfrastructureRef != nil { - in, out := &in.InfrastructureRef, &out.InfrastructureRef - *out = new(TemplateRef) - **out = **in - } - if in.EnvironmentRef != nil { - in, out := &in.EnvironmentRef, &out.EnvironmentRef - *out = new(EnvironmentRef) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetVersion. -func (in *DevPodWorkspacePresetVersion) DeepCopy() *DevPodWorkspacePresetVersion { - if in == nil { - return nil - } - out := new(DevPodWorkspacePresetVersion) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceProvider) DeepCopyInto(out *DevPodWorkspaceProvider) { - *out = *in - if in.Options != nil { - in, out := &in.Options, &out.Options - *out = make(map[string]DevPodProviderOption, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - if in.Env != nil { - in, out := &in.Env, &out.Env - *out = make(map[string]DevPodProviderOption, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceProvider. -func (in *DevPodWorkspaceProvider) DeepCopy() *DevPodWorkspaceProvider { - if in == nil { - return nil - } - out := new(DevPodWorkspaceProvider) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceResourceRequirements) DeepCopyInto(out *DevPodWorkspaceResourceRequirements) { - *out = *in - if in.Limits != nil { - in, out := &in.Limits, &out.Limits - *out = make(map[corev1.ResourceName]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Requests != nil { - in, out := &in.Requests, &out.Requests - *out = make(map[corev1.ResourceName]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Claims != nil { - in, out := &in.Claims, &out.Claims - *out = make([]corev1.ResourceClaim, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceResourceRequirements. -func (in *DevPodWorkspaceResourceRequirements) DeepCopy() *DevPodWorkspaceResourceRequirements { - if in == nil { - return nil - } - out := new(DevPodWorkspaceResourceRequirements) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. -func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { - if in == nil { - return nil - } - out := new(DevPodWorkspaceTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTemplateDefinition) { - *out = *in - if in.Kubernetes != nil { - in, out := &in.Kubernetes, &out.Kubernetes - *out = new(DevPodWorkspaceKubernetesSpec) - (*in).DeepCopyInto(*out) - } - if in.WorkspaceEnv != nil { - in, out := &in.WorkspaceEnv, &out.WorkspaceEnv - *out = make(map[string]DevPodProviderOption, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - in.InstanceTemplate.DeepCopyInto(&out.InstanceTemplate) - if in.CredentialForwarding != nil { - in, out := &in.CredentialForwarding, &out.CredentialForwarding - *out = new(CredentialForwarding) - (*in).DeepCopyInto(*out) - } - if in.Provider != nil { - in, out := &in.Provider, &out.Provider - *out = new(DevPodWorkspaceProvider) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateDefinition. -func (in *DevPodWorkspaceTemplateDefinition) DeepCopy() *DevPodWorkspaceTemplateDefinition { - if in == nil { - return nil - } - out := new(DevPodWorkspaceTemplateDefinition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceTemplate, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { - if in == nil { - return nil - } - out := new(DevPodWorkspaceTemplateList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { - *out = *in - if in.Owner != nil { - in, out := &in.Owner, &out.Owner - *out = new(UserOrTeam) - **out = **in - } - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make([]AppParameter, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - in.Template.DeepCopyInto(&out.Template) - if in.Versions != nil { - in, out := &in.Versions, &out.Versions - *out = make([]DevPodWorkspaceTemplateVersion, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Access != nil { - in, out := &in.Access, &out.Access - *out = make([]Access, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. -func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspaceTemplateSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { - if in == nil { - return nil - } - out := new(DevPodWorkspaceTemplateStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateVersion) DeepCopyInto(out *DevPodWorkspaceTemplateVersion) { - *out = *in - in.Template.DeepCopyInto(&out.Template) - if in.Parameters != nil { - in, out := &in.Parameters, &out.Parameters - *out = make([]AppParameter, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateVersion. -func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVersion { - if in == nil { - return nil - } - out := new(DevPodWorkspaceTemplateVersion) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopyInto(out *DevPodWorkspaceVolumeClaimSpec) { - *out = *in - if in.AccessModes != nil { - in, out := &in.AccessModes, &out.AccessModes - *out = make([]corev1.PersistentVolumeAccessMode, len(*in)) - copy(*out, *in) - } - if in.Selector != nil { - in, out := &in.Selector, &out.Selector - *out = new(metav1.LabelSelector) - (*in).DeepCopyInto(*out) - } - in.Resources.DeepCopyInto(&out.Resources) - if in.StorageClassName != nil { - in, out := &in.StorageClassName, &out.StorageClassName - *out = new(string) - **out = **in - } - if in.VolumeMode != nil { - in, out := &in.VolumeMode, &out.VolumeMode - *out = new(corev1.PersistentVolumeMode) - **out = **in - } - if in.DataSource != nil { - in, out := &in.DataSource, &out.DataSource - *out = new(corev1.TypedLocalObjectReference) - (*in).DeepCopyInto(*out) - } - if in.DataSourceRef != nil { - in, out := &in.DataSourceRef, &out.DataSourceRef - *out = new(corev1.TypedObjectReference) - (*in).DeepCopyInto(*out) - } - if in.VolumeAttributesClassName != nil { - in, out := &in.VolumeAttributesClassName, &out.VolumeAttributesClassName - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimSpec. -func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopy() *DevPodWorkspaceVolumeClaimSpec { - if in == nil { - return nil - } - out := new(DevPodWorkspaceVolumeClaimSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopyInto(out *DevPodWorkspaceVolumeClaimTemplate) { - *out = *in - in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) - in.Spec.DeepCopyInto(&out.Spec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimTemplate. -func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopy() *DevPodWorkspaceVolumeClaimTemplate { - if in == nil { - return nil - } - out := new(DevPodWorkspaceVolumeClaimTemplate) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DockerCredentialForwarding) DeepCopyInto(out *DockerCredentialForwarding) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerCredentialForwarding. -func (in *DockerCredentialForwarding) DeepCopy() *DockerCredentialForwarding { - if in == nil { - return nil - } - out := new(DockerCredentialForwarding) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EntityInfo) DeepCopyInto(out *EntityInfo) { - *out = *in + if in.LocalClusterRoleTemplate != nil { + in, out := &in.LocalClusterRoleTemplate, &out.LocalClusterRoleTemplate + *out = new(LocalClusterRoleTemplate) + (*in).DeepCopyInto(*out) + } 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 ClusterRoleTemplateSpec. +func (in *ClusterRoleTemplateSpec) DeepCopy() *ClusterRoleTemplateSpec { if in == nil { return nil } - out := new(EntityInfo) + out := new(ClusterRoleTemplateSpec) 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 *ClusterRoleTemplateStatus) DeepCopyInto(out *ClusterRoleTemplateStatus) { *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 ClusterRoleTemplateStatus. +func (in *ClusterRoleTemplateStatus) DeepCopy() *ClusterRoleTemplateStatus { if in == nil { return nil } - out := new(EnvironmentRef) + out := new(ClusterRoleTemplateStatus) 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 *ClusterRoleTemplateTemplate) DeepCopyInto(out *ClusterRoleTemplateTemplate) { *out = *in + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + 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]) + } + } + if in.AggregationRule != nil { + in, out := &in.AggregationRule, &out.AggregationRule + *out = new(rbacv1.AggregationRule) + (*in).DeepCopyInto(*out) + } 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 ClusterRoleTemplateTemplate. +func (in *ClusterRoleTemplateTemplate) DeepCopy() *ClusterRoleTemplateTemplate { if in == nil { return nil } - out := new(GitCredentialForwarding) + out := new(ClusterRoleTemplateTemplate) 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 *ClusterSpec) DeepCopyInto(out *ClusterSpec) { *out = *in + if in.Owner != nil { + in, out := &in.Owner, &out.Owner + *out = new(UserOrTeam) + **out = **in + } + out.Config = in.Config + 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.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 } -// 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 ClusterSpec. +func (in *ClusterSpec) DeepCopy() *ClusterSpec { if in == nil { return nil } - out := new(GitEnvironmentTemplate) + out := new(ClusterSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitProjectCredentials) DeepCopyInto(out *GitProjectCredentials) { +func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { *out = *in - if in.TokenProjectSecretRef != nil { - in, out := &in.TokenProjectSecretRef, &out.TokenProjectSecretRef - *out = new(corev1.SecretKeySelector) - (*in).DeepCopyInto(*out) + 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 GitProjectCredentials. -func (in *GitProjectCredentials) DeepCopy() *GitProjectCredentials { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. +func (in *ClusterStatus) DeepCopy() *ClusterStatus { if in == nil { return nil } - out := new(GitProjectCredentials) + out := new(ClusterStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *GitProjectSpec) DeepCopyInto(out *GitProjectSpec) { +func (in *EntityInfo) DeepCopyInto(out *EntityInfo) { *out = *in - if in.HTTP != nil { - in, out := &in.HTTP, &out.HTTP - *out = new(GitProjectCredentials) - (*in).DeepCopyInto(*out) - } - if in.SSH != nil { - in, out := &in.SSH, &out.SSH - *out = new(GitProjectCredentials) - (*in).DeepCopyInto(*out) - } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitProjectSpec. -func (in *GitProjectSpec) DeepCopy() *GitProjectSpec { +// 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(GitProjectSpec) + out := new(EntityInfo) in.DeepCopyInto(out) return out } @@ -3189,6 +1645,33 @@ func (in *KindSecretRef) DeepCopy() *KindSecretRef { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *KubeVirtNodeTypeSpec) DeepCopyInto(out *KubeVirtNodeTypeSpec) { + *out = *in + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + if in.VirtualMachineTemplate != nil { + in, out := &in.VirtualMachineTemplate, &out.VirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.MergeVirtualMachineTemplate != nil { + in, out := &in.MergeVirtualMachineTemplate, &out.MergeVirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeVirtNodeTypeSpec. +func (in *KubeVirtNodeTypeSpec) DeepCopy() *KubeVirtNodeTypeSpec { + if in == nil { + return nil + } + out := new(KubeVirtNodeTypeSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LocalClusterAccessSpec) DeepCopyInto(out *LocalClusterAccessSpec) { *out = *in @@ -3273,6 +1756,36 @@ func (in *LocalClusterRoleTemplateSpec) DeepCopy() *LocalClusterRoleTemplateSpec return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ManagedNodeTypeObjectMeta) DeepCopyInto(out *ManagedNodeTypeObjectMeta) { + *out = *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 + } + } + 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 + } + } + return +} + +// 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(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 *Member) DeepCopyInto(out *Member) { *out = *in @@ -3316,6 +1829,24 @@ func (in *Metrics) DeepCopy() *Metrics { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 NamedNodeTypeSpec. +func (in *NamedNodeTypeSpec) DeepCopy() *NamedNodeTypeSpec { + if in == nil { + return nil + } + 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 *NamespacePattern) DeepCopyInto(out *NamespacePattern) { *out = *in @@ -3555,6 +2086,13 @@ func (in *NodeClaimSpec) DeepCopyInto(out *NodeClaimSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Properties != nil { + in, out := &in.Properties, &out.Properties + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } @@ -3591,6 +2129,113 @@ func (in *NodeClaimStatus) DeepCopy() *NodeClaimStatus { 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 NodeEnvironment. +func (in *NodeEnvironment) DeepCopy() *NodeEnvironment { + if in == nil { + return nil + } + 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 *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([]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 NodeEnvironmentList. +func (in *NodeEnvironmentList) DeepCopy() *NodeEnvironmentList { + if in == nil { + return nil + } + 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 *NodeEnvironmentSpec) DeepCopyInto(out *NodeEnvironmentSpec) { + *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 NodeEnvironmentSpec. +func (in *NodeEnvironmentSpec) DeepCopy() *NodeEnvironmentSpec { + if in == nil { + return nil + } + 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 *NodeEnvironmentStatus) DeepCopyInto(out *NodeEnvironmentStatus) { + *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 NodeEnvironmentStatus. +func (in *NodeEnvironmentStatus) DeepCopy() *NodeEnvironmentStatus { + if in == nil { + return nil + } + 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 *NodeProvider) DeepCopyInto(out *NodeProvider) { *out = *in @@ -3637,12 +2282,57 @@ func (in *NodeProviderBCM) DeepCopyInto(out *NodeProviderBCM) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderBCM. -func (in *NodeProviderBCM) DeepCopy() *NodeProviderBCM { +// 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(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 *NodeProviderClusterAPI) DeepCopyInto(out *NodeProviderClusterAPI) { + *out = *in + in.ClusterAPIObjects.DeepCopyInto(&out.ClusterAPIObjects) + if in.ClusterRef != nil { + in, out := &in.ClusterRef, &out.ClusterRef + *out = new(NodeProviderClusterRef) + **out = **in + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]ClusterAPINodeTypeSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderClusterAPI. +func (in *NodeProviderClusterAPI) DeepCopy() *NodeProviderClusterAPI { + if in == nil { + return nil + } + 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 *NodeProviderClusterRef) DeepCopyInto(out *NodeProviderClusterRef) { + *out = *in + return +} + +// 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(NodeProviderBCM) + out := new(NodeProviderClusterRef) in.DeepCopyInto(out) return out } @@ -3650,11 +2340,23 @@ func (in *NodeProviderBCM) DeepCopy() *NodeProviderBCM { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeProviderKubeVirt) DeepCopyInto(out *NodeProviderKubeVirt) { *out = *in - if in.VirtualClusterRef != nil { - in, out := &in.VirtualClusterRef, &out.VirtualClusterRef - *out = new(VirtualClusterClusterRef) + if in.ClusterRef != nil { + in, out := &in.ClusterRef, &out.ClusterRef + *out = new(NodeProviderClusterRef) **out = **in } + if in.VirtualMachineTemplate != nil { + in, out := &in.VirtualMachineTemplate, &out.VirtualMachineTemplate + *out = new(runtime.RawExtension) + (*in).DeepCopyInto(*out) + } + if in.NodeTypes != nil { + in, out := &in.NodeTypes, &out.NodeTypes + *out = make([]KubeVirtNodeTypeSpec, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } return } @@ -3701,29 +2403,15 @@ func (in *NodeProviderList) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *NodeProviderPods) DeepCopyInto(out *NodeProviderPods) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeProviderPods. -func (in *NodeProviderPods) DeepCopy() *NodeProviderPods { - if in == nil { - return nil - } - out := new(NodeProviderPods) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = *in - if in.Pods != nil { - in, out := &in.Pods, &out.Pods - *out = new(NodeProviderPods) - **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.BCM != nil { in, out := &in.BCM, &out.BCM @@ -3735,6 +2423,16 @@ func (in *NodeProviderSpec) DeepCopyInto(out *NodeProviderSpec) { *out = new(NodeProviderKubeVirt) (*in).DeepCopyInto(*out) } + if in.Terraform != nil { + in, out := &in.Terraform, &out.Terraform + *out = new(NodeProviderTerraform) + (*in).DeepCopyInto(*out) + } + if in.ClusterAPI != nil { + in, out := &in.ClusterAPI, &out.ClusterAPI + *out = new(NodeProviderClusterAPI) + (*in).DeepCopyInto(*out) + } return } @@ -3771,6 +2469,39 @@ func (in *NodeProviderStatus) DeepCopy() *NodeProviderStatus { 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 *NodeType) DeepCopyInto(out *NodeType) { *out = *in @@ -3909,10 +2640,13 @@ func (in *NodeTypeSpec) DeepCopy() *NodeTypeSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeTypeStatus) DeepCopyInto(out *NodeTypeStatus) { *out = *in - if in.Capacity != nil { - in, out := &in.Capacity, &out.Capacity - *out = new(NodeTypeCapacity) - **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 @@ -4008,22 +2742,6 @@ func (in *PodSelector) DeepCopy() *PodSelector { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PresetRef) DeepCopyInto(out *PresetRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PresetRef. -func (in *PresetRef) DeepCopy() *PresetRef { - if in == nil { - return nil - } - out := new(PresetRef) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Project) DeepCopyInto(out *Project) { *out = *in @@ -4143,11 +2861,6 @@ func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = new(RancherIntegrationSpec) (*in).DeepCopyInto(*out) } - if in.DevPod != nil { - in, out := &in.DevPod, &out.DevPod - *out = new(DevPodProjectSpec) - (*in).DeepCopyInto(*out) - } return } @@ -4453,22 +3166,6 @@ func (in *RequireTemplate) DeepCopy() *RequireTemplate { 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) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnerRef. -func (in *RunnerRef) DeepCopy() *RunnerRef { - if in == nil { - return nil - } - out := new(RunnerRef) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SSOIdentity) DeepCopyInto(out *SSOIdentity) { *out = *in @@ -5465,6 +4162,102 @@ func (in *TemplateRef) DeepCopy() *TemplateRef { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformNodeEnvironmentTemplate) DeepCopyInto(out *TerraformNodeEnvironmentTemplate) { + *out = *in + in.TerraformTemplate.DeepCopyInto(&out.TerraformTemplate) + if in.Infrastructure != nil { + in, out := &in.Infrastructure, &out.Infrastructure + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + if in.Kubernetes != nil { + in, out := &in.Kubernetes, &out.Kubernetes + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformNodeEnvironmentTemplate. +func (in *TerraformNodeEnvironmentTemplate) DeepCopy() *TerraformNodeEnvironmentTemplate { + if in == nil { + return nil + } + out := new(TerraformNodeEnvironmentTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformNodeTypeSpec) DeepCopyInto(out *TerraformNodeTypeSpec) { + *out = *in + in.NamedNodeTypeSpec.DeepCopyInto(&out.NamedNodeTypeSpec) + if in.NodeTemplate != nil { + in, out := &in.NodeTemplate, &out.NodeTemplate + *out = new(TerraformTemplate) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformNodeTypeSpec. +func (in *TerraformNodeTypeSpec) DeepCopy() *TerraformNodeTypeSpec { + if in == nil { + return nil + } + out := new(TerraformNodeTypeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformTemplate) DeepCopyInto(out *TerraformTemplate) { + *out = *in + if in.Git != nil { + in, out := &in.Git, &out.Git + *out = new(TerraformTemplateSourceGit) + (*in).DeepCopyInto(*out) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformTemplate. +func (in *TerraformTemplate) DeepCopy() *TerraformTemplate { + if in == nil { + return nil + } + out := new(TerraformTemplate) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TerraformTemplateSourceGit) DeepCopyInto(out *TerraformTemplateSourceGit) { + *out = *in + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = new(SecretRef) + **out = **in + } + if in.ExtraEnv != nil { + in, out := &in.ExtraEnv, &out.ExtraEnv + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TerraformTemplateSourceGit. +func (in *TerraformTemplateSourceGit) DeepCopy() *TerraformTemplateSourceGit { + if in == nil { + return nil + } + out := new(TerraformTemplateSourceGit) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *User) DeepCopyInto(out *User) { *out = *in @@ -6268,124 +5061,3 @@ func (in *VirtualClusterTemplateVersion) DeepCopy() *VirtualClusterTemplateVersi in.DeepCopyInto(out) return out } - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkspaceRef) DeepCopyInto(out *WorkspaceRef) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceRef. -func (in *WorkspaceRef) DeepCopy() *WorkspaceRef { - if in == nil { - return nil - } - out := new(WorkspaceRef) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkspaceResolvedTarget) DeepCopyInto(out *WorkspaceResolvedTarget) { - *out = *in - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = new(WorkspaceTargetNamespace) - **out = **in - } - if in.VirtualCluster != nil { - in, out := &in.VirtualCluster, &out.VirtualCluster - *out = new(WorkspaceTargetNamespace) - **out = **in - } - if in.Space != nil { - in, out := &in.Space, &out.Space - *out = new(WorkspaceTargetName) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceResolvedTarget. -func (in *WorkspaceResolvedTarget) DeepCopy() *WorkspaceResolvedTarget { - if in == nil { - return nil - } - out := new(WorkspaceResolvedTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkspaceStatusResult) DeepCopyInto(out *WorkspaceStatusResult) { - *out = *in - 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 -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkspaceTarget) DeepCopyInto(out *WorkspaceTarget) { - *out = *in - if in.Cluster != nil { - in, out := &in.Cluster, &out.Cluster - *out = new(WorkspaceTargetName) - **out = **in - } - if in.VirtualCluster != nil { - in, out := &in.VirtualCluster, &out.VirtualCluster - *out = new(WorkspaceTargetName) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTarget. -func (in *WorkspaceTarget) DeepCopy() *WorkspaceTarget { - if in == nil { - return nil - } - out := new(WorkspaceTarget) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkspaceTargetName) DeepCopyInto(out *WorkspaceTargetName) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTargetName. -func (in *WorkspaceTargetName) DeepCopy() *WorkspaceTargetName { - if in == nil { - return nil - } - out := new(WorkspaceTargetName) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WorkspaceTargetNamespace) DeepCopyInto(out *WorkspaceTargetNamespace) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceTargetNamespace. -func (in *WorkspaceTargetNamespace) DeepCopy() *WorkspaceTargetNamespace { - if in == nil { - return nil - } - out := new(WorkspaceTargetNamespace) - in.DeepCopyInto(out) - return out -} diff --git a/pkg/apis/storage/v1/zz_generated.defaults.go b/pkg/apis/storage/v1/zz_generated.defaults.go index 9cf29650..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 ( - corev1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -14,500 +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(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) - }) return nil } - -func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { - if in.Spec.Template != nil { - if in.Spec.Template.Kubernetes != nil { - if in.Spec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Spec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Spec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } - if in.Status.Instance != nil { - if in.Status.Instance.Kubernetes != nil { - if in.Status.Instance.Kubernetes.Pod != nil { - for i := range in.Status.Instance.Kubernetes.Pod.Spec.Volumes { - a := &in.Status.Instance.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Status.Instance.Kubernetes.Pod.Spec.InitContainers { - a := &in.Status.Instance.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Status.Instance.Kubernetes.Pod.Spec.Containers { - a := &in.Status.Instance.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstance(a) - } -} - -func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { - if in.Spec.Template.Kubernetes != nil { - if in.Spec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.Template.Kubernetes.Pod.Spec.Volumes[i] - if a.VolumeSource.ISCSI != nil { - if a.VolumeSource.ISCSI.ISCSIInterface == "" { - a.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if a.VolumeSource.RBD != nil { - if a.VolumeSource.RBD.RBDPool == "" { - a.VolumeSource.RBD.RBDPool = "rbd" - } - if a.VolumeSource.RBD.RadosUser == "" { - a.VolumeSource.RBD.RadosUser = "admin" - } - if a.VolumeSource.RBD.Keyring == "" { - a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if a.VolumeSource.AzureDisk != nil { - if a.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - a.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if a.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - a.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if a.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - a.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if a.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - a.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if a.VolumeSource.ScaleIO != nil { - if a.VolumeSource.ScaleIO.StorageMode == "" { - a.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if a.VolumeSource.ScaleIO.FSType == "" { - a.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for i := range in.Spec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.Template.Kubernetes.Pod.Spec.InitContainers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for i := range in.Spec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.Template.Kubernetes.Pod.Spec.Containers[i] - for j := range a.Ports { - b := &a.Ports[j] - if b.Protocol == "" { - b.Protocol = "TCP" - } - } - if a.LivenessProbe != nil { - if a.LivenessProbe.ProbeHandler.GRPC != nil { - if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.ReadinessProbe != nil { - if a.ReadinessProbe.ProbeHandler.GRPC != nil { - if a.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if a.StartupProbe != nil { - if a.StartupProbe.ProbeHandler.GRPC != nil { - if a.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - a.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - for i := range in.Spec.Versions { - a := &in.Spec.Versions[i] - if a.Template.Kubernetes != nil { - if a.Template.Kubernetes.Pod != nil { - for j := range a.Template.Kubernetes.Pod.Spec.Volumes { - b := &a.Template.Kubernetes.Pod.Spec.Volumes[j] - if b.VolumeSource.ISCSI != nil { - if b.VolumeSource.ISCSI.ISCSIInterface == "" { - b.VolumeSource.ISCSI.ISCSIInterface = "default" - } - } - if b.VolumeSource.RBD != nil { - if b.VolumeSource.RBD.RBDPool == "" { - b.VolumeSource.RBD.RBDPool = "rbd" - } - if b.VolumeSource.RBD.RadosUser == "" { - b.VolumeSource.RBD.RadosUser = "admin" - } - if b.VolumeSource.RBD.Keyring == "" { - b.VolumeSource.RBD.Keyring = "/etc/ceph/keyring" - } - } - if b.VolumeSource.AzureDisk != nil { - if b.VolumeSource.AzureDisk.CachingMode == nil { - ptrVar1 := corev1.AzureDataDiskCachingMode(corev1.AzureDataDiskCachingReadWrite) - b.VolumeSource.AzureDisk.CachingMode = &ptrVar1 - } - if b.VolumeSource.AzureDisk.FSType == nil { - var ptrVar1 string = "ext4" - b.VolumeSource.AzureDisk.FSType = &ptrVar1 - } - if b.VolumeSource.AzureDisk.ReadOnly == nil { - var ptrVar1 bool = false - b.VolumeSource.AzureDisk.ReadOnly = &ptrVar1 - } - if b.VolumeSource.AzureDisk.Kind == nil { - ptrVar1 := corev1.AzureDataDiskKind(corev1.AzureSharedBlobDisk) - b.VolumeSource.AzureDisk.Kind = &ptrVar1 - } - } - if b.VolumeSource.ScaleIO != nil { - if b.VolumeSource.ScaleIO.StorageMode == "" { - b.VolumeSource.ScaleIO.StorageMode = "ThinProvisioned" - } - if b.VolumeSource.ScaleIO.FSType == "" { - b.VolumeSource.ScaleIO.FSType = "xfs" - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.InitContainers { - b := &a.Template.Kubernetes.Pod.Spec.InitContainers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - for j := range a.Template.Kubernetes.Pod.Spec.Containers { - b := &a.Template.Kubernetes.Pod.Spec.Containers[j] - for k := range b.Ports { - c := &b.Ports[k] - if c.Protocol == "" { - c.Protocol = "TCP" - } - } - if b.LivenessProbe != nil { - if b.LivenessProbe.ProbeHandler.GRPC != nil { - if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.LivenessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.ReadinessProbe != nil { - if b.ReadinessProbe.ProbeHandler.GRPC != nil { - if b.ReadinessProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.ReadinessProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - if b.StartupProbe != nil { - if b.StartupProbe.ProbeHandler.GRPC != nil { - if b.StartupProbe.ProbeHandler.GRPC.Service == nil { - var ptrVar1 string = "" - b.StartupProbe.ProbeHandler.GRPC.Service = &ptrVar1 - } - } - } - } - } - } - } -} - -func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { - for i := range in.Items { - a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) - } -} diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index acf26dec..a7c33141 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -41,6 +41,10 @@ type UISettingsSpec struct { // 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"` @@ -82,6 +86,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 { @@ -101,4 +123,29 @@ type NavBarButton struct { } // UISettingsStatus holds the status -type UISettingsStatus struct{} +type UISettingsStatus struct { + // Csps holds Content Security Policies + // +optional + Csps Csps `json:"csps,omitempty"` + + // CspConfig holds the raw csp config from the user + // +optional + CspConfig string `json:"cspConfig,omitempty"` +} + +type Csps map[string]CspPolicy + +type CspPolicy struct { + Script string + Connect string + Frame string + Font string +} + +type VClusterVersion struct { + // TagName is the full tag name + Tag string `json:"tagName,omitempty"` + + // PreRelease determines if the version is marked as prerelease + PreRelease bool `json:"prerelease,omitempty"` +} diff --git a/pkg/apis/ui/v1/zz_generated.deepcopy.go b/pkg/apis/ui/v1/zz_generated.deepcopy.go index 0674acd7..c7cc1bff 100644 --- a/pkg/apis/ui/v1/zz_generated.deepcopy.go +++ b/pkg/apis/ui/v1/zz_generated.deepcopy.go @@ -9,6 +9,65 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CspPolicy) DeepCopyInto(out *CspPolicy) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CspPolicy. +func (in *CspPolicy) DeepCopy() *CspPolicy { + if in == nil { + return nil + } + out := new(CspPolicy) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in Csps) DeepCopyInto(out *Csps) { + { + in := &in + *out = make(Csps, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Csps. +func (in Csps) DeepCopy() Csps { + if in == nil { + return nil + } + out := new(Csps) + in.DeepCopyInto(out) + return *out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalURLs) DeepCopyInto(out *ExternalURLs) { + *out = *in + if in.Allow != nil { + in, out := &in.Allow, &out.Allow + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalURLs. +func (in *ExternalURLs) DeepCopy() *ExternalURLs { + if in == nil { + return nil + } + out := new(ExternalURLs) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NavBarButton) DeepCopyInto(out *NavBarButton) { *out = *in @@ -31,7 +90,7 @@ func (in *UISettings) DeepCopyInto(out *UISettings) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) - out.Status = in.Status + in.Status.DeepCopyInto(&out.Status) return } @@ -71,6 +130,7 @@ func (in *UISettingsConfig) DeepCopyInto(out *UISettingsConfig) { *out = make([]NavBarButton, len(*in)) copy(*out, *in) } + in.ExternalURLs.DeepCopyInto(&out.ExternalURLs) return } @@ -88,6 +148,11 @@ func (in *UISettingsConfig) DeepCopy() *UISettingsConfig { func (in *UISettingsSpec) DeepCopyInto(out *UISettingsSpec) { *out = *in in.UISettingsConfig.DeepCopyInto(&out.UISettingsConfig) + if in.AvailableVClusterVersions != nil { + in, out := &in.AvailableVClusterVersions, &out.AvailableVClusterVersions + *out = make([]VClusterVersion, len(*in)) + copy(*out, *in) + } return } @@ -104,6 +169,13 @@ func (in *UISettingsSpec) DeepCopy() *UISettingsSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UISettingsStatus) DeepCopyInto(out *UISettingsStatus) { *out = *in + if in.Csps != nil { + in, out := &in.Csps, &out.Csps + *out = make(Csps, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } @@ -116,3 +188,19 @@ func (in *UISettingsStatus) DeepCopy() *UISettingsStatus { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VClusterVersion) DeepCopyInto(out *VClusterVersion) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VClusterVersion. +func (in *VClusterVersion) DeepCopy() *VClusterVersion { + if in == nil { + return nil + } + out := new(VClusterVersion) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index f7296d4c..54921a8d 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -49,9 +49,6 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Config", "ConvertVirtualClusterConfig", "DatabaseConnector", - "DevPodEnvironmentTemplate", - "DevPodWorkspacePreset", - "DevPodWorkspaceTemplate", "DirectClusterEndpointToken", "Event", "Feature", @@ -74,6 +71,7 @@ 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/typed/management/v1/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go deleted file mode 100644 index b9bef5e9..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/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 *managementv1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*managementv1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *managementv1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodEnvironmentTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodEnvironmentTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodEnvironmentTemplate, err error) - DevPodEnvironmentTemplateExpansion -} - -// devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList] -} - -// newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates -func newDevPodEnvironmentTemplates(c *ManagementV1Client) *devPodEnvironmentTemplates { - return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList]( - "devpodenvironmenttemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.DevPodEnvironmentTemplate { return &managementv1.DevPodEnvironmentTemplate{} }, - func() *managementv1.DevPodEnvironmentTemplateList { - return &managementv1.DevPodEnvironmentTemplateList{} - }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 9014a035..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/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 *managementv1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *managementv1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceInstance, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceInstanceList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceInstance, err error) - Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *managementv1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceUp, error) - Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *managementv1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceStop, error) - Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevPodWorkspaceInstanceTroubleshoot, error) - Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *managementv1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceCancel, error) - - DevPodWorkspaceInstanceExpansion -} - -// devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList] -} - -// newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances -func newDevPodWorkspaceInstances(c *ManagementV1Client, namespace string) *devPodWorkspaceInstances { - return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList]( - "devpodworkspaceinstances", - c.RESTClient(), - scheme.ParameterCodec, - namespace, - func() *managementv1.DevPodWorkspaceInstance { return &managementv1.DevPodWorkspaceInstance{} }, - func() *managementv1.DevPodWorkspaceInstanceList { return &managementv1.DevPodWorkspaceInstanceList{} }, - ), - } -} - -// Up takes the representation of a devPodWorkspaceInstanceUp and creates it. Returns the server's representation of the devPodWorkspaceInstanceUp, and an error, if there is any. -func (c *devPodWorkspaceInstances) Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *managementv1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceUp, err error) { - result = &managementv1.DevPodWorkspaceInstanceUp{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("up"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceUp). - Do(ctx). - Into(result) - return -} - -// Stop takes the representation of a devPodWorkspaceInstanceStop and creates it. Returns the server's representation of the devPodWorkspaceInstanceStop, and an error, if there is any. -func (c *devPodWorkspaceInstances) Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *managementv1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceStop, err error) { - result = &managementv1.DevPodWorkspaceInstanceStop{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("stop"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceStop). - Do(ctx). - Into(result) - return -} - -// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding managementv1.DevPodWorkspaceInstanceTroubleshoot object, and an error if there is any. -func (c *devPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *managementv1.DevPodWorkspaceInstanceTroubleshoot, err error) { - result = &managementv1.DevPodWorkspaceInstanceTroubleshoot{} - err = c.GetClient().Get(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("troubleshoot"). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// Cancel takes the representation of a devPodWorkspaceInstanceCancel and creates it. Returns the server's representation of the devPodWorkspaceInstanceCancel, and an error, if there is any. -func (c *devPodWorkspaceInstances) Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *managementv1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceCancel, err error) { - result = &managementv1.DevPodWorkspaceInstanceCancel{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("cancel"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceCancel). - Do(ctx). - Into(result) - return -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go deleted file mode 100644 index 2b979314..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspacePresetsGetter has a method to return a DevPodWorkspacePresetInterface. -// A group's client should implement this interface. -type DevPodWorkspacePresetsGetter interface { - DevPodWorkspacePresets() DevPodWorkspacePresetInterface -} - -// DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. -type DevPodWorkspacePresetInterface interface { - Create(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*managementv1.DevPodWorkspacePreset, error) - Update(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspacePreset, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspacePreset, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspacePreset, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspacePresetList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspacePreset, err error) - DevPodWorkspacePresetExpansion -} - -// devPodWorkspacePresets implements DevPodWorkspacePresetInterface -type devPodWorkspacePresets struct { - *gentype.ClientWithList[*managementv1.DevPodWorkspacePreset, *managementv1.DevPodWorkspacePresetList] -} - -// newDevPodWorkspacePresets returns a DevPodWorkspacePresets -func newDevPodWorkspacePresets(c *ManagementV1Client) *devPodWorkspacePresets { - return &devPodWorkspacePresets{ - gentype.NewClientWithList[*managementv1.DevPodWorkspacePreset, *managementv1.DevPodWorkspacePresetList]( - "devpodworkspacepresets", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.DevPodWorkspacePreset { return &managementv1.DevPodWorkspacePreset{} }, - func() *managementv1.DevPodWorkspacePresetList { return &managementv1.DevPodWorkspacePresetList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index cbb87123..00000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/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 *managementv1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceTemplate, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceTemplate, err error) - DevPodWorkspaceTemplateExpansion -} - -// devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList] -} - -// newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates -func newDevPodWorkspaceTemplates(c *ManagementV1Client) *devPodWorkspaceTemplates { - return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList]( - "devpodworkspacetemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.DevPodWorkspaceTemplate { return &managementv1.DevPodWorkspaceTemplate{} }, - func() *managementv1.DevPodWorkspaceTemplateList { return &managementv1.DevPodWorkspaceTemplateList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go deleted file mode 100644 index e8f9020b..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/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" -) - -// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type fakeDevPodEnvironmentTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] - Fake *FakeManagementV1 -} - -func newFakeDevPodEnvironmentTemplates(fake *FakeManagementV1) managementv1.DevPodEnvironmentTemplateInterface { - return &fakeDevPodEnvironmentTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"), - v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate"), - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }, - func(dst, src *v1.DevPodEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodEnvironmentTemplateList) []*v1.DevPodEnvironmentTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodEnvironmentTemplateList, items []*v1.DevPodEnvironmentTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go deleted file mode 100644 index e483763e..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - context "context" - - v1 "github.com/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" - gentype "k8s.io/client-go/gentype" - testing "k8s.io/client-go/testing" -) - -// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type fakeDevPodWorkspaceInstances struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] - Fake *FakeManagementV1 -} - -func newFakeDevPodWorkspaceInstances(fake *FakeManagementV1, namespace string) managementv1.DevPodWorkspaceInstanceInterface { - return &fakeDevPodWorkspaceInstances{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( - fake.Fake, - namespace, - v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance"), - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }, - func(dst, src *v1.DevPodWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceInstanceList) []*v1.DevPodWorkspaceInstance { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceInstanceList, items []*v1.DevPodWorkspaceInstance) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} - -// Up takes the representation of a devPodWorkspaceInstanceUp and creates it. Returns the server's representation of the devPodWorkspaceInstanceUp, and an error, if there is any. -func (c *fakeDevPodWorkspaceInstances) Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *v1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceUp, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceUp{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "up", c.Namespace(), devPodWorkspaceInstanceUp, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceUp), err -} - -// Stop takes the representation of a devPodWorkspaceInstanceStop and creates it. Returns the server's representation of the devPodWorkspaceInstanceStop, and an error, if there is any. -func (c *fakeDevPodWorkspaceInstances) Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *v1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceStop, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceStop{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "stop", c.Namespace(), devPodWorkspaceInstanceStop, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceStop), err -} - -// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstanceTroubleshoot object, and an error if there is any. -func (c *fakeDevPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceTroubleshoot{} - obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "troubleshoot", devPodWorkspaceInstanceName, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceTroubleshoot), err -} - -// Cancel takes the representation of a devPodWorkspaceInstanceCancel and creates it. Returns the server's representation of the devPodWorkspaceInstanceCancel, and an error, if there is any. -func (c *fakeDevPodWorkspaceInstances) Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *v1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceCancel, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceCancel{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "cancel", c.Namespace(), devPodWorkspaceInstanceCancel, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceCancel), err -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go deleted file mode 100644 index 88cfe9b3..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - managementv1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/management/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface -type fakeDevPodWorkspacePresets struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] - Fake *FakeManagementV1 -} - -func newFakeDevPodWorkspacePresets(fake *FakeManagementV1) managementv1.DevPodWorkspacePresetInterface { - return &fakeDevPodWorkspacePresets{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset"), - func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, - func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }, - func(dst, src *v1.DevPodWorkspacePresetList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspacePresetList) []*v1.DevPodWorkspacePreset { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspacePresetList, items []*v1.DevPodWorkspacePreset) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go deleted file mode 100644 index 50ab12ce..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/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" -) - -// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type fakeDevPodWorkspaceTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] - Fake *FakeManagementV1 -} - -func newFakeDevPodWorkspaceTemplates(fake *FakeManagementV1) managementv1.DevPodWorkspaceTemplateInterface { - return &fakeDevPodWorkspaceTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate"), - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }, - func(dst, src *v1.DevPodWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceTemplateList) []*v1.DevPodWorkspaceTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceTemplateList, items []*v1.DevPodWorkspaceTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go index 5eb70229..468d0cd8 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go @@ -52,22 +52,6 @@ func (c *FakeManagementV1) DatabaseConnectors() v1.DatabaseConnectorInterface { return newFakeDatabaseConnectors(c) } -func (c *FakeManagementV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return newFakeDevPodEnvironmentTemplates(c) -} - -func (c *FakeManagementV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return newFakeDevPodWorkspaceInstances(c, namespace) -} - -func (c *FakeManagementV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { - return newFakeDevPodWorkspacePresets(c) -} - -func (c *FakeManagementV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return newFakeDevPodWorkspaceTemplates(c) -} - func (c *FakeManagementV1) DirectClusterEndpointTokens() v1.DirectClusterEndpointTokenInterface { return newFakeDirectClusterEndpointTokens(c) } @@ -100,6 +84,10 @@ 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) } @@ -172,6 +160,10 @@ func (c *FakeManagementV1) TranslateVClusterResourceNames() v1.TranslateVCluster return newFakeTranslateVClusterResourceNames(c) } +func (c *FakeManagementV1) UsageDownloads() v1.UsageDownloadInterface { + return newFakeUsageDownloads(c) +} + func (c *FakeManagementV1) Users() v1.UserInterface { return newFakeUsers(c) } 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_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_virtualclusterinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go index 430fd2f5..b3d4cf66 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go @@ -74,3 +74,27 @@ func (c *fakeVirtualClusterInstances) GetExternalDatabase(ctx context.Context, v } return obj.(*v1.VirtualClusterExternalDatabase), err } + +// 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.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "nodeaccesskey", c.Namespace(), virtualClusterNodeAccessKey, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.VirtualClusterNodeAccessKey), err +} + +// GetStandaloneETCDPeers takes the representation of a virtualClusterStandalone and creates it. Returns the server's representation of the virtualClusterStandalone, and an error, if there is any. +func (c *fakeVirtualClusterInstances) GetStandaloneETCDPeers(ctx context.Context, virtualClusterInstanceName string, virtualClusterStandalone *v1.VirtualClusterStandalone, opts metav1.CreateOptions) (result *v1.VirtualClusterStandalone, err error) { + emptyResult := &v1.VirtualClusterStandalone{} + obj, err := c.Fake. + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), virtualClusterInstanceName, "standalone", c.Namespace(), virtualClusterStandalone, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.VirtualClusterStandalone), err +} diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index 2d309e34..19d51e0f 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -22,14 +22,6 @@ type ConvertVirtualClusterConfigExpansion interface{} type DatabaseConnectorExpansion interface{} -type DevPodEnvironmentTemplateExpansion interface{} - -type DevPodWorkspaceInstanceExpansion interface{} - -type DevPodWorkspacePresetExpansion interface{} - -type DevPodWorkspaceTemplateExpansion interface{} - type DirectClusterEndpointTokenExpansion interface{} type EventExpansion interface{} @@ -46,6 +38,8 @@ type LoftUpgradeExpansion interface{} type NodeClaimExpansion interface{} +type NodeEnvironmentExpansion interface{} + type NodeProviderExpansion interface{} type NodeTypeExpansion interface{} @@ -82,6 +76,8 @@ type TeamExpansion interface{} type TranslateVClusterResourceNameExpansion interface{} +type UsageDownloadExpansion interface{} + type UserExpansion interface{} type VirtualClusterInstanceExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 8e89aa01..6721ccad 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -22,10 +22,6 @@ type ManagementV1Interface interface { ConfigsGetter ConvertVirtualClusterConfigsGetter DatabaseConnectorsGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspacePresetsGetter - DevPodWorkspaceTemplatesGetter DirectClusterEndpointTokensGetter EventsGetter FeaturesGetter @@ -34,6 +30,7 @@ type ManagementV1Interface interface { LicenseTokensGetter LoftUpgradesGetter NodeClaimsGetter + NodeEnvironmentsGetter NodeProvidersGetter NodeTypesGetter OIDCClientsGetter @@ -52,6 +49,7 @@ type ManagementV1Interface interface { TasksGetter TeamsGetter TranslateVClusterResourceNamesGetter + UsageDownloadsGetter UsersGetter VirtualClusterInstancesGetter VirtualClusterSchemasGetter @@ -103,22 +101,6 @@ func (c *ManagementV1Client) DatabaseConnectors() DatabaseConnectorInterface { return newDatabaseConnectors(c) } -func (c *ManagementV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { - return newDevPodEnvironmentTemplates(c) -} - -func (c *ManagementV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface { - return newDevPodWorkspaceInstances(c, namespace) -} - -func (c *ManagementV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { - return newDevPodWorkspacePresets(c) -} - -func (c *ManagementV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { - return newDevPodWorkspaceTemplates(c) -} - func (c *ManagementV1Client) DirectClusterEndpointTokens() DirectClusterEndpointTokenInterface { return newDirectClusterEndpointTokens(c) } @@ -151,6 +133,10 @@ 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) } @@ -223,6 +209,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) } 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/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/virtualclusterinstance.go b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go index d35dce3c..5fabe0cb 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go @@ -32,6 +32,8 @@ type VirtualClusterInstanceInterface interface { 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) VirtualClusterInstanceExpansion } @@ -98,3 +100,33 @@ func (c *virtualClusterInstances) GetExternalDatabase(ctx context.Context, virtu 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 +} 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 82e3344a..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/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 *storagev1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*storagev1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *storagev1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodEnvironmentTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodEnvironmentTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodEnvironmentTemplate, err error) - DevPodEnvironmentTemplateExpansion -} - -// devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList] -} - -// newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates -func newDevPodEnvironmentTemplates(c *StorageV1Client) *devPodEnvironmentTemplates { - return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList]( - "devpodenvironmenttemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.DevPodEnvironmentTemplate { return &storagev1.DevPodEnvironmentTemplate{} }, - func() *storagev1.DevPodEnvironmentTemplateList { return &storagev1.DevPodEnvironmentTemplateList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 84451677..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/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 *storagev1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*storagev1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *storagev1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceInstance, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspaceInstanceList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspaceInstance, err error) - DevPodWorkspaceInstanceExpansion -} - -// devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList] -} - -// newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances -func newDevPodWorkspaceInstances(c *StorageV1Client, namespace string) *devPodWorkspaceInstances { - return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList]( - "devpodworkspaceinstances", - c.RESTClient(), - scheme.ParameterCodec, - namespace, - func() *storagev1.DevPodWorkspaceInstance { return &storagev1.DevPodWorkspaceInstance{} }, - func() *storagev1.DevPodWorkspaceInstanceList { return &storagev1.DevPodWorkspaceInstanceList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go deleted file mode 100644 index 377faf0f..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - scheme "github.com/loft-sh/api/v4/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspacePresetsGetter has a method to return a DevPodWorkspacePresetInterface. -// A group's client should implement this interface. -type DevPodWorkspacePresetsGetter interface { - DevPodWorkspacePresets() DevPodWorkspacePresetInterface -} - -// DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. -type DevPodWorkspacePresetInterface interface { - Create(ctx context.Context, devPodWorkspacePreset *storagev1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*storagev1.DevPodWorkspacePreset, error) - Update(ctx context.Context, devPodWorkspacePreset *storagev1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspacePreset, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspacePreset, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspacePresetList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspacePreset, err error) - DevPodWorkspacePresetExpansion -} - -// devPodWorkspacePresets implements DevPodWorkspacePresetInterface -type devPodWorkspacePresets struct { - *gentype.ClientWithList[*storagev1.DevPodWorkspacePreset, *storagev1.DevPodWorkspacePresetList] -} - -// newDevPodWorkspacePresets returns a DevPodWorkspacePresets -func newDevPodWorkspacePresets(c *StorageV1Client) *devPodWorkspacePresets { - return &devPodWorkspacePresets{ - gentype.NewClientWithList[*storagev1.DevPodWorkspacePreset, *storagev1.DevPodWorkspacePresetList]( - "devpodworkspacepresets", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.DevPodWorkspacePreset { return &storagev1.DevPodWorkspacePreset{} }, - func() *storagev1.DevPodWorkspacePresetList { return &storagev1.DevPodWorkspacePresetList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index a8e0836a..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/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 *storagev1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*storagev1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceTemplate, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspaceTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspaceTemplate, err error) - DevPodWorkspaceTemplateExpansion -} - -// devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList] -} - -// newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates -func newDevPodWorkspaceTemplates(c *StorageV1Client) *devPodWorkspaceTemplates { - return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList]( - "devpodworkspacetemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.DevPodWorkspaceTemplate { return &storagev1.DevPodWorkspaceTemplate{} }, - func() *storagev1.DevPodWorkspaceTemplateList { return &storagev1.DevPodWorkspaceTemplateList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go deleted file mode 100644 index 41728901..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/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" -) - -// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type fakeDevPodEnvironmentTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] - Fake *FakeStorageV1 -} - -func newFakeDevPodEnvironmentTemplates(fake *FakeStorageV1) storagev1.DevPodEnvironmentTemplateInterface { - return &fakeDevPodEnvironmentTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"), - v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate"), - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }, - func(dst, src *v1.DevPodEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodEnvironmentTemplateList) []*v1.DevPodEnvironmentTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodEnvironmentTemplateList, items []*v1.DevPodEnvironmentTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go deleted file mode 100644 index cd6bc8c9..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/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" -) - -// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type fakeDevPodWorkspaceInstances struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] - Fake *FakeStorageV1 -} - -func newFakeDevPodWorkspaceInstances(fake *FakeStorageV1, namespace string) storagev1.DevPodWorkspaceInstanceInterface { - return &fakeDevPodWorkspaceInstances{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( - fake.Fake, - namespace, - v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance"), - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }, - func(dst, src *v1.DevPodWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceInstanceList) []*v1.DevPodWorkspaceInstance { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceInstanceList, items []*v1.DevPodWorkspaceInstance) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go deleted file mode 100644 index 4b58da69..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - storagev1 "github.com/loft-sh/api/v4/pkg/clientset/versioned/typed/storage/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface -type fakeDevPodWorkspacePresets struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] - Fake *FakeStorageV1 -} - -func newFakeDevPodWorkspacePresets(fake *FakeStorageV1) storagev1.DevPodWorkspacePresetInterface { - return &fakeDevPodWorkspacePresets{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset"), - func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, - func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }, - func(dst, src *v1.DevPodWorkspacePresetList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspacePresetList) []*v1.DevPodWorkspacePreset { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspacePresetList, items []*v1.DevPodWorkspacePreset) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go deleted file mode 100644 index 2d81aab0..00000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/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" -) - -// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type fakeDevPodWorkspaceTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] - Fake *FakeStorageV1 -} - -func newFakeDevPodWorkspaceTemplates(fake *FakeStorageV1) storagev1.DevPodWorkspaceTemplateInterface { - return &fakeDevPodWorkspaceTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate"), - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }, - func(dst, src *v1.DevPodWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceTemplateList) []*v1.DevPodWorkspaceTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceTemplateList, items []*v1.DevPodWorkspaceTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_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_storage_client.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go index adfa7c98..bf4bbed4 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go @@ -32,22 +32,6 @@ func (c *FakeStorageV1) ClusterRoleTemplates() v1.ClusterRoleTemplateInterface { return newFakeClusterRoleTemplates(c) } -func (c *FakeStorageV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return newFakeDevPodEnvironmentTemplates(c) -} - -func (c *FakeStorageV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return newFakeDevPodWorkspaceInstances(c, namespace) -} - -func (c *FakeStorageV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { - return newFakeDevPodWorkspacePresets(c) -} - -func (c *FakeStorageV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return newFakeDevPodWorkspaceTemplates(c) -} - func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { return newFakeNetworkPeers(c) } @@ -56,6 +40,10 @@ func (c *FakeStorageV1) NodeClaims(namespace string) v1.NodeClaimInterface { return newFakeNodeClaims(c, namespace) } +func (c *FakeStorageV1) NodeEnvironments(namespace string) v1.NodeEnvironmentInterface { + return newFakeNodeEnvironments(c, namespace) +} + func (c *FakeStorageV1) NodeProviders() v1.NodeProviderInterface { return newFakeNodeProviders(c) } diff --git a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go index 17b6bd7c..0935ba1e 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -12,18 +12,12 @@ type ClusterAccessExpansion interface{} type ClusterRoleTemplateExpansion interface{} -type DevPodEnvironmentTemplateExpansion interface{} - -type DevPodWorkspaceInstanceExpansion interface{} - -type DevPodWorkspacePresetExpansion interface{} - -type DevPodWorkspaceTemplateExpansion interface{} - type NetworkPeerExpansion interface{} type NodeClaimExpansion interface{} +type NodeEnvironmentExpansion interface{} + type NodeProviderExpansion interface{} type NodeTypeExpansion interface{} 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/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index 3592fd71..ac22f17a 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -17,12 +17,9 @@ type StorageV1Interface interface { ClustersGetter ClusterAccessesGetter ClusterRoleTemplatesGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspacePresetsGetter - DevPodWorkspaceTemplatesGetter NetworkPeersGetter NodeClaimsGetter + NodeEnvironmentsGetter NodeProvidersGetter NodeTypesGetter ProjectsGetter @@ -61,22 +58,6 @@ func (c *StorageV1Client) ClusterRoleTemplates() ClusterRoleTemplateInterface { return newClusterRoleTemplates(c) } -func (c *StorageV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { - return newDevPodEnvironmentTemplates(c) -} - -func (c *StorageV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface { - return newDevPodWorkspaceInstances(c, namespace) -} - -func (c *StorageV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { - return newDevPodWorkspacePresets(c) -} - -func (c *StorageV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { - return newDevPodWorkspaceTemplates(c) -} - func (c *StorageV1Client) NetworkPeers() NetworkPeerInterface { return newNetworkPeers(c) } @@ -85,6 +66,10 @@ func (c *StorageV1Client) NodeClaims(namespace string) NodeClaimInterface { return newNodeClaims(c, namespace) } +func (c *StorageV1Client) NodeEnvironments(namespace string) NodeEnvironmentInterface { + return newNodeEnvironments(c, namespace) +} + func (c *StorageV1Client) NodeProviders() NodeProviderInterface { return newNodeProviders(c) } diff --git a/pkg/devpod/cloneoptions.go b/pkg/devpod/cloneoptions.go deleted file mode 100644 index 078aa3c8..00000000 --- a/pkg/devpod/cloneoptions.go +++ /dev/null @@ -1,24 +0,0 @@ -package devpod - -type CloneOptions struct { - // Repository is the repository to clone - Repository string `json:"repository,omitempty"` - - // Branch is the branch to use - Branch string `json:"branch,omitempty"` - - // Commit is the commit SHA to checkout - Commit string `json:"commit,omitempty"` - - // PRReference is the pull request reference to checkout - PRReference string `json:"prReference,omitempty"` - - // SubPath is the subpath in the repo to use - SubPath string `json:"subPath,omitempty"` - - // CredentialsHelper is the credentials helper to use for the clone - CredentialsHelper string `json:"credentialsHelper,omitempty"` - - // ExtraEnv is the extra environment variables to use for the clone - ExtraEnv []string `json:"extraEnv,omitempty"` -} diff --git a/pkg/devpod/platformoptions.go b/pkg/devpod/platformoptions.go deleted file mode 100644 index 56becf13..00000000 --- a/pkg/devpod/platformoptions.go +++ /dev/null @@ -1,82 +0,0 @@ -package devpod - -import ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" -) - -type PlatformOptions struct { - // Enabled is true if platform mode is enabled. Be careful with this option as this is only enabled - // when executed on the platform side and not if a platform workspace is used locally. - Enabled bool `json:"enabled,omitempty"` - - // DevPodWorkspaceInstance information - InstanceName string `json:"instanceName,omitempty"` - InstanceProject string `json:"instanceProject,omitempty"` - InstanceNamespace string `json:"instanceNamespace,omitempty"` - - // connection options - // AccessKey is used by the workspace daemon to authenticate itself - AccessKey string `json:"accessKey,omitempty"` - // UserAccessKey can be used as the workspace owner - UserAccessKey string `json:"userAccessKey,omitempty"` - WorkspaceHost string `json:"workspaceHost,omitempty"` - PlatformHost string `json:"platformHost,omitempty"` - RunnerSocket string `json:"runnerSocket,omitempty"` - - // environment template options - EnvironmentTemplate string `json:"environmentTemplate,omitempty"` - EnvironmentTemplateVersion string `json:"environmentTemplateVersion,omitempty"` - GitCloneStrategy storagev1.GitCloneStrategy `json:"gitCloneStrategy,omitempty"` - GitSkipLFS bool `json:"gitSkipLFS,omitempty"` - - // Kubernetes holds configuration for workspaces that need information about their kubernetes environment, i.e. - // the ones running in virtual clusters or spaces - Kubernetes *Kubernetes `json:"kubernetes,omitempty"` - - // user credentials are the credentials for the user - UserCredentials PlatformWorkspaceCredentials `json:"userCredentials,omitempty"` - ProjectCredentials PlatformWorkspaceCredentials `json:"projectCredentials,omitempty"` - - // Remote builds - Build *PlatformBuildOptions `json:"build,omitempty"` -} - -type PlatformWorkspaceCredentials struct { - GitUser string `json:"gitUser,omitempty"` - GitEmail string `json:"gitEmail,omitempty"` - GitHttp []PlatformGitHttpCredentials `json:"gitHttp,omitempty"` - GitSsh []PlatformGitSshCredentials `json:"gitSsh,omitempty"` -} - -type PlatformGitHttpCredentials struct { - Host string `json:"host,omitempty"` - User string `json:"user,omitempty"` - Password string `json:"password,omitempty"` - Path string `json:"path,omitempty"` -} - -type PlatformGitSshCredentials struct { - Key string `json:"key,omitempty"` -} - -type PlatformDockerCredentials struct { - Host string `json:"host,omitempty"` - User string `json:"user,omitempty"` - Password string `json:"password,omitempty"` -} - -type PlatformBuildOptions struct { - Repository string `json:"repository,omitempty"` - RemoteAddress string `json:"remoteAddress,omitempty"` - - // mTLS - CertCA string `json:"certCa,omitempty"` - CertKey string `json:"certKey,omitempty"` - Cert string `json:"cert,omitempty"` -} - -type Kubernetes struct { - SpaceName string `json:"spaceName,omitempty"` - VirtualClusterName string `json:"virtualClusterName,omitempty"` - Namespace string `json:"namespace,omitempty"` -} diff --git a/pkg/devpod/runner.pb.go b/pkg/devpod/runner.pb.go deleted file mode 100644 index 51e2a1b7..00000000 --- a/pkg/devpod/runner.pb.go +++ /dev/null @@ -1,214 +0,0 @@ -// protoc -I . runner.proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v5.29.1 -// source: runner.proto - -package devpod - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CloneRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TargetPath string `protobuf:"bytes,1,opt,name=targetPath,proto3" json:"targetPath,omitempty"` - Options string `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` -} - -func (x *CloneRequest) Reset() { - *x = CloneRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_runner_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloneRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloneRequest) ProtoMessage() {} - -func (x *CloneRequest) ProtoReflect() protoreflect.Message { - mi := &file_runner_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloneRequest.ProtoReflect.Descriptor instead. -func (*CloneRequest) Descriptor() ([]byte, []int) { - return file_runner_proto_rawDescGZIP(), []int{0} -} - -func (x *CloneRequest) GetTargetPath() string { - if x != nil { - return x.TargetPath - } - return "" -} - -func (x *CloneRequest) GetOptions() string { - if x != nil { - return x.Options - } - return "" -} - -type CloneResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloneResponse) Reset() { - *x = CloneResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_runner_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloneResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloneResponse) ProtoMessage() {} - -func (x *CloneResponse) ProtoReflect() protoreflect.Message { - mi := &file_runner_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloneResponse.ProtoReflect.Descriptor instead. -func (*CloneResponse) Descriptor() ([]byte, []int) { - return file_runner_proto_rawDescGZIP(), []int{1} -} - -var File_runner_proto protoreflect.FileDescriptor - -var file_runner_proto_rawDesc = []byte{ - 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, - 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x22, 0x48, 0x0a, 0x0c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x50, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x32, 0x40, 0x0a, 0x06, 0x52, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x05, 0x43, - 0x6c, 0x6f, 0x6e, 0x65, 0x12, 0x14, 0x2e, 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x6c, - 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x64, 0x65, 0x76, - 0x70, 0x6f, 0x64, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6c, 0x6f, 0x66, 0x74, 0x2d, 0x73, 0x68, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x34, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x65, 0x76, 0x70, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_runner_proto_rawDescOnce sync.Once - file_runner_proto_rawDescData = file_runner_proto_rawDesc -) - -func file_runner_proto_rawDescGZIP() []byte { - file_runner_proto_rawDescOnce.Do(func() { - file_runner_proto_rawDescData = protoimpl.X.CompressGZIP(file_runner_proto_rawDescData) - }) - return file_runner_proto_rawDescData -} - -var file_runner_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_runner_proto_goTypes = []interface{}{ - (*CloneRequest)(nil), // 0: devpod.CloneRequest - (*CloneResponse)(nil), // 1: devpod.CloneResponse -} -var file_runner_proto_depIdxs = []int32{ - 0, // 0: devpod.Runner.Clone:input_type -> devpod.CloneRequest - 1, // 1: devpod.Runner.Clone:output_type -> devpod.CloneResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_runner_proto_init() } -func file_runner_proto_init() { - if File_runner_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_runner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloneRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_runner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloneResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_runner_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_runner_proto_goTypes, - DependencyIndexes: file_runner_proto_depIdxs, - MessageInfos: file_runner_proto_msgTypes, - }.Build() - File_runner_proto = out.File - file_runner_proto_rawDesc = nil - file_runner_proto_goTypes = nil - file_runner_proto_depIdxs = nil -} diff --git a/pkg/devpod/runner.proto b/pkg/devpod/runner.proto deleted file mode 100644 index 30b65f44..00000000 --- a/pkg/devpod/runner.proto +++ /dev/null @@ -1,17 +0,0 @@ -// protoc -I . runner.proto --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative -syntax = "proto3"; - -option go_package = "github.com/loft-sh/api/v4/pkg/devpod"; - -package devpod; - -service Runner { - rpc Clone(CloneRequest) returns (CloneResponse) {} -} - -message CloneRequest { - string targetPath = 1; - string options = 2; -} - -message CloneResponse {} diff --git a/pkg/devpod/runner_grpc.pb.go b/pkg/devpod/runner_grpc.pb.go deleted file mode 100644 index dac7f0d8..00000000 --- a/pkg/devpod/runner_grpc.pb.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v5.29.1 -// source: runner.proto - -package devpod - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// RunnerClient is the client API for Runner service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type RunnerClient interface { - Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) -} - -type runnerClient struct { - cc grpc.ClientConnInterface -} - -func NewRunnerClient(cc grpc.ClientConnInterface) RunnerClient { - return &runnerClient{cc} -} - -func (c *runnerClient) Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) { - out := new(CloneResponse) - err := c.cc.Invoke(ctx, "/devpod.Runner/Clone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RunnerServer is the server API for Runner service. -// All implementations must embed UnimplementedRunnerServer -// for forward compatibility -type RunnerServer interface { - Clone(context.Context, *CloneRequest) (*CloneResponse, error) - mustEmbedUnimplementedRunnerServer() -} - -// UnimplementedRunnerServer must be embedded to have forward compatible implementations. -type UnimplementedRunnerServer struct { -} - -func (UnimplementedRunnerServer) Clone(context.Context, *CloneRequest) (*CloneResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Clone not implemented") -} -func (UnimplementedRunnerServer) mustEmbedUnimplementedRunnerServer() {} - -// UnsafeRunnerServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to RunnerServer will -// result in compilation errors. -type UnsafeRunnerServer interface { - mustEmbedUnimplementedRunnerServer() -} - -func RegisterRunnerServer(s grpc.ServiceRegistrar, srv RunnerServer) { - s.RegisterService(&Runner_ServiceDesc, srv) -} - -func _Runner_Clone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RunnerServer).Clone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/devpod.Runner/Clone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RunnerServer).Clone(ctx, req.(*CloneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Runner_ServiceDesc is the grpc.ServiceDesc for Runner service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Runner_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "devpod.Runner", - HandlerType: (*RunnerServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Clone", - Handler: _Runner_Clone_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "runner.proto", -} diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 977fa759..78870f8b 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -59,14 +59,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().ConvertVirtualClusterConfigs().Informer()}, nil case v1.SchemeGroupVersion.WithResource("databaseconnectors"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DatabaseConnectors().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodEnvironmentTemplates().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceInstances().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspacePresets().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceTemplates().Informer()}, nil case v1.SchemeGroupVersion.WithResource("directclusterendpointtokens"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DirectClusterEndpointTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("events"): @@ -83,6 +75,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource 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"): @@ -119,6 +113,8 @@ 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"): @@ -139,18 +135,12 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().ClusterAccesses().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("clusterroletemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().ClusterRoleTemplates().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodEnvironmentTemplates().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceInstances().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspacepresets"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspacePresets().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceTemplates().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("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"): diff --git a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go deleted file mode 100644 index c8ef75ca..00000000 --- a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/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" -) - -// DevPodEnvironmentTemplateInformer provides access to a shared informer and lister for -// DevPodEnvironmentTemplates. -type DevPodEnvironmentTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodEnvironmentTemplateLister -} - -type devPodEnvironmentTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodEnvironmentTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) -} - -func (f *devPodEnvironmentTemplateInformer) Lister() managementv1.DevPodEnvironmentTemplateLister { - return managementv1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 9272771c..00000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/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" -) - -// DevPodWorkspaceInstanceInformer provides access to a shared informer and lister for -// DevPodWorkspaceInstances. -type DevPodWorkspaceInstanceInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodWorkspaceInstanceLister -} - -type devPodWorkspaceInstanceInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodWorkspaceInstance{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceInstance{}, f.defaultInformer) -} - -func (f *devPodWorkspaceInstanceInformer) Lister() managementv1.DevPodWorkspaceInstanceLister { - return managementv1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go deleted file mode 100644 index 3295fe46..00000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" - internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetInformer provides access to a shared informer and lister for -// DevPodWorkspacePresets. -type DevPodWorkspacePresetInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodWorkspacePresetLister -} - -type devPodWorkspacePresetInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodWorkspacePreset{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodWorkspacePreset{}, f.defaultInformer) -} - -func (f *devPodWorkspacePresetInformer) Lister() managementv1.DevPodWorkspacePresetLister { - return managementv1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index 1a4eaa39..00000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/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" -) - -// DevPodWorkspaceTemplateInformer provides access to a shared informer and lister for -// DevPodWorkspaceTemplates. -type DevPodWorkspaceTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodWorkspaceTemplateLister -} - -type devPodWorkspaceTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodWorkspaceTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) -} - -func (f *devPodWorkspaceTemplateInformer) Lister() managementv1.DevPodWorkspaceTemplateLister { - return managementv1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index 75fbff39..cafca605 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -28,14 +28,6 @@ type Interface interface { ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInformer // DatabaseConnectors returns a DatabaseConnectorInformer. DatabaseConnectors() DatabaseConnectorInformer - // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer - // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. - DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer - // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. - DevPodWorkspacePresets() DevPodWorkspacePresetInformer - // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. DirectClusterEndpointTokens() DirectClusterEndpointTokenInformer // Events returns a EventInformer. @@ -52,6 +44,8 @@ type Interface interface { LoftUpgrades() LoftUpgradeInformer // NodeClaims returns a NodeClaimInformer. NodeClaims() NodeClaimInformer + // NodeEnvironments returns a NodeEnvironmentInformer. + NodeEnvironments() NodeEnvironmentInformer // NodeProviders returns a NodeProviderInformer. NodeProviders() NodeProviderInformer // NodeTypes returns a NodeTypeInformer. @@ -88,6 +82,8 @@ 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. @@ -159,26 +155,6 @@ func (v *version) DatabaseConnectors() DatabaseConnectorInformer { return &databaseConnectorInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. -func (v *version) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer { - return &devPodEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. -func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { - return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. -func (v *version) DevPodWorkspacePresets() DevPodWorkspacePresetInformer { - return &devPodWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. -func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { - return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. func (v *version) DirectClusterEndpointTokens() DirectClusterEndpointTokenInformer { return &directClusterEndpointTokenInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -219,6 +195,11 @@ 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} @@ -309,6 +290,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} diff --git a/pkg/informers/externalversions/management/v1/nodeenvironment.go b/pkg/informers/externalversions/management/v1/nodeenvironment.go new file mode 100644 index 00000000..0c36553e --- /dev/null +++ b/pkg/informers/externalversions/management/v1/nodeenvironment.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeEnvironmentInformer provides access to a shared informer and lister for +// NodeEnvironments. +type NodeEnvironmentInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.NodeEnvironmentLister +} + +type nodeEnvironmentInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeEnvironmentInformer constructs a new informer for NodeEnvironment type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeEnvironmentInformer constructs a new informer for NodeEnvironment type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().NodeEnvironments(namespace).Watch(ctx, options) + }, + }, + &apismanagementv1.NodeEnvironment{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeEnvironmentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeEnvironmentInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.NodeEnvironment{}, f.defaultInformer) +} + +func (f *nodeEnvironmentInformer) Lister() managementv1.NodeEnvironmentLister { + return managementv1.NewNodeEnvironmentLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/usagedownload.go b/pkg/informers/externalversions/management/v1/usagedownload.go new file mode 100644 index 00000000..7dae09a3 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/usagedownload.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/loft-sh/api/v4/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// UsageDownloadInformer provides access to a shared informer and lister for +// UsageDownloads. +type UsageDownloadInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.UsageDownloadLister +} + +type usageDownloadInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewUsageDownloadInformer constructs a new informer for UsageDownload type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewUsageDownloadInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredUsageDownloadInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredUsageDownloadInformer constructs a new informer for UsageDownload type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredUsageDownloadInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().UsageDownloads().Watch(ctx, options) + }, + }, + &apismanagementv1.UsageDownload{}, + resyncPeriod, + indexers, + ) +} + +func (f *usageDownloadInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredUsageDownloadInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *usageDownloadInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.UsageDownload{}, f.defaultInformer) +} + +func (f *usageDownloadInformer) Lister() managementv1.UsageDownloadLister { + return managementv1.NewUsageDownloadLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go deleted file mode 100644 index ee51c870..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/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" -) - -// DevPodEnvironmentTemplateInformer provides access to a shared informer and lister for -// DevPodEnvironmentTemplates. -type DevPodEnvironmentTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodEnvironmentTemplateLister -} - -type devPodEnvironmentTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodEnvironmentTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodEnvironmentTemplate{}, f.defaultInformer) -} - -func (f *devPodEnvironmentTemplateInformer) Lister() storagev1.DevPodEnvironmentTemplateLister { - return storagev1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 03fd1e2a..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/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" -) - -// DevPodWorkspaceInstanceInformer provides access to a shared informer and lister for -// DevPodWorkspaceInstances. -type DevPodWorkspaceInstanceInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodWorkspaceInstanceLister -} - -type devPodWorkspaceInstanceInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodWorkspaceInstance{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceInstance{}, f.defaultInformer) -} - -func (f *devPodWorkspaceInstanceInformer) Lister() storagev1.DevPodWorkspaceInstanceLister { - return storagev1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go deleted file mode 100644 index d8ee4e6f..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" - internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" - storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetInformer provides access to a shared informer and lister for -// DevPodWorkspacePresets. -type DevPodWorkspacePresetInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodWorkspacePresetLister -} - -type devPodWorkspacePresetInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodWorkspacePreset{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodWorkspacePreset{}, f.defaultInformer) -} - -func (f *devPodWorkspacePresetInformer) Lister() storagev1.DevPodWorkspacePresetLister { - return storagev1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index 5884e4df..00000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/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" -) - -// DevPodWorkspaceTemplateInformer provides access to a shared informer and lister for -// DevPodWorkspaceTemplates. -type DevPodWorkspaceTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodWorkspaceTemplateLister -} - -type devPodWorkspaceTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodWorkspaceTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceTemplate{}, f.defaultInformer) -} - -func (f *devPodWorkspaceTemplateInformer) Lister() storagev1.DevPodWorkspaceTemplateLister { - return storagev1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index a93f8c59..2c6dfba0 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -18,18 +18,12 @@ type Interface interface { ClusterAccesses() ClusterAccessInformer // ClusterRoleTemplates returns a ClusterRoleTemplateInformer. ClusterRoleTemplates() ClusterRoleTemplateInformer - // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer - // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. - DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer - // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. - DevPodWorkspacePresets() DevPodWorkspacePresetInformer - // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer // 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. @@ -90,26 +84,6 @@ 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} -} - -// DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. -func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { - return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. -func (v *version) DevPodWorkspacePresets() DevPodWorkspacePresetInformer { - return &devPodWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - -// DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. -func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { - return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // NetworkPeers returns a NetworkPeerInformer. func (v *version) NetworkPeers() NetworkPeerInformer { return &networkPeerInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} @@ -120,6 +94,11 @@ 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} diff --git a/pkg/informers/externalversions/storage/v1/nodeenvironment.go b/pkg/informers/externalversions/storage/v1/nodeenvironment.go new file mode 100644 index 00000000..2686ff47 --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/nodeenvironment.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" + versioned "github.com/loft-sh/api/v4/pkg/clientset/versioned" + internalinterfaces "github.com/loft-sh/api/v4/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/loft-sh/api/v4/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NodeEnvironmentInformer provides access to a shared informer and lister for +// NodeEnvironments. +type NodeEnvironmentInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.NodeEnvironmentLister +} + +type nodeEnvironmentInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNodeEnvironmentInformer constructs a new informer for NodeEnvironment type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNodeEnvironmentInformer constructs a new informer for NodeEnvironment type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().NodeEnvironments(namespace).Watch(ctx, options) + }, + }, + &apisstoragev1.NodeEnvironment{}, + resyncPeriod, + indexers, + ) +} + +func (f *nodeEnvironmentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNodeEnvironmentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nodeEnvironmentInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.NodeEnvironment{}, f.defaultInformer) +} + +func (f *nodeEnvironmentInformer) Lister() storagev1.NodeEnvironmentLister { + return storagev1.NewNodeEnvironmentLister(f.Informer().GetIndexer()) +} diff --git a/pkg/listers/management/v1/devpodenvironmenttemplate.go b/pkg/listers/management/v1/devpodenvironmenttemplate.go deleted file mode 100644 index 84622386..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 ( - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. -// All objects returned here must be treated as read-only. -type DevPodEnvironmentTemplateLister interface { - // List lists all DevPodEnvironmentTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodEnvironmentTemplate, err error) - // Get retrieves the DevPodEnvironmentTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodEnvironmentTemplate, error) - DevPodEnvironmentTemplateListerExpansion -} - -// devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. -type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*managementv1.DevPodEnvironmentTemplate] -} - -// NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. -func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*managementv1.DevPodEnvironmentTemplate](indexer, managementv1.Resource("devpodenvironmenttemplate"))} -} diff --git a/pkg/listers/management/v1/devpodworkspaceinstance.go b/pkg/listers/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 14b7b677..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 ( - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) - // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister - DevPodWorkspaceInstanceListerExpansion -} - -// devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. -type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] -} - -// NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. -func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*managementv1.DevPodWorkspaceInstance](indexer, managementv1.Resource("devpodworkspaceinstance"))} -} - -// DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. -func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister { - return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} -} - -// DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceNamespaceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) - // Get retrieves the DevPodWorkspaceInstance from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodWorkspaceInstance, error) - DevPodWorkspaceInstanceNamespaceListerExpansion -} - -// devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister -// interface. -type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] -} diff --git a/pkg/listers/management/v1/devpodworkspacepreset.go b/pkg/listers/management/v1/devpodworkspacepreset.go deleted file mode 100644 index 8c17b627..00000000 --- a/pkg/listers/management/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. -// All objects returned here must be treated as read-only. -type DevPodWorkspacePresetLister interface { - // List lists all DevPodWorkspacePresets in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspacePreset, err error) - // Get retrieves the DevPodWorkspacePreset from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodWorkspacePreset, error) - DevPodWorkspacePresetListerExpansion -} - -// devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. -type devPodWorkspacePresetLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspacePreset] -} - -// NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. -func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { - return &devPodWorkspacePresetLister{listers.New[*managementv1.DevPodWorkspacePreset](indexer, managementv1.Resource("devpodworkspacepreset"))} -} diff --git a/pkg/listers/management/v1/devpodworkspacetemplate.go b/pkg/listers/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index 33862412..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 ( - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceTemplateLister interface { - // List lists all DevPodWorkspaceTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceTemplate, err error) - // Get retrieves the DevPodWorkspaceTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodWorkspaceTemplate, error) - DevPodWorkspaceTemplateListerExpansion -} - -// devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. -type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspaceTemplate] -} - -// NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. -func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*managementv1.DevPodWorkspaceTemplate](indexer, managementv1.Resource("devpodworkspacetemplate"))} -} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index dbf124bc..3c206744 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -42,26 +42,6 @@ type ConvertVirtualClusterConfigListerExpansion interface{} // DatabaseConnectorLister. type DatabaseConnectorListerExpansion 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{} - -// DevPodWorkspacePresetListerExpansion allows custom methods to be added to -// DevPodWorkspacePresetLister. -type DevPodWorkspacePresetListerExpansion interface{} - -// DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to -// DevPodWorkspaceTemplateLister. -type DevPodWorkspaceTemplateListerExpansion interface{} - // DirectClusterEndpointTokenListerExpansion allows custom methods to be added to // DirectClusterEndpointTokenLister. type DirectClusterEndpointTokenListerExpansion interface{} @@ -98,6 +78,14 @@ type NodeClaimListerExpansion interface{} // 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{} @@ -182,6 +170,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{} 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/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/storage/v1/devpodenvironmenttemplate.go b/pkg/listers/storage/v1/devpodenvironmenttemplate.go deleted file mode 100644 index d26162b5..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 ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. -// All objects returned here must be treated as read-only. -type DevPodEnvironmentTemplateLister interface { - // List lists all DevPodEnvironmentTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodEnvironmentTemplate, err error) - // Get retrieves the DevPodEnvironmentTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodEnvironmentTemplate, error) - DevPodEnvironmentTemplateListerExpansion -} - -// devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. -type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*storagev1.DevPodEnvironmentTemplate] -} - -// NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. -func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*storagev1.DevPodEnvironmentTemplate](indexer, storagev1.Resource("devpodenvironmenttemplate"))} -} diff --git a/pkg/listers/storage/v1/devpodworkspaceinstance.go b/pkg/listers/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 8bee50d2..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 ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) - // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister - DevPodWorkspaceInstanceListerExpansion -} - -// devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. -type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] -} - -// NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. -func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*storagev1.DevPodWorkspaceInstance](indexer, storagev1.Resource("devpodworkspaceinstance"))} -} - -// DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. -func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister { - return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} -} - -// DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceNamespaceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) - // Get retrieves the DevPodWorkspaceInstance from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodWorkspaceInstance, error) - DevPodWorkspaceInstanceNamespaceListerExpansion -} - -// devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister -// interface. -type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] -} diff --git a/pkg/listers/storage/v1/devpodworkspacepreset.go b/pkg/listers/storage/v1/devpodworkspacepreset.go deleted file mode 100644 index fd969161..00000000 --- a/pkg/listers/storage/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. -// All objects returned here must be treated as read-only. -type DevPodWorkspacePresetLister interface { - // List lists all DevPodWorkspacePresets in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspacePreset, err error) - // Get retrieves the DevPodWorkspacePreset from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodWorkspacePreset, error) - DevPodWorkspacePresetListerExpansion -} - -// devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. -type devPodWorkspacePresetLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspacePreset] -} - -// NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. -func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { - return &devPodWorkspacePresetLister{listers.New[*storagev1.DevPodWorkspacePreset](indexer, storagev1.Resource("devpodworkspacepreset"))} -} diff --git a/pkg/listers/storage/v1/devpodworkspacetemplate.go b/pkg/listers/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index 4b64dc0d..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 ( - storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceTemplateLister interface { - // List lists all DevPodWorkspaceTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceTemplate, err error) - // Get retrieves the DevPodWorkspaceTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodWorkspaceTemplate, error) - DevPodWorkspaceTemplateListerExpansion -} - -// devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. -type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspaceTemplate] -} - -// NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. -func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*storagev1.DevPodWorkspaceTemplate](indexer, storagev1.Resource("devpodworkspacetemplate"))} -} diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index 966faa61..b67b5182 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -22,26 +22,6 @@ type ClusterAccessListerExpansion interface{} // ClusterRoleTemplateLister. type ClusterRoleTemplateListerExpansion 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{} - -// DevPodWorkspacePresetListerExpansion allows custom methods to be added to -// DevPodWorkspacePresetLister. -type DevPodWorkspacePresetListerExpansion interface{} - -// DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to -// DevPodWorkspaceTemplateLister. -type DevPodWorkspaceTemplateListerExpansion interface{} - // NetworkPeerListerExpansion allows custom methods to be added to // NetworkPeerLister. type NetworkPeerListerExpansion interface{} @@ -54,6 +34,14 @@ type NodeClaimListerExpansion interface{} // 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{} 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/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 289b4deb..02434f45 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -16,1435 +16,1424 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.Analytics": schema_loft_sh_admin_apis_pkg_licenseapi_Analytics(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Announcement": schema_loft_sh_admin_apis_pkg_licenseapi_Announcement(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.BlockRequest": schema_loft_sh_admin_apis_pkg_licenseapi_BlockRequest(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Button": schema_loft_sh_admin_apis_pkg_licenseapi_Button(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Feature": schema_loft_sh_admin_apis_pkg_licenseapi_Feature(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestInput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput": schema_loft_sh_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenClaims": schema_loft_sh_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Invoice": schema_loft_sh_admin_apis_pkg_licenseapi_Invoice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.License": schema_loft_sh_admin_apis_pkg_licenseapi_License(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoute": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.LicenseAPIRoutes": schema_loft_sh_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Limit": schema_loft_sh_admin_apis_pkg_licenseapi_Limit(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Module": schema_loft_sh_admin_apis_pkg_licenseapi_Module(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.OfflineLicenseKeyClaims": schema_loft_sh_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Plan": schema_loft_sh_admin_apis_pkg_licenseapi_Plan(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanExpiration": schema_loft_sh_admin_apis_pkg_licenseapi_PlanExpiration(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPeriod": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPeriod(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PlanPrice": schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), - "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole": schema_pkg_apis_management_v1_ClusterAccessRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings": schema_pkg_apis_management_v1_CostControlGPUSettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector": schema_pkg_apis_management_v1_DatabaseConnector(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorList": schema_pkg_apis_management_v1_DatabaseConnectorList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec": schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus": schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim": schema_pkg_apis_management_v1_NodeClaim(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimList": schema_pkg_apis_management_v1_NodeClaimList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec": schema_pkg_apis_management_v1_NodeClaimSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus": schema_pkg_apis_management_v1_NodeClaimStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider": schema_pkg_apis_management_v1_NodeProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderList": schema_pkg_apis_management_v1_NodeProviderList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec": schema_pkg_apis_management_v1_NodeProviderSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus": schema_pkg_apis_management_v1_NodeProviderStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType": schema_pkg_apis_management_v1_NodeType(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeList": schema_pkg_apis_management_v1_NodeTypeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec": schema_pkg_apis_management_v1_NodeTypeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus": schema_pkg_apis_management_v1_NodeTypeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName": schema_pkg_apis_management_v1_ObjectName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission": schema_pkg_apis_management_v1_ObjectPermission(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership": schema_pkg_apis_management_v1_ProjectMembership(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole": schema_pkg_apis_management_v1_ProjectRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions": schema_pkg_apis_management_v1_TeamObjectPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissionsList": schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions": schema_pkg_apis_management_v1_TeamPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissionsList": schema_pkg_apis_management_v1_TeamPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName": schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameList": schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec": schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus": schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions": schema_pkg_apis_management_v1_UserObjectPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissionsList": schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec": schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus": schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterList": schema_pkg_apis_storage_v1_ClusterList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef": schema_pkg_apis_storage_v1_ClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef": schema_pkg_apis_storage_v1_ClusterRoleRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateList": schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus": schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterSpec": schema_pkg_apis_storage_v1_ClusterSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterStatus": schema_pkg_apis_storage_v1_ClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding": schema_pkg_apis_storage_v1_CredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandDeleteOptions": schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStatusOptions": schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandStopOptions": schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodCommandUpOptions": schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer": schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance": schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceContainerResource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements": schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef": schema_pkg_apis_storage_v1_NamespacedRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim": schema_pkg_apis_storage_v1_NodeClaim(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimList": schema_pkg_apis_storage_v1_NodeClaimList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec": schema_pkg_apis_storage_v1_NodeClaimSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus": schema_pkg_apis_storage_v1_NodeClaimStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider": schema_pkg_apis_storage_v1_NodeProvider(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM": schema_pkg_apis_storage_v1_NodeProviderBCM(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt": schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderList": schema_pkg_apis_storage_v1_NodeProviderList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods": schema_pkg_apis_storage_v1_NodeProviderPods(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec": schema_pkg_apis_storage_v1_NodeProviderSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus": schema_pkg_apis_storage_v1_NodeProviderStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType": schema_pkg_apis_storage_v1_NodeType(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity": schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeList": schema_pkg_apis_storage_v1_NodeTypeList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead": schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec": schema_pkg_apis_storage_v1_NodeTypeSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus": schema_pkg_apis_storage_v1_NodeTypeStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity": schema_pkg_apis_storage_v1_SSOIdentity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), - "k8s.io/api/admissionregistration/v1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1.MatchCondition": schema_k8sio_api_admissionregistration_v1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1.MatchResources": schema_k8sio_api_admissionregistration_v1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ParamKind": schema_k8sio_api_admissionregistration_v1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1.ParamRef": schema_k8sio_api_admissionregistration_v1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1.Rule": schema_k8sio_api_admissionregistration_v1_Rule(ref), - "k8s.io/api/admissionregistration/v1.RuleWithOperations": schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1.ServiceReference": schema_k8sio_api_admissionregistration_v1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1.TypeChecking": schema_k8sio_api_admissionregistration_v1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1.Validation": schema_k8sio_api_admissionregistration_v1_Validation(ref), - "k8s.io/api/admissionregistration/v1.Variable": schema_k8sio_api_admissionregistration_v1_Variable(ref), - "k8s.io/api/admissionregistration/v1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref), - "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), - "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), - "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), - "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), - "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), - "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), - "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), - "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), - "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), - "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), - "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), - "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), - "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), - "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), - "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), - "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), - "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), - "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), - "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), - "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), - "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), - "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), - "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), - "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), - "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), - "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), - "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), - "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), - "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), - "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), - "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), - "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), - "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), - "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), - "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), - "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), - "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), - "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), - "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), - "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), - "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), - "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), - "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), - "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), - "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), - "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), - "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), - "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), - "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), - "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), - "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), - "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), - "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), - "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), - "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), - "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), - "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), - "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), - "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), - "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), - "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), - "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), - "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), - "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), - "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), - "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), - "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), - "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), - "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), - "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), - "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), - "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), - "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), - "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), - "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), - "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), - "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), - "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), - "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), - "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), - "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), - "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), - "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), - "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), - "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), - "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), - "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), - "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), - "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), - "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), - "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), - "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), - "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), - "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), - "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), - "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), - "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), - "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), - "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), - "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), - "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), - "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), - "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), - "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), - "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), - "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), - "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), - "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), - "k8s.io/api/certificates/v1beta1.ClusterTrustBundle": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref), - "k8s.io/api/certificates/v1beta1.ClusterTrustBundleList": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref), - "k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref), - "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), - "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), - "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), - "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), - "k8s.io/api/coordination/v1beta1.LeaseCandidate": schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref), - "k8s.io/api/coordination/v1beta1.LeaseCandidateList": schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref), - "k8s.io/api/coordination/v1beta1.LeaseCandidateSpec": schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref), - "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), - "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), - "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), - "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), - "k8s.io/api/core/v1.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(ref), - "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), - "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), - "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), - "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), - "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), - "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), - "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), - "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), - "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), - "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), - "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), - "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), - "k8s.io/api/core/v1.ClusterTrustBundleProjection": schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), - "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), - "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), - "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), - "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), - "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), - "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), - "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), - "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), - "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), - "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), - "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), - "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), - "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), - "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), - "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), - "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), - "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), - "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), - "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), - "k8s.io/api/core/v1.ContainerUser": schema_k8sio_api_core_v1_ContainerUser(ref), - "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), - "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), - "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), - "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), - "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), - "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), - "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), - "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), - "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), - "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), - "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), - "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), - "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), - "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), - "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), - "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), - "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), - "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), - "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), - "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), - "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), - "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), - "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), - "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), - "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), - "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), - "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), - "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), - "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), - "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), - "k8s.io/api/core/v1.HostIP": schema_k8sio_api_core_v1_HostIP(ref), - "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), - "k8s.io/api/core/v1.ImageVolumeSource": schema_k8sio_api_core_v1_ImageVolumeSource(ref), - "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), - "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), - "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), - "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), - "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), - "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), - "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), - "k8s.io/api/core/v1.LinuxContainerUser": schema_k8sio_api_core_v1_LinuxContainerUser(ref), - "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), - "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), - "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), - "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), - "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), - "k8s.io/api/core/v1.ModifyVolumeStatus": schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), - "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), - "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), - "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), - "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), - "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), - "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), - "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), - "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), - "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), - "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), - "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), - "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), - "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), - "k8s.io/api/core/v1.NodeFeatures": schema_k8sio_api_core_v1_NodeFeatures(ref), - "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), - "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), - "k8s.io/api/core/v1.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), - "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), - "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), - "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), - "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), - "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), - "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), - "k8s.io/api/core/v1.NodeSwapStatus": schema_k8sio_api_core_v1_NodeSwapStatus(ref), - "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), - "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), - "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), - "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), - "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), - "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), - "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), - "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), - "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), - "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), - "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), - "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), - "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), - "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), - "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), - "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), - "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), - "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), - "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), - "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), - "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), - "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), - "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), - "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), - "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), - "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), - "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), - "k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), - "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), - "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), - "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), - "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), - "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), - "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), - "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), - "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), - "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), - "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), - "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), - "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), - "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), - "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), - "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), - "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), - "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), - "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), - "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), - "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), - "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), - "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), - "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), - "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), - "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), - "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), - "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), - "k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref), - "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), - "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), - "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), - "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), - "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), - "k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref), - "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), - "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), - "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), - "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), - "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), - "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), - "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), - "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), - "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), - "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), - "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), - "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), - "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), - "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), - "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), - "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), - "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), - "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), - "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), - "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), - "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), - "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), - "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), - "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), - "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), - "k8s.io/api/core/v1.SleepAction": schema_k8sio_api_core_v1_SleepAction(ref), - "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), - "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), - "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), - "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), - "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), - "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), - "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), - "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), - "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), - "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), - "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), - "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), - "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), - "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), - "k8s.io/api/core/v1.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(ref), - "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), - "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), - "k8s.io/api/core/v1.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), - "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), - "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), - "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), - "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), - "k8s.io/api/events/v1beta1.Event": schema_k8sio_api_events_v1beta1_Event(ref), - "k8s.io/api/events/v1beta1.EventList": schema_k8sio_api_events_v1beta1_EventList(ref), - "k8s.io/api/events/v1beta1.EventSeries": schema_k8sio_api_events_v1beta1_EventSeries(ref), - "k8s.io/api/extensions/v1beta1.DaemonSet": schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetCondition": schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetList": schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetSpec": schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetStatus": schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), - "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy": schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), - "k8s.io/api/extensions/v1beta1.Deployment": schema_k8sio_api_extensions_v1beta1_Deployment(ref), - "k8s.io/api/extensions/v1beta1.DeploymentCondition": schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), - "k8s.io/api/extensions/v1beta1.DeploymentList": schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), - "k8s.io/api/extensions/v1beta1.DeploymentRollback": schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), - "k8s.io/api/extensions/v1beta1.DeploymentSpec": schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStatus": schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), - "k8s.io/api/extensions/v1beta1.DeploymentStrategy": schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressPath": schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IPBlock": schema_k8sio_api_extensions_v1beta1_IPBlock(ref), - "k8s.io/api/extensions/v1beta1.Ingress": schema_k8sio_api_extensions_v1beta1_Ingress(ref), - "k8s.io/api/extensions/v1beta1.IngressBackend": schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), - "k8s.io/api/extensions/v1beta1.IngressList": schema_k8sio_api_extensions_v1beta1_IngressList(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressPortStatus": schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressRule": schema_k8sio_api_extensions_v1beta1_IngressRule(ref), - "k8s.io/api/extensions/v1beta1.IngressRuleValue": schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), - "k8s.io/api/extensions/v1beta1.IngressSpec": schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), - "k8s.io/api/extensions/v1beta1.IngressStatus": schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), - "k8s.io/api/extensions/v1beta1.IngressTLS": schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicy": schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyList": schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicyPort": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), - "k8s.io/api/extensions/v1beta1.NetworkPolicySpec": schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSet": schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetCondition": schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetList": schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetSpec": schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), - "k8s.io/api/extensions/v1beta1.ReplicaSetStatus": schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), - "k8s.io/api/extensions/v1beta1.RollbackConfig": schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet": schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), - "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment": schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), - "k8s.io/api/extensions/v1beta1.Scale": schema_k8sio_api_extensions_v1beta1_Scale(ref), - "k8s.io/api/extensions/v1beta1.ScaleSpec": schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), - "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), - "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1.IPAddress": schema_k8sio_api_networking_v1_IPAddress(ref), - "k8s.io/api/networking/v1.IPAddressList": schema_k8sio_api_networking_v1_IPAddressList(ref), - "k8s.io/api/networking/v1.IPAddressSpec": schema_k8sio_api_networking_v1_IPAddressSpec(ref), - "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), - "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), - "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), - "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), - "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), - "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), - "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), - "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), - "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), - "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), - "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), - "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), - "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), - "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), - "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), - "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), - "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), - "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), - "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), - "k8s.io/api/networking/v1.ParentReference": schema_k8sio_api_networking_v1_ParentReference(ref), - "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), - "k8s.io/api/networking/v1.ServiceCIDR": schema_k8sio_api_networking_v1_ServiceCIDR(ref), - "k8s.io/api/networking/v1.ServiceCIDRList": schema_k8sio_api_networking_v1_ServiceCIDRList(ref), - "k8s.io/api/networking/v1.ServiceCIDRSpec": schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref), - "k8s.io/api/networking/v1.ServiceCIDRStatus": schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), - "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), - "k8s.io/api/networking/v1beta1.IPAddressList": schema_k8sio_api_networking_v1beta1_IPAddressList(ref), - "k8s.io/api/networking/v1beta1.IPAddressSpec": schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), - "k8s.io/api/networking/v1beta1.Ingress": schema_k8sio_api_networking_v1beta1_Ingress(ref), - "k8s.io/api/networking/v1beta1.IngressBackend": schema_k8sio_api_networking_v1beta1_IngressBackend(ref), - "k8s.io/api/networking/v1beta1.IngressClass": schema_k8sio_api_networking_v1beta1_IngressClass(ref), - "k8s.io/api/networking/v1beta1.IngressClassList": schema_k8sio_api_networking_v1beta1_IngressClassList(ref), - "k8s.io/api/networking/v1beta1.IngressClassParametersReference": schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), - "k8s.io/api/networking/v1beta1.IngressClassSpec": schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), - "k8s.io/api/networking/v1beta1.IngressList": schema_k8sio_api_networking_v1beta1_IngressList(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), - "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), - "k8s.io/api/networking/v1beta1.IngressPortStatus": schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), - "k8s.io/api/networking/v1beta1.IngressRule": schema_k8sio_api_networking_v1beta1_IngressRule(ref), - "k8s.io/api/networking/v1beta1.IngressRuleValue": schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), - "k8s.io/api/networking/v1beta1.IngressSpec": schema_k8sio_api_networking_v1beta1_IngressSpec(ref), - "k8s.io/api/networking/v1beta1.IngressStatus": schema_k8sio_api_networking_v1beta1_IngressStatus(ref), - "k8s.io/api/networking/v1beta1.IngressTLS": schema_k8sio_api_networking_v1beta1_IngressTLS(ref), - "k8s.io/api/networking/v1beta1.ParentReference": schema_k8sio_api_networking_v1beta1_ParentReference(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDR": schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRList": schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRSpec": schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), - "k8s.io/api/networking/v1beta1.ServiceCIDRStatus": schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), - "k8s.io/api/node/v1alpha1.Overhead": schema_k8sio_api_node_v1alpha1_Overhead(ref), - "k8s.io/api/node/v1alpha1.RuntimeClass": schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassList": schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), - "k8s.io/api/node/v1alpha1.RuntimeClassSpec": schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), - "k8s.io/api/node/v1alpha1.Scheduling": schema_k8sio_api_node_v1alpha1_Scheduling(ref), - "k8s.io/api/node/v1beta1.Overhead": schema_k8sio_api_node_v1beta1_Overhead(ref), - "k8s.io/api/node/v1beta1.RuntimeClass": schema_k8sio_api_node_v1beta1_RuntimeClass(ref), - "k8s.io/api/node/v1beta1.RuntimeClassList": schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), - "k8s.io/api/node/v1beta1.Scheduling": schema_k8sio_api_node_v1beta1_Scheduling(ref), - "k8s.io/api/policy/v1beta1.Eviction": schema_k8sio_api_policy_v1beta1_Eviction(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudget": schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetList": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), - "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), - "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), - "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), - "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), - "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), - "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), - "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), - "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), - "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), - "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), - "k8s.io/api/rbac/v1alpha1.AggregationRule": schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRole": schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.ClusterRoleList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1alpha1.PolicyRule": schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), - "k8s.io/api/rbac/v1alpha1.Role": schema_k8sio_api_rbac_v1alpha1_Role(ref), - "k8s.io/api/rbac/v1alpha1.RoleBinding": schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), - "k8s.io/api/rbac/v1alpha1.RoleBindingList": schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), - "k8s.io/api/rbac/v1alpha1.RoleList": schema_k8sio_api_rbac_v1alpha1_RoleList(ref), - "k8s.io/api/rbac/v1alpha1.RoleRef": schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), - "k8s.io/api/rbac/v1alpha1.Subject": schema_k8sio_api_rbac_v1alpha1_Subject(ref), - "k8s.io/api/rbac/v1beta1.AggregationRule": schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), - "k8s.io/api/rbac/v1beta1.ClusterRole": schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBinding": schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.ClusterRoleList": schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), - "k8s.io/api/rbac/v1beta1.PolicyRule": schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), - "k8s.io/api/rbac/v1beta1.Role": schema_k8sio_api_rbac_v1beta1_Role(ref), - "k8s.io/api/rbac/v1beta1.RoleBinding": schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), - "k8s.io/api/rbac/v1beta1.RoleBindingList": schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), - "k8s.io/api/rbac/v1beta1.RoleList": schema_k8sio_api_rbac_v1beta1_RoleList(ref), - "k8s.io/api/rbac/v1beta1.RoleRef": schema_k8sio_api_rbac_v1beta1_RoleRef(ref), - "k8s.io/api/rbac/v1beta1.Subject": schema_k8sio_api_rbac_v1beta1_Subject(ref), - "k8s.io/api/scheduling/v1.PriorityClass": schema_k8sio_api_scheduling_v1_PriorityClass(ref), - "k8s.io/api/scheduling/v1.PriorityClassList": schema_k8sio_api_scheduling_v1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClass": schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), - "k8s.io/api/scheduling/v1alpha1.PriorityClassList": schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClass": schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), - "k8s.io/api/scheduling/v1beta1.PriorityClassList": schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), - "k8s.io/api/storage/v1.CSIDriver": schema_k8sio_api_storage_v1_CSIDriver(ref), - "k8s.io/api/storage/v1.CSIDriverList": schema_k8sio_api_storage_v1_CSIDriverList(ref), - "k8s.io/api/storage/v1.CSIDriverSpec": schema_k8sio_api_storage_v1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1.CSINode": schema_k8sio_api_storage_v1_CSINode(ref), - "k8s.io/api/storage/v1.CSINodeDriver": schema_k8sio_api_storage_v1_CSINodeDriver(ref), - "k8s.io/api/storage/v1.CSINodeList": schema_k8sio_api_storage_v1_CSINodeList(ref), - "k8s.io/api/storage/v1.CSINodeSpec": schema_k8sio_api_storage_v1_CSINodeSpec(ref), - "k8s.io/api/storage/v1.CSIStorageCapacity": schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1.CSIStorageCapacityList": schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1.StorageClass": schema_k8sio_api_storage_v1_StorageClass(ref), - "k8s.io/api/storage/v1.StorageClassList": schema_k8sio_api_storage_v1_StorageClassList(ref), - "k8s.io/api/storage/v1.TokenRequest": schema_k8sio_api_storage_v1_TokenRequest(ref), - "k8s.io/api/storage/v1.VolumeAttachment": schema_k8sio_api_storage_v1_VolumeAttachment(ref), - "k8s.io/api/storage/v1.VolumeAttachmentList": schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSource": schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1.VolumeError": schema_k8sio_api_storage_v1_VolumeError(ref), - "k8s.io/api/storage/v1.VolumeNodeResources": schema_k8sio_api_storage_v1_VolumeNodeResources(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacity": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1alpha1.CSIStorageCapacityList": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachment": schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentList": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClass": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1alpha1.VolumeAttributesClassList": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1alpha1.VolumeError": schema_k8sio_api_storage_v1alpha1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.CSIDriver": schema_k8sio_api_storage_v1beta1_CSIDriver(ref), - "k8s.io/api/storage/v1beta1.CSIDriverList": schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), - "k8s.io/api/storage/v1beta1.CSIDriverSpec": schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), - "k8s.io/api/storage/v1beta1.CSINode": schema_k8sio_api_storage_v1beta1_CSINode(ref), - "k8s.io/api/storage/v1beta1.CSINodeDriver": schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), - "k8s.io/api/storage/v1beta1.CSINodeList": schema_k8sio_api_storage_v1beta1_CSINodeList(ref), - "k8s.io/api/storage/v1beta1.CSINodeSpec": schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacity": schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), - "k8s.io/api/storage/v1beta1.CSIStorageCapacityList": schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), - "k8s.io/api/storage/v1beta1.StorageClass": schema_k8sio_api_storage_v1beta1_StorageClass(ref), - "k8s.io/api/storage/v1beta1.StorageClassList": schema_k8sio_api_storage_v1beta1_StorageClassList(ref), - "k8s.io/api/storage/v1beta1.TokenRequest": schema_k8sio_api_storage_v1beta1_TokenRequest(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachment": schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentList": schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSource": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), - "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClass": schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), - "k8s.io/api/storage/v1beta1.VolumeAttributesClassList": schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), - "k8s.io/api/storage/v1beta1.VolumeError": schema_k8sio_api_storage_v1beta1_VolumeError(ref), - "k8s.io/api/storage/v1beta1.VolumeNodeResources": schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), - "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref), - "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement": schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster": schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredential": schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), - "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics": schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics": schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetricsList": schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics": schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetricsList": schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), + "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.PlatformDatabase": schema_loft_sh_admin_apis_pkg_licenseapi_PlatformDatabase(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.PriceTier": schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Request": schema_loft_sh_admin_apis_pkg_licenseapi_Request(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount": schema_loft_sh_admin_apis_pkg_licenseapi_ResourceCount(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.TierResource": schema_loft_sh_admin_apis_pkg_licenseapi_TierResource(ref), + "github.com/loft-sh/admin-apis/pkg/licenseapi.Trial": schema_loft_sh_admin_apis_pkg_licenseapi_Trial(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Bash": schema_apis_loft_cluster_v1_Bash(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart": schema_apis_loft_cluster_v1_Chart(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo": schema_apis_loft_cluster_v1_ChartInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoList": schema_apis_loft_cluster_v1_ChartInfoList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoSpec": schema_apis_loft_cluster_v1_ChartInfoSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfoStatus": schema_apis_loft_cluster_v1_ChartInfoStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartSecretRef": schema_apis_loft_cluster_v1_ChartSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.EpochInfo": schema_apis_loft_cluster_v1_EpochInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Feature": schema_apis_loft_cluster_v1_Feature(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureList": schema_apis_loft_cluster_v1_FeatureList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureSpec": schema_apis_loft_cluster_v1_FeatureSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.FeatureStatus": schema_apis_loft_cluster_v1_FeatureStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease": schema_apis_loft_cluster_v1_HelmRelease(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseApp": schema_apis_loft_cluster_v1_HelmReleaseApp(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseConfig": schema_apis_loft_cluster_v1_HelmReleaseConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseList": schema_apis_loft_cluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseSpec": schema_apis_loft_cluster_v1_HelmReleaseSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmReleaseStatus": schema_apis_loft_cluster_v1_HelmReleaseStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Info": schema_apis_loft_cluster_v1_Info(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.LastActivityInfo": schema_apis_loft_cluster_v1_LastActivityInfo(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Maintainer": schema_apis_loft_cluster_v1_Maintainer(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata": schema_apis_loft_cluster_v1_Metadata(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ProjectSecretRef": schema_apis_loft_cluster_v1_ProjectSecretRef(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig": schema_apis_loft_cluster_v1_SleepModeConfig(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigSpec": schema_apis_loft_cluster_v1_SleepModeConfigSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfigStatus": schema_apis_loft_cluster_v1_SleepModeConfigStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota": schema_apis_loft_storage_v1_ClusterQuota(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaList": schema_apis_loft_storage_v1_ClusterQuotaList(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaSpec": schema_apis_loft_storage_v1_ClusterQuotaSpec(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatus": schema_apis_loft_storage_v1_ClusterQuotaStatus(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuotaStatusByNamespace": schema_apis_loft_storage_v1_ClusterQuotaStatusByNamespace(ref), + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition": schema_apis_loft_storage_v1_Condition(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole": schema_pkg_apis_management_v1_ClusterAccessRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGPUSettings": schema_pkg_apis_management_v1_CostControlGPUSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnector": schema_pkg_apis_management_v1_DatabaseConnector(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorList": schema_pkg_apis_management_v1_DatabaseConnectorList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorSpec": schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DatabaseConnectorStatus": schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus": schema_pkg_apis_management_v1_LoftUpgradeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NamespacedNameArgs": schema_pkg_apis_management_v1_NamespacedNameArgs(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim": schema_pkg_apis_management_v1_NodeClaim(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimData": schema_pkg_apis_management_v1_NodeClaimData(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimList": schema_pkg_apis_management_v1_NodeClaimList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec": schema_pkg_apis_management_v1_NodeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus": schema_pkg_apis_management_v1_NodeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironment": schema_pkg_apis_management_v1_NodeEnvironment(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentData": schema_pkg_apis_management_v1_NodeEnvironmentData(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentList": schema_pkg_apis_management_v1_NodeEnvironmentList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentSpec": schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentStatus": schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider": schema_pkg_apis_management_v1_NodeProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult": schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeGroup": schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources": schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult": schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderCalculateCostResult": schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExec": schema_pkg_apis_management_v1_NodeProviderExec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecList": schema_pkg_apis_management_v1_NodeProviderExecList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecResult": schema_pkg_apis_management_v1_NodeProviderExecResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecSpec": schema_pkg_apis_management_v1_NodeProviderExecSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecStatus": schema_pkg_apis_management_v1_NodeProviderExecStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderList": schema_pkg_apis_management_v1_NodeProviderList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec": schema_pkg_apis_management_v1_NodeProviderSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus": schema_pkg_apis_management_v1_NodeProviderStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderTerraformValidateResult": schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType": schema_pkg_apis_management_v1_NodeType(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeList": schema_pkg_apis_management_v1_NodeTypeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec": schema_pkg_apis_management_v1_NodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus": schema_pkg_apis_management_v1_NodeTypeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName": schema_pkg_apis_management_v1_ObjectName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission": schema_pkg_apis_management_v1_ObjectPermission(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation": schema_pkg_apis_management_v1_Operation(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.PlatformDB": schema_pkg_apis_management_v1_PlatformDB(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership": schema_pkg_apis_management_v1_ProjectMembership(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectNodeTypes": schema_pkg_apis_management_v1_ProjectNodeTypes(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectNodeTypesList": schema_pkg_apis_management_v1_ProjectNodeTypesList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole": schema_pkg_apis_management_v1_ProjectRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequest": schema_pkg_apis_management_v1_SnapshotRequest(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError": schema_pkg_apis_management_v1_SnapshotRequestError(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestMetadata": schema_pkg_apis_management_v1_SnapshotRequestMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestStatus": schema_pkg_apis_management_v1_SnapshotRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotTaken": schema_pkg_apis_management_v1_SnapshotTaken(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), + "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.StandaloneEtcdPeer": schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator": schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI": schema_pkg_apis_management_v1_StandalonePKI(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions": schema_pkg_apis_management_v1_TeamObjectPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissionsList": schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions": schema_pkg_apis_management_v1_TeamPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissionsList": schema_pkg_apis_management_v1_TeamPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName": schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameList": schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec": schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus": schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownload": schema_pkg_apis_management_v1_UsageDownload(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadList": schema_pkg_apis_management_v1_UsageDownloadList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadSpec": schema_pkg_apis_management_v1_UsageDownloadSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadStatus": schema_pkg_apis_management_v1_UsageDownloadStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions": schema_pkg_apis_management_v1_UserObjectPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissionsList": schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell": schema_pkg_apis_management_v1_VirtualClusterInstanceShell(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShellList": schema_pkg_apis_management_v1_VirtualClusterInstanceShellList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshot": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotList": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellSpec": schema_pkg_apis_management_v1_VirtualClusterShellSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellStatus": schema_pkg_apis_management_v1_VirtualClusterShellStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone": schema_pkg_apis_management_v1_VirtualClusterStandalone(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneList": schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneSpec": schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneStatus": schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotRequestStatus": schema_pkg_apis_management_v1_VolumeSnapshotRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotsRequestStatus": schema_pkg_apis_management_v1_VolumeSnapshotsRequestStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.BCMNodeTypeSpec": schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPINodeTypeSpec": schema_pkg_apis_storage_v1_ClusterAPINodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPIObjects": schema_pkg_apis_storage_v1_ClusterAPIObjects(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), + "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.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(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.KubeVirtNodeTypeSpec": schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta": schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamedNodeTypeSpec": schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacedRef": schema_pkg_apis_storage_v1_NamespacedRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim": schema_pkg_apis_storage_v1_NodeClaim(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimList": schema_pkg_apis_storage_v1_NodeClaimList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimSpec": schema_pkg_apis_storage_v1_NodeClaimSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaimStatus": schema_pkg_apis_storage_v1_NodeClaimStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironment": schema_pkg_apis_storage_v1_NodeEnvironment(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentList": schema_pkg_apis_storage_v1_NodeEnvironmentList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentSpec": schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentStatus": schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider": schema_pkg_apis_storage_v1_NodeProvider(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM": schema_pkg_apis_storage_v1_NodeProviderBCM(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI": schema_pkg_apis_storage_v1_NodeProviderClusterAPI(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef": schema_pkg_apis_storage_v1_NodeProviderClusterRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt": schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderList": schema_pkg_apis_storage_v1_NodeProviderList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderSpec": schema_pkg_apis_storage_v1_NodeProviderSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderStatus": schema_pkg_apis_storage_v1_NodeProviderStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform": schema_pkg_apis_storage_v1_NodeProviderTerraform(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType": schema_pkg_apis_storage_v1_NodeType(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity": schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeList": schema_pkg_apis_storage_v1_NodeTypeList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead": schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeSpec": schema_pkg_apis_storage_v1_NodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeStatus": schema_pkg_apis_storage_v1_NodeTypeStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity": schema_pkg_apis_storage_v1_SSOIdentity(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeEnvironmentTemplate": schema_pkg_apis_storage_v1_TerraformNodeEnvironmentTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeTypeSpec": schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate": schema_pkg_apis_storage_v1_TerraformTemplate(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit": schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), + "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/ui/v1.CspPolicy": schema_pkg_apis_ui_v1_CspPolicy(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs": schema_pkg_apis_ui_v1_ExternalURLs(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.VClusterVersion": schema_pkg_apis_ui_v1_VClusterVersion(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), + "github.com/loft-sh/api/v4/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), + "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.ApplyConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ApplyConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.AuditAnnotation": schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref), + "k8s.io/api/admissionregistration/v1beta1.ExpressionWarning": schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref), + "k8s.io/api/admissionregistration/v1beta1.JSONPatch": schema_k8sio_api_admissionregistration_v1beta1_JSONPatch(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchCondition": schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref), + "k8s.io/api/admissionregistration/v1beta1.MatchResources": schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.MutatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.Mutation": schema_k8sio_api_admissionregistration_v1beta1_Mutation(ref), + "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations": schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamKind": schema_k8sio_api_admissionregistration_v1beta1_ParamKind(ref), + "k8s.io/api/admissionregistration/v1beta1.ParamRef": schema_k8sio_api_admissionregistration_v1beta1_ParamRef(ref), + "k8s.io/api/admissionregistration/v1beta1.ServiceReference": schema_k8sio_api_admissionregistration_v1beta1_ServiceReference(ref), + "k8s.io/api/admissionregistration/v1beta1.TypeChecking": schema_k8sio_api_admissionregistration_v1beta1_TypeChecking(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicy": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicy(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBinding": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBinding(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyBindingSpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyBindingSpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyList(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicySpec": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicySpec(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingAdmissionPolicyStatus": schema_k8sio_api_admissionregistration_v1beta1_ValidatingAdmissionPolicyStatus(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhook": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhook(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfiguration": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration(ref), + "k8s.io/api/admissionregistration/v1beta1.ValidatingWebhookConfigurationList": schema_k8sio_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList(ref), + "k8s.io/api/admissionregistration/v1beta1.Validation": schema_k8sio_api_admissionregistration_v1beta1_Validation(ref), + "k8s.io/api/admissionregistration/v1beta1.Variable": schema_k8sio_api_admissionregistration_v1beta1_Variable(ref), + "k8s.io/api/admissionregistration/v1beta1.WebhookClientConfig": schema_k8sio_api_admissionregistration_v1beta1_WebhookClientConfig(ref), + "k8s.io/api/apps/v1.ControllerRevision": schema_k8sio_api_apps_v1_ControllerRevision(ref), + "k8s.io/api/apps/v1.ControllerRevisionList": schema_k8sio_api_apps_v1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1.DaemonSet": schema_k8sio_api_apps_v1_DaemonSet(ref), + "k8s.io/api/apps/v1.DaemonSetCondition": schema_k8sio_api_apps_v1_DaemonSetCondition(ref), + "k8s.io/api/apps/v1.DaemonSetList": schema_k8sio_api_apps_v1_DaemonSetList(ref), + "k8s.io/api/apps/v1.DaemonSetSpec": schema_k8sio_api_apps_v1_DaemonSetSpec(ref), + "k8s.io/api/apps/v1.DaemonSetStatus": schema_k8sio_api_apps_v1_DaemonSetStatus(ref), + "k8s.io/api/apps/v1.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1.Deployment": schema_k8sio_api_apps_v1_Deployment(ref), + "k8s.io/api/apps/v1.DeploymentCondition": schema_k8sio_api_apps_v1_DeploymentCondition(ref), + "k8s.io/api/apps/v1.DeploymentList": schema_k8sio_api_apps_v1_DeploymentList(ref), + "k8s.io/api/apps/v1.DeploymentSpec": schema_k8sio_api_apps_v1_DeploymentSpec(ref), + "k8s.io/api/apps/v1.DeploymentStatus": schema_k8sio_api_apps_v1_DeploymentStatus(ref), + "k8s.io/api/apps/v1.DeploymentStrategy": schema_k8sio_api_apps_v1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1.ReplicaSet": schema_k8sio_api_apps_v1_ReplicaSet(ref), + "k8s.io/api/apps/v1.ReplicaSetCondition": schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1.ReplicaSetList": schema_k8sio_api_apps_v1_ReplicaSetList(ref), + "k8s.io/api/apps/v1.ReplicaSetSpec": schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1.ReplicaSetStatus": schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1.RollingUpdateDeployment": schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1.StatefulSet": schema_k8sio_api_apps_v1_StatefulSet(ref), + "k8s.io/api/apps/v1.StatefulSetCondition": schema_k8sio_api_apps_v1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1.StatefulSetList": schema_k8sio_api_apps_v1_StatefulSetList(ref), + "k8s.io/api/apps/v1.StatefulSetOrdinals": schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1.StatefulSetSpec": schema_k8sio_api_apps_v1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1.StatefulSetStatus": schema_k8sio_api_apps_v1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta1.ControllerRevision": schema_k8sio_api_apps_v1beta1_ControllerRevision(ref), + "k8s.io/api/apps/v1beta1.ControllerRevisionList": schema_k8sio_api_apps_v1beta1_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta1.Deployment": schema_k8sio_api_apps_v1beta1_Deployment(ref), + "k8s.io/api/apps/v1beta1.DeploymentCondition": schema_k8sio_api_apps_v1beta1_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta1.DeploymentList": schema_k8sio_api_apps_v1beta1_DeploymentList(ref), + "k8s.io/api/apps/v1beta1.DeploymentRollback": schema_k8sio_api_apps_v1beta1_DeploymentRollback(ref), + "k8s.io/api/apps/v1beta1.DeploymentSpec": schema_k8sio_api_apps_v1beta1_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta1.DeploymentStatus": schema_k8sio_api_apps_v1beta1_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta1.DeploymentStrategy": schema_k8sio_api_apps_v1beta1_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta1.RollbackConfig": schema_k8sio_api_apps_v1beta1_RollbackConfig(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta1_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta1.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta1_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta1.Scale": schema_k8sio_api_apps_v1beta1_Scale(ref), + "k8s.io/api/apps/v1beta1.ScaleSpec": schema_k8sio_api_apps_v1beta1_ScaleSpec(ref), + "k8s.io/api/apps/v1beta1.ScaleStatus": schema_k8sio_api_apps_v1beta1_ScaleStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSet": schema_k8sio_api_apps_v1beta1_StatefulSet(ref), + "k8s.io/api/apps/v1beta1.StatefulSetCondition": schema_k8sio_api_apps_v1beta1_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta1.StatefulSetList": schema_k8sio_api_apps_v1beta1_StatefulSetList(ref), + "k8s.io/api/apps/v1beta1.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta1_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta1.StatefulSetSpec": schema_k8sio_api_apps_v1beta1_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta1.StatefulSetStatus": schema_k8sio_api_apps_v1beta1_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta1.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta1_StatefulSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.ControllerRevision": schema_k8sio_api_apps_v1beta2_ControllerRevision(ref), + "k8s.io/api/apps/v1beta2.ControllerRevisionList": schema_k8sio_api_apps_v1beta2_ControllerRevisionList(ref), + "k8s.io/api/apps/v1beta2.DaemonSet": schema_k8sio_api_apps_v1beta2_DaemonSet(ref), + "k8s.io/api/apps/v1beta2.DaemonSetCondition": schema_k8sio_api_apps_v1beta2_DaemonSetCondition(ref), + "k8s.io/api/apps/v1beta2.DaemonSetList": schema_k8sio_api_apps_v1beta2_DaemonSetList(ref), + "k8s.io/api/apps/v1beta2.DaemonSetSpec": schema_k8sio_api_apps_v1beta2_DaemonSetSpec(ref), + "k8s.io/api/apps/v1beta2.DaemonSetStatus": schema_k8sio_api_apps_v1beta2_DaemonSetStatus(ref), + "k8s.io/api/apps/v1beta2.DaemonSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_DaemonSetUpdateStrategy(ref), + "k8s.io/api/apps/v1beta2.Deployment": schema_k8sio_api_apps_v1beta2_Deployment(ref), + "k8s.io/api/apps/v1beta2.DeploymentCondition": schema_k8sio_api_apps_v1beta2_DeploymentCondition(ref), + "k8s.io/api/apps/v1beta2.DeploymentList": schema_k8sio_api_apps_v1beta2_DeploymentList(ref), + "k8s.io/api/apps/v1beta2.DeploymentSpec": schema_k8sio_api_apps_v1beta2_DeploymentSpec(ref), + "k8s.io/api/apps/v1beta2.DeploymentStatus": schema_k8sio_api_apps_v1beta2_DeploymentStatus(ref), + "k8s.io/api/apps/v1beta2.DeploymentStrategy": schema_k8sio_api_apps_v1beta2_DeploymentStrategy(ref), + "k8s.io/api/apps/v1beta2.ReplicaSet": schema_k8sio_api_apps_v1beta2_ReplicaSet(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetCondition": schema_k8sio_api_apps_v1beta2_ReplicaSetCondition(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetList": schema_k8sio_api_apps_v1beta2_ReplicaSetList(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetSpec": schema_k8sio_api_apps_v1beta2_ReplicaSetSpec(ref), + "k8s.io/api/apps/v1beta2.ReplicaSetStatus": schema_k8sio_api_apps_v1beta2_ReplicaSetStatus(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDaemonSet": schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateDeployment": schema_k8sio_api_apps_v1beta2_RollingUpdateDeployment(ref), + "k8s.io/api/apps/v1beta2.RollingUpdateStatefulSetStrategy": schema_k8sio_api_apps_v1beta2_RollingUpdateStatefulSetStrategy(ref), + "k8s.io/api/apps/v1beta2.Scale": schema_k8sio_api_apps_v1beta2_Scale(ref), + "k8s.io/api/apps/v1beta2.ScaleSpec": schema_k8sio_api_apps_v1beta2_ScaleSpec(ref), + "k8s.io/api/apps/v1beta2.ScaleStatus": schema_k8sio_api_apps_v1beta2_ScaleStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSet": schema_k8sio_api_apps_v1beta2_StatefulSet(ref), + "k8s.io/api/apps/v1beta2.StatefulSetCondition": schema_k8sio_api_apps_v1beta2_StatefulSetCondition(ref), + "k8s.io/api/apps/v1beta2.StatefulSetList": schema_k8sio_api_apps_v1beta2_StatefulSetList(ref), + "k8s.io/api/apps/v1beta2.StatefulSetOrdinals": schema_k8sio_api_apps_v1beta2_StatefulSetOrdinals(ref), + "k8s.io/api/apps/v1beta2.StatefulSetPersistentVolumeClaimRetentionPolicy": schema_k8sio_api_apps_v1beta2_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + "k8s.io/api/apps/v1beta2.StatefulSetSpec": schema_k8sio_api_apps_v1beta2_StatefulSetSpec(ref), + "k8s.io/api/apps/v1beta2.StatefulSetStatus": schema_k8sio_api_apps_v1beta2_StatefulSetStatus(ref), + "k8s.io/api/apps/v1beta2.StatefulSetUpdateStrategy": schema_k8sio_api_apps_v1beta2_StatefulSetUpdateStrategy(ref), + "k8s.io/api/authentication/v1.BoundObjectReference": schema_k8sio_api_authentication_v1_BoundObjectReference(ref), + "k8s.io/api/authentication/v1.SelfSubjectReview": schema_k8sio_api_authentication_v1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1.TokenRequest": schema_k8sio_api_authentication_v1_TokenRequest(ref), + "k8s.io/api/authentication/v1.TokenRequestSpec": schema_k8sio_api_authentication_v1_TokenRequestSpec(ref), + "k8s.io/api/authentication/v1.TokenRequestStatus": schema_k8sio_api_authentication_v1_TokenRequestStatus(ref), + "k8s.io/api/authentication/v1.TokenReview": schema_k8sio_api_authentication_v1_TokenReview(ref), + "k8s.io/api/authentication/v1.TokenReviewSpec": schema_k8sio_api_authentication_v1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1.TokenReviewStatus": schema_k8sio_api_authentication_v1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1.UserInfo": schema_k8sio_api_authentication_v1_UserInfo(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReview": schema_k8sio_api_authentication_v1beta1_SelfSubjectReview(ref), + "k8s.io/api/authentication/v1beta1.SelfSubjectReviewStatus": schema_k8sio_api_authentication_v1beta1_SelfSubjectReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.TokenReview": schema_k8sio_api_authentication_v1beta1_TokenReview(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewSpec": schema_k8sio_api_authentication_v1beta1_TokenReviewSpec(ref), + "k8s.io/api/authentication/v1beta1.TokenReviewStatus": schema_k8sio_api_authentication_v1beta1_TokenReviewStatus(ref), + "k8s.io/api/authentication/v1beta1.UserInfo": schema_k8sio_api_authentication_v1beta1_UserInfo(ref), + "k8s.io/api/authorization/v1.FieldSelectorAttributes": schema_k8sio_api_authorization_v1_FieldSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LabelSelectorAttributes": schema_k8sio_api_authorization_v1_LabelSelectorAttributes(ref), + "k8s.io/api/authorization/v1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.NonResourceAttributes": schema_k8sio_api_authorization_v1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1.NonResourceRule": schema_k8sio_api_authorization_v1_NonResourceRule(ref), + "k8s.io/api/authorization/v1.ResourceAttributes": schema_k8sio_api_authorization_v1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1.ResourceRule": schema_k8sio_api_authorization_v1_ResourceRule(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReview": schema_k8sio_api_authorization_v1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1_SubjectRulesReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.LocalSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_LocalSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.NonResourceAttributes": schema_k8sio_api_authorization_v1beta1_NonResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.NonResourceRule": schema_k8sio_api_authorization_v1beta1_NonResourceRule(ref), + "k8s.io/api/authorization/v1beta1.ResourceAttributes": schema_k8sio_api_authorization_v1beta1_ResourceAttributes(ref), + "k8s.io/api/authorization/v1beta1.ResourceRule": schema_k8sio_api_authorization_v1beta1_ResourceRule(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReview": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReview(ref), + "k8s.io/api/authorization/v1beta1.SelfSubjectRulesReviewSpec": schema_k8sio_api_authorization_v1beta1_SelfSubjectRulesReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReview": schema_k8sio_api_authorization_v1beta1_SubjectAccessReview(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewSpec": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewSpec(ref), + "k8s.io/api/authorization/v1beta1.SubjectAccessReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectAccessReviewStatus(ref), + "k8s.io/api/authorization/v1beta1.SubjectRulesReviewStatus": schema_k8sio_api_authorization_v1beta1_SubjectRulesReviewStatus(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricSource": schema_k8sio_api_autoscaling_v1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v1.MetricSpec": schema_k8sio_api_autoscaling_v1_MetricSpec(ref), + "k8s.io/api/autoscaling/v1.MetricStatus": schema_k8sio_api_autoscaling_v1_MetricStatus(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricSource": schema_k8sio_api_autoscaling_v1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v1.PodsMetricSource": schema_k8sio_api_autoscaling_v1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v1.PodsMetricStatus": schema_k8sio_api_autoscaling_v1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricSource": schema_k8sio_api_autoscaling_v1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v1.Scale": schema_k8sio_api_autoscaling_v1_Scale(ref), + "k8s.io/api/autoscaling/v1.ScaleSpec": schema_k8sio_api_autoscaling_v1_ScaleSpec(ref), + "k8s.io/api/autoscaling/v1.ScaleStatus": schema_k8sio_api_autoscaling_v1_ScaleStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta1_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta1.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta1_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta1.MetricSpec": schema_k8sio_api_autoscaling_v2beta1_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta1.MetricStatus": schema_k8sio_api_autoscaling_v2beta1_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta1_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta1_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta1.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta1_ResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ContainerResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ContainerResourceMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.CrossVersionObjectReference": schema_k8sio_api_autoscaling_v2beta2_CrossVersionObjectReference(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricSource": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ExternalMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ExternalMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingPolicy": schema_k8sio_api_autoscaling_v2beta2_HPAScalingPolicy(ref), + "k8s.io/api/autoscaling/v2beta2.HPAScalingRules": schema_k8sio_api_autoscaling_v2beta2_HPAScalingRules(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscaler": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscaler(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerBehavior": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerBehavior(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerCondition": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerCondition(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerList": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerList(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerSpec": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerSpec(ref), + "k8s.io/api/autoscaling/v2beta2.HorizontalPodAutoscalerStatus": schema_k8sio_api_autoscaling_v2beta2_HorizontalPodAutoscalerStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricIdentifier": schema_k8sio_api_autoscaling_v2beta2_MetricIdentifier(ref), + "k8s.io/api/autoscaling/v2beta2.MetricSpec": schema_k8sio_api_autoscaling_v2beta2_MetricSpec(ref), + "k8s.io/api/autoscaling/v2beta2.MetricStatus": schema_k8sio_api_autoscaling_v2beta2_MetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.MetricTarget": schema_k8sio_api_autoscaling_v2beta2_MetricTarget(ref), + "k8s.io/api/autoscaling/v2beta2.MetricValueStatus": schema_k8sio_api_autoscaling_v2beta2_MetricValueStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricSource": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ObjectMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ObjectMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricSource": schema_k8sio_api_autoscaling_v2beta2_PodsMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.PodsMetricStatus": schema_k8sio_api_autoscaling_v2beta2_PodsMetricStatus(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricSource": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricSource(ref), + "k8s.io/api/autoscaling/v2beta2.ResourceMetricStatus": schema_k8sio_api_autoscaling_v2beta2_ResourceMetricStatus(ref), + "k8s.io/api/batch/v1.CronJob": schema_k8sio_api_batch_v1_CronJob(ref), + "k8s.io/api/batch/v1.CronJobList": schema_k8sio_api_batch_v1_CronJobList(ref), + "k8s.io/api/batch/v1.CronJobSpec": schema_k8sio_api_batch_v1_CronJobSpec(ref), + "k8s.io/api/batch/v1.CronJobStatus": schema_k8sio_api_batch_v1_CronJobStatus(ref), + "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), + "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), + "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), + "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), + "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), + "k8s.io/api/batch/v1.JobTemplateSpec": schema_k8sio_api_batch_v1_JobTemplateSpec(ref), + "k8s.io/api/batch/v1.PodFailurePolicy": schema_k8sio_api_batch_v1_PodFailurePolicy(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnExitCodesRequirement": schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), + "k8s.io/api/batch/v1.PodFailurePolicyOnPodConditionsPattern": schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), + "k8s.io/api/batch/v1.PodFailurePolicyRule": schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), + "k8s.io/api/batch/v1.SuccessPolicy": schema_k8sio_api_batch_v1_SuccessPolicy(ref), + "k8s.io/api/batch/v1.SuccessPolicyRule": schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), + "k8s.io/api/batch/v1.UncountedTerminatedPods": schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), + "k8s.io/api/batch/v1beta1.CronJob": schema_k8sio_api_batch_v1beta1_CronJob(ref), + "k8s.io/api/batch/v1beta1.CronJobList": schema_k8sio_api_batch_v1beta1_CronJobList(ref), + "k8s.io/api/batch/v1beta1.CronJobSpec": schema_k8sio_api_batch_v1beta1_CronJobSpec(ref), + "k8s.io/api/batch/v1beta1.CronJobStatus": schema_k8sio_api_batch_v1beta1_CronJobStatus(ref), + "k8s.io/api/batch/v1beta1.JobTemplateSpec": schema_k8sio_api_batch_v1beta1_JobTemplateSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequest": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequest(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestCondition": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestCondition(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestList": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestList(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestSpec": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestSpec(ref), + "k8s.io/api/certificates/v1beta1.CertificateSigningRequestStatus": schema_k8sio_api_certificates_v1beta1_CertificateSigningRequestStatus(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundle": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundle(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleList": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleList(ref), + "k8s.io/api/certificates/v1beta1.ClusterTrustBundleSpec": schema_k8sio_api_certificates_v1beta1_ClusterTrustBundleSpec(ref), + "k8s.io/api/coordination/v1.Lease": schema_k8sio_api_coordination_v1_Lease(ref), + "k8s.io/api/coordination/v1.LeaseList": schema_k8sio_api_coordination_v1_LeaseList(ref), + "k8s.io/api/coordination/v1.LeaseSpec": schema_k8sio_api_coordination_v1_LeaseSpec(ref), + "k8s.io/api/coordination/v1beta1.Lease": schema_k8sio_api_coordination_v1beta1_Lease(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidate": schema_k8sio_api_coordination_v1beta1_LeaseCandidate(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidateList": schema_k8sio_api_coordination_v1beta1_LeaseCandidateList(ref), + "k8s.io/api/coordination/v1beta1.LeaseCandidateSpec": schema_k8sio_api_coordination_v1beta1_LeaseCandidateSpec(ref), + "k8s.io/api/coordination/v1beta1.LeaseList": schema_k8sio_api_coordination_v1beta1_LeaseList(ref), + "k8s.io/api/coordination/v1beta1.LeaseSpec": schema_k8sio_api_coordination_v1beta1_LeaseSpec(ref), + "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), + "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), + "k8s.io/api/core/v1.AppArmorProfile": schema_k8sio_api_core_v1_AppArmorProfile(ref), + "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), + "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), + "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), + "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), + "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), + "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), + "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), + "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), + "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), + "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), + "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), + "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), + "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), + "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), + "k8s.io/api/core/v1.ClusterTrustBundleProjection": schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), + "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), + "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), + "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), + "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), + "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), + "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), + "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), + "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), + "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), + "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), + "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), + "k8s.io/api/core/v1.ContainerExtendedResourceRequest": schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(ref), + "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), + "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), + "k8s.io/api/core/v1.ContainerResizePolicy": schema_k8sio_api_core_v1_ContainerResizePolicy(ref), + "k8s.io/api/core/v1.ContainerRestartRule": schema_k8sio_api_core_v1_ContainerRestartRule(ref), + "k8s.io/api/core/v1.ContainerRestartRuleOnExitCodes": schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(ref), + "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), + "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), + "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), + "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.FileKeySelector": schema_k8sio_api_core_v1_FileKeySelector(ref), + "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), + "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), + "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), + "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), + "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), + "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), + "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), + "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), + "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), + "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), + "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), + "k8s.io/api/core/v1.HostIP": schema_k8sio_api_core_v1_HostIP(ref), + "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), + "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), + "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), + "k8s.io/api/core/v1.ImageVolumeSource": schema_k8sio_api_core_v1_ImageVolumeSource(ref), + "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), + "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), + "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), + "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), + "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), + "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), + "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), + "k8s.io/api/core/v1.LinuxContainerUser": schema_k8sio_api_core_v1_LinuxContainerUser(ref), + "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), + "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), + "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), + "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), + "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), + "k8s.io/api/core/v1.ModifyVolumeStatus": schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), + "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), + "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), + "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), + "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), + "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), + "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), + "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), + "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), + "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), + "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), + "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), + "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), + "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), + "k8s.io/api/core/v1.NodeFeatures": schema_k8sio_api_core_v1_NodeFeatures(ref), + "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), + "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), + "k8s.io/api/core/v1.NodeRuntimeHandler": schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), + "k8s.io/api/core/v1.NodeRuntimeHandlerFeatures": schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), + "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), + "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), + "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), + "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), + "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), + "k8s.io/api/core/v1.NodeSwapStatus": schema_k8sio_api_core_v1_NodeSwapStatus(ref), + "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), + "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), + "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), + "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), + "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), + "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), + "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), + "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), + "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), + "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), + "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), + "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), + "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), + "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), + "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), + "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), + "k8s.io/api/core/v1.PodCertificateProjection": schema_k8sio_api_core_v1_PodCertificateProjection(ref), + "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), + "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), + "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), + "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), + "k8s.io/api/core/v1.PodExtendedResourceClaimStatus": schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(ref), + "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), + "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), + "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), + "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), + "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), + "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), + "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), + "k8s.io/api/core/v1.PodResourceClaim": schema_k8sio_api_core_v1_PodResourceClaim(ref), + "k8s.io/api/core/v1.PodResourceClaimStatus": schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), + "k8s.io/api/core/v1.PodSchedulingGate": schema_k8sio_api_core_v1_PodSchedulingGate(ref), + "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), + "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), + "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), + "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), + "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), + "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), + "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), + "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), + "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), + "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), + "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), + "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), + "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), + "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), + "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), + "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), + "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), + "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), + "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), + "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), + "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), + "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), + "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), + "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), + "k8s.io/api/core/v1.ResourceClaim": schema_k8sio_api_core_v1_ResourceClaim(ref), + "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), + "k8s.io/api/core/v1.ResourceHealth": schema_k8sio_api_core_v1_ResourceHealth(ref), + "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), + "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), + "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), + "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), + "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), + "k8s.io/api/core/v1.ResourceStatus": schema_k8sio_api_core_v1_ResourceStatus(ref), + "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), + "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), + "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), + "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), + "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), + "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), + "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), + "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), + "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), + "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), + "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), + "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), + "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), + "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), + "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), + "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), + "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), + "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), + "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), + "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), + "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), + "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), + "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), + "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), + "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), + "k8s.io/api/core/v1.SleepAction": schema_k8sio_api_core_v1_SleepAction(ref), + "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), + "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), + "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), + "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), + "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), + "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), + "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), + "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), + "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), + "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), + "k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref), + "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), + "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), + "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), + "k8s.io/api/core/v1.VolumeMountStatus": schema_k8sio_api_core_v1_VolumeMountStatus(ref), + "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), + "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), + "k8s.io/api/core/v1.VolumeResourceRequirements": schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), + "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), + "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), + "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), + "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), + "k8s.io/api/events/v1beta1.Event": schema_k8sio_api_events_v1beta1_Event(ref), + "k8s.io/api/events/v1beta1.EventList": schema_k8sio_api_events_v1beta1_EventList(ref), + "k8s.io/api/events/v1beta1.EventSeries": schema_k8sio_api_events_v1beta1_EventSeries(ref), + "k8s.io/api/extensions/v1beta1.DaemonSet": schema_k8sio_api_extensions_v1beta1_DaemonSet(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetCondition": schema_k8sio_api_extensions_v1beta1_DaemonSetCondition(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetList": schema_k8sio_api_extensions_v1beta1_DaemonSetList(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetSpec": schema_k8sio_api_extensions_v1beta1_DaemonSetSpec(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetStatus": schema_k8sio_api_extensions_v1beta1_DaemonSetStatus(ref), + "k8s.io/api/extensions/v1beta1.DaemonSetUpdateStrategy": schema_k8sio_api_extensions_v1beta1_DaemonSetUpdateStrategy(ref), + "k8s.io/api/extensions/v1beta1.Deployment": schema_k8sio_api_extensions_v1beta1_Deployment(ref), + "k8s.io/api/extensions/v1beta1.DeploymentCondition": schema_k8sio_api_extensions_v1beta1_DeploymentCondition(ref), + "k8s.io/api/extensions/v1beta1.DeploymentList": schema_k8sio_api_extensions_v1beta1_DeploymentList(ref), + "k8s.io/api/extensions/v1beta1.DeploymentRollback": schema_k8sio_api_extensions_v1beta1_DeploymentRollback(ref), + "k8s.io/api/extensions/v1beta1.DeploymentSpec": schema_k8sio_api_extensions_v1beta1_DeploymentSpec(ref), + "k8s.io/api/extensions/v1beta1.DeploymentStatus": schema_k8sio_api_extensions_v1beta1_DeploymentStatus(ref), + "k8s.io/api/extensions/v1beta1.DeploymentStrategy": schema_k8sio_api_extensions_v1beta1_DeploymentStrategy(ref), + "k8s.io/api/extensions/v1beta1.HTTPIngressPath": schema_k8sio_api_extensions_v1beta1_HTTPIngressPath(ref), + "k8s.io/api/extensions/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_extensions_v1beta1_HTTPIngressRuleValue(ref), + "k8s.io/api/extensions/v1beta1.IPBlock": schema_k8sio_api_extensions_v1beta1_IPBlock(ref), + "k8s.io/api/extensions/v1beta1.Ingress": schema_k8sio_api_extensions_v1beta1_Ingress(ref), + "k8s.io/api/extensions/v1beta1.IngressBackend": schema_k8sio_api_extensions_v1beta1_IngressBackend(ref), + "k8s.io/api/extensions/v1beta1.IngressList": schema_k8sio_api_extensions_v1beta1_IngressList(ref), + "k8s.io/api/extensions/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerIngress(ref), + "k8s.io/api/extensions/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_extensions_v1beta1_IngressLoadBalancerStatus(ref), + "k8s.io/api/extensions/v1beta1.IngressPortStatus": schema_k8sio_api_extensions_v1beta1_IngressPortStatus(ref), + "k8s.io/api/extensions/v1beta1.IngressRule": schema_k8sio_api_extensions_v1beta1_IngressRule(ref), + "k8s.io/api/extensions/v1beta1.IngressRuleValue": schema_k8sio_api_extensions_v1beta1_IngressRuleValue(ref), + "k8s.io/api/extensions/v1beta1.IngressSpec": schema_k8sio_api_extensions_v1beta1_IngressSpec(ref), + "k8s.io/api/extensions/v1beta1.IngressStatus": schema_k8sio_api_extensions_v1beta1_IngressStatus(ref), + "k8s.io/api/extensions/v1beta1.IngressTLS": schema_k8sio_api_extensions_v1beta1_IngressTLS(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicy": schema_k8sio_api_extensions_v1beta1_NetworkPolicy(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyEgressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyEgressRule(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyIngressRule": schema_k8sio_api_extensions_v1beta1_NetworkPolicyIngressRule(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyList": schema_k8sio_api_extensions_v1beta1_NetworkPolicyList(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyPeer": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPeer(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicyPort": schema_k8sio_api_extensions_v1beta1_NetworkPolicyPort(ref), + "k8s.io/api/extensions/v1beta1.NetworkPolicySpec": schema_k8sio_api_extensions_v1beta1_NetworkPolicySpec(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSet": schema_k8sio_api_extensions_v1beta1_ReplicaSet(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetCondition": schema_k8sio_api_extensions_v1beta1_ReplicaSetCondition(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetList": schema_k8sio_api_extensions_v1beta1_ReplicaSetList(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetSpec": schema_k8sio_api_extensions_v1beta1_ReplicaSetSpec(ref), + "k8s.io/api/extensions/v1beta1.ReplicaSetStatus": schema_k8sio_api_extensions_v1beta1_ReplicaSetStatus(ref), + "k8s.io/api/extensions/v1beta1.RollbackConfig": schema_k8sio_api_extensions_v1beta1_RollbackConfig(ref), + "k8s.io/api/extensions/v1beta1.RollingUpdateDaemonSet": schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref), + "k8s.io/api/extensions/v1beta1.RollingUpdateDeployment": schema_k8sio_api_extensions_v1beta1_RollingUpdateDeployment(ref), + "k8s.io/api/extensions/v1beta1.Scale": schema_k8sio_api_extensions_v1beta1_Scale(ref), + "k8s.io/api/extensions/v1beta1.ScaleSpec": schema_k8sio_api_extensions_v1beta1_ScaleSpec(ref), + "k8s.io/api/extensions/v1beta1.ScaleStatus": schema_k8sio_api_extensions_v1beta1_ScaleStatus(ref), + "k8s.io/api/networking/v1.HTTPIngressPath": schema_k8sio_api_networking_v1_HTTPIngressPath(ref), + "k8s.io/api/networking/v1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), + "k8s.io/api/networking/v1.IPAddress": schema_k8sio_api_networking_v1_IPAddress(ref), + "k8s.io/api/networking/v1.IPAddressList": schema_k8sio_api_networking_v1_IPAddressList(ref), + "k8s.io/api/networking/v1.IPAddressSpec": schema_k8sio_api_networking_v1_IPAddressSpec(ref), + "k8s.io/api/networking/v1.IPBlock": schema_k8sio_api_networking_v1_IPBlock(ref), + "k8s.io/api/networking/v1.Ingress": schema_k8sio_api_networking_v1_Ingress(ref), + "k8s.io/api/networking/v1.IngressBackend": schema_k8sio_api_networking_v1_IngressBackend(ref), + "k8s.io/api/networking/v1.IngressClass": schema_k8sio_api_networking_v1_IngressClass(ref), + "k8s.io/api/networking/v1.IngressClassList": schema_k8sio_api_networking_v1_IngressClassList(ref), + "k8s.io/api/networking/v1.IngressClassParametersReference": schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), + "k8s.io/api/networking/v1.IngressClassSpec": schema_k8sio_api_networking_v1_IngressClassSpec(ref), + "k8s.io/api/networking/v1.IngressList": schema_k8sio_api_networking_v1_IngressList(ref), + "k8s.io/api/networking/v1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), + "k8s.io/api/networking/v1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), + "k8s.io/api/networking/v1.IngressPortStatus": schema_k8sio_api_networking_v1_IngressPortStatus(ref), + "k8s.io/api/networking/v1.IngressRule": schema_k8sio_api_networking_v1_IngressRule(ref), + "k8s.io/api/networking/v1.IngressRuleValue": schema_k8sio_api_networking_v1_IngressRuleValue(ref), + "k8s.io/api/networking/v1.IngressServiceBackend": schema_k8sio_api_networking_v1_IngressServiceBackend(ref), + "k8s.io/api/networking/v1.IngressSpec": schema_k8sio_api_networking_v1_IngressSpec(ref), + "k8s.io/api/networking/v1.IngressStatus": schema_k8sio_api_networking_v1_IngressStatus(ref), + "k8s.io/api/networking/v1.IngressTLS": schema_k8sio_api_networking_v1_IngressTLS(ref), + "k8s.io/api/networking/v1.NetworkPolicy": schema_k8sio_api_networking_v1_NetworkPolicy(ref), + "k8s.io/api/networking/v1.NetworkPolicyEgressRule": schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), + "k8s.io/api/networking/v1.NetworkPolicyIngressRule": schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), + "k8s.io/api/networking/v1.NetworkPolicyList": schema_k8sio_api_networking_v1_NetworkPolicyList(ref), + "k8s.io/api/networking/v1.NetworkPolicyPeer": schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), + "k8s.io/api/networking/v1.NetworkPolicyPort": schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), + "k8s.io/api/networking/v1.NetworkPolicySpec": schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), + "k8s.io/api/networking/v1.ParentReference": schema_k8sio_api_networking_v1_ParentReference(ref), + "k8s.io/api/networking/v1.ServiceBackendPort": schema_k8sio_api_networking_v1_ServiceBackendPort(ref), + "k8s.io/api/networking/v1.ServiceCIDR": schema_k8sio_api_networking_v1_ServiceCIDR(ref), + "k8s.io/api/networking/v1.ServiceCIDRList": schema_k8sio_api_networking_v1_ServiceCIDRList(ref), + "k8s.io/api/networking/v1.ServiceCIDRSpec": schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref), + "k8s.io/api/networking/v1.ServiceCIDRStatus": schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref), + "k8s.io/api/networking/v1beta1.HTTPIngressPath": schema_k8sio_api_networking_v1beta1_HTTPIngressPath(ref), + "k8s.io/api/networking/v1beta1.HTTPIngressRuleValue": schema_k8sio_api_networking_v1beta1_HTTPIngressRuleValue(ref), + "k8s.io/api/networking/v1beta1.IPAddress": schema_k8sio_api_networking_v1beta1_IPAddress(ref), + "k8s.io/api/networking/v1beta1.IPAddressList": schema_k8sio_api_networking_v1beta1_IPAddressList(ref), + "k8s.io/api/networking/v1beta1.IPAddressSpec": schema_k8sio_api_networking_v1beta1_IPAddressSpec(ref), + "k8s.io/api/networking/v1beta1.Ingress": schema_k8sio_api_networking_v1beta1_Ingress(ref), + "k8s.io/api/networking/v1beta1.IngressBackend": schema_k8sio_api_networking_v1beta1_IngressBackend(ref), + "k8s.io/api/networking/v1beta1.IngressClass": schema_k8sio_api_networking_v1beta1_IngressClass(ref), + "k8s.io/api/networking/v1beta1.IngressClassList": schema_k8sio_api_networking_v1beta1_IngressClassList(ref), + "k8s.io/api/networking/v1beta1.IngressClassParametersReference": schema_k8sio_api_networking_v1beta1_IngressClassParametersReference(ref), + "k8s.io/api/networking/v1beta1.IngressClassSpec": schema_k8sio_api_networking_v1beta1_IngressClassSpec(ref), + "k8s.io/api/networking/v1beta1.IngressList": schema_k8sio_api_networking_v1beta1_IngressList(ref), + "k8s.io/api/networking/v1beta1.IngressLoadBalancerIngress": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerIngress(ref), + "k8s.io/api/networking/v1beta1.IngressLoadBalancerStatus": schema_k8sio_api_networking_v1beta1_IngressLoadBalancerStatus(ref), + "k8s.io/api/networking/v1beta1.IngressPortStatus": schema_k8sio_api_networking_v1beta1_IngressPortStatus(ref), + "k8s.io/api/networking/v1beta1.IngressRule": schema_k8sio_api_networking_v1beta1_IngressRule(ref), + "k8s.io/api/networking/v1beta1.IngressRuleValue": schema_k8sio_api_networking_v1beta1_IngressRuleValue(ref), + "k8s.io/api/networking/v1beta1.IngressSpec": schema_k8sio_api_networking_v1beta1_IngressSpec(ref), + "k8s.io/api/networking/v1beta1.IngressStatus": schema_k8sio_api_networking_v1beta1_IngressStatus(ref), + "k8s.io/api/networking/v1beta1.IngressTLS": schema_k8sio_api_networking_v1beta1_IngressTLS(ref), + "k8s.io/api/networking/v1beta1.ParentReference": schema_k8sio_api_networking_v1beta1_ParentReference(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDR": schema_k8sio_api_networking_v1beta1_ServiceCIDR(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDRList": schema_k8sio_api_networking_v1beta1_ServiceCIDRList(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDRSpec": schema_k8sio_api_networking_v1beta1_ServiceCIDRSpec(ref), + "k8s.io/api/networking/v1beta1.ServiceCIDRStatus": schema_k8sio_api_networking_v1beta1_ServiceCIDRStatus(ref), + "k8s.io/api/node/v1alpha1.Overhead": schema_k8sio_api_node_v1alpha1_Overhead(ref), + "k8s.io/api/node/v1alpha1.RuntimeClass": schema_k8sio_api_node_v1alpha1_RuntimeClass(ref), + "k8s.io/api/node/v1alpha1.RuntimeClassList": schema_k8sio_api_node_v1alpha1_RuntimeClassList(ref), + "k8s.io/api/node/v1alpha1.RuntimeClassSpec": schema_k8sio_api_node_v1alpha1_RuntimeClassSpec(ref), + "k8s.io/api/node/v1alpha1.Scheduling": schema_k8sio_api_node_v1alpha1_Scheduling(ref), + "k8s.io/api/node/v1beta1.Overhead": schema_k8sio_api_node_v1beta1_Overhead(ref), + "k8s.io/api/node/v1beta1.RuntimeClass": schema_k8sio_api_node_v1beta1_RuntimeClass(ref), + "k8s.io/api/node/v1beta1.RuntimeClassList": schema_k8sio_api_node_v1beta1_RuntimeClassList(ref), + "k8s.io/api/node/v1beta1.Scheduling": schema_k8sio_api_node_v1beta1_Scheduling(ref), + "k8s.io/api/policy/v1beta1.Eviction": schema_k8sio_api_policy_v1beta1_Eviction(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudget": schema_k8sio_api_policy_v1beta1_PodDisruptionBudget(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudgetList": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetList(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudgetSpec": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetSpec(ref), + "k8s.io/api/policy/v1beta1.PodDisruptionBudgetStatus": schema_k8sio_api_policy_v1beta1_PodDisruptionBudgetStatus(ref), + "k8s.io/api/rbac/v1.AggregationRule": schema_k8sio_api_rbac_v1_AggregationRule(ref), + "k8s.io/api/rbac/v1.ClusterRole": schema_k8sio_api_rbac_v1_ClusterRole(ref), + "k8s.io/api/rbac/v1.ClusterRoleBinding": schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), + "k8s.io/api/rbac/v1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), + "k8s.io/api/rbac/v1.ClusterRoleList": schema_k8sio_api_rbac_v1_ClusterRoleList(ref), + "k8s.io/api/rbac/v1.PolicyRule": schema_k8sio_api_rbac_v1_PolicyRule(ref), + "k8s.io/api/rbac/v1.Role": schema_k8sio_api_rbac_v1_Role(ref), + "k8s.io/api/rbac/v1.RoleBinding": schema_k8sio_api_rbac_v1_RoleBinding(ref), + "k8s.io/api/rbac/v1.RoleBindingList": schema_k8sio_api_rbac_v1_RoleBindingList(ref), + "k8s.io/api/rbac/v1.RoleList": schema_k8sio_api_rbac_v1_RoleList(ref), + "k8s.io/api/rbac/v1.RoleRef": schema_k8sio_api_rbac_v1_RoleRef(ref), + "k8s.io/api/rbac/v1.Subject": schema_k8sio_api_rbac_v1_Subject(ref), + "k8s.io/api/rbac/v1alpha1.AggregationRule": schema_k8sio_api_rbac_v1alpha1_AggregationRule(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRole": schema_k8sio_api_rbac_v1alpha1_ClusterRole(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRoleBinding": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBinding(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleBindingList(ref), + "k8s.io/api/rbac/v1alpha1.ClusterRoleList": schema_k8sio_api_rbac_v1alpha1_ClusterRoleList(ref), + "k8s.io/api/rbac/v1alpha1.PolicyRule": schema_k8sio_api_rbac_v1alpha1_PolicyRule(ref), + "k8s.io/api/rbac/v1alpha1.Role": schema_k8sio_api_rbac_v1alpha1_Role(ref), + "k8s.io/api/rbac/v1alpha1.RoleBinding": schema_k8sio_api_rbac_v1alpha1_RoleBinding(ref), + "k8s.io/api/rbac/v1alpha1.RoleBindingList": schema_k8sio_api_rbac_v1alpha1_RoleBindingList(ref), + "k8s.io/api/rbac/v1alpha1.RoleList": schema_k8sio_api_rbac_v1alpha1_RoleList(ref), + "k8s.io/api/rbac/v1alpha1.RoleRef": schema_k8sio_api_rbac_v1alpha1_RoleRef(ref), + "k8s.io/api/rbac/v1alpha1.Subject": schema_k8sio_api_rbac_v1alpha1_Subject(ref), + "k8s.io/api/rbac/v1beta1.AggregationRule": schema_k8sio_api_rbac_v1beta1_AggregationRule(ref), + "k8s.io/api/rbac/v1beta1.ClusterRole": schema_k8sio_api_rbac_v1beta1_ClusterRole(ref), + "k8s.io/api/rbac/v1beta1.ClusterRoleBinding": schema_k8sio_api_rbac_v1beta1_ClusterRoleBinding(ref), + "k8s.io/api/rbac/v1beta1.ClusterRoleBindingList": schema_k8sio_api_rbac_v1beta1_ClusterRoleBindingList(ref), + "k8s.io/api/rbac/v1beta1.ClusterRoleList": schema_k8sio_api_rbac_v1beta1_ClusterRoleList(ref), + "k8s.io/api/rbac/v1beta1.PolicyRule": schema_k8sio_api_rbac_v1beta1_PolicyRule(ref), + "k8s.io/api/rbac/v1beta1.Role": schema_k8sio_api_rbac_v1beta1_Role(ref), + "k8s.io/api/rbac/v1beta1.RoleBinding": schema_k8sio_api_rbac_v1beta1_RoleBinding(ref), + "k8s.io/api/rbac/v1beta1.RoleBindingList": schema_k8sio_api_rbac_v1beta1_RoleBindingList(ref), + "k8s.io/api/rbac/v1beta1.RoleList": schema_k8sio_api_rbac_v1beta1_RoleList(ref), + "k8s.io/api/rbac/v1beta1.RoleRef": schema_k8sio_api_rbac_v1beta1_RoleRef(ref), + "k8s.io/api/rbac/v1beta1.Subject": schema_k8sio_api_rbac_v1beta1_Subject(ref), + "k8s.io/api/scheduling/v1.PriorityClass": schema_k8sio_api_scheduling_v1_PriorityClass(ref), + "k8s.io/api/scheduling/v1.PriorityClassList": schema_k8sio_api_scheduling_v1_PriorityClassList(ref), + "k8s.io/api/scheduling/v1alpha1.PriorityClass": schema_k8sio_api_scheduling_v1alpha1_PriorityClass(ref), + "k8s.io/api/scheduling/v1alpha1.PriorityClassList": schema_k8sio_api_scheduling_v1alpha1_PriorityClassList(ref), + "k8s.io/api/scheduling/v1beta1.PriorityClass": schema_k8sio_api_scheduling_v1beta1_PriorityClass(ref), + "k8s.io/api/scheduling/v1beta1.PriorityClassList": schema_k8sio_api_scheduling_v1beta1_PriorityClassList(ref), + "k8s.io/api/storage/v1.CSIDriver": schema_k8sio_api_storage_v1_CSIDriver(ref), + "k8s.io/api/storage/v1.CSIDriverList": schema_k8sio_api_storage_v1_CSIDriverList(ref), + "k8s.io/api/storage/v1.CSIDriverSpec": schema_k8sio_api_storage_v1_CSIDriverSpec(ref), + "k8s.io/api/storage/v1.CSINode": schema_k8sio_api_storage_v1_CSINode(ref), + "k8s.io/api/storage/v1.CSINodeDriver": schema_k8sio_api_storage_v1_CSINodeDriver(ref), + "k8s.io/api/storage/v1.CSINodeList": schema_k8sio_api_storage_v1_CSINodeList(ref), + "k8s.io/api/storage/v1.CSINodeSpec": schema_k8sio_api_storage_v1_CSINodeSpec(ref), + "k8s.io/api/storage/v1.CSIStorageCapacity": schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), + "k8s.io/api/storage/v1.CSIStorageCapacityList": schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), + "k8s.io/api/storage/v1.StorageClass": schema_k8sio_api_storage_v1_StorageClass(ref), + "k8s.io/api/storage/v1.StorageClassList": schema_k8sio_api_storage_v1_StorageClassList(ref), + "k8s.io/api/storage/v1.TokenRequest": schema_k8sio_api_storage_v1_TokenRequest(ref), + "k8s.io/api/storage/v1.VolumeAttachment": schema_k8sio_api_storage_v1_VolumeAttachment(ref), + "k8s.io/api/storage/v1.VolumeAttachmentList": schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), + "k8s.io/api/storage/v1.VolumeAttachmentSource": schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), + "k8s.io/api/storage/v1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), + "k8s.io/api/storage/v1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), + "k8s.io/api/storage/v1.VolumeAttributesClass": schema_k8sio_api_storage_v1_VolumeAttributesClass(ref), + "k8s.io/api/storage/v1.VolumeAttributesClassList": schema_k8sio_api_storage_v1_VolumeAttributesClassList(ref), + "k8s.io/api/storage/v1.VolumeError": schema_k8sio_api_storage_v1_VolumeError(ref), + "k8s.io/api/storage/v1.VolumeNodeResources": schema_k8sio_api_storage_v1_VolumeNodeResources(ref), + "k8s.io/api/storage/v1alpha1.CSIStorageCapacity": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacity(ref), + "k8s.io/api/storage/v1alpha1.CSIStorageCapacityList": schema_k8sio_api_storage_v1alpha1_CSIStorageCapacityList(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachment": schema_k8sio_api_storage_v1alpha1_VolumeAttachment(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentList": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentList(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentSource": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSource(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentSpec(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1alpha1_VolumeAttachmentStatus(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttributesClass": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClass(ref), + "k8s.io/api/storage/v1alpha1.VolumeAttributesClassList": schema_k8sio_api_storage_v1alpha1_VolumeAttributesClassList(ref), + "k8s.io/api/storage/v1alpha1.VolumeError": schema_k8sio_api_storage_v1alpha1_VolumeError(ref), + "k8s.io/api/storage/v1beta1.CSIDriver": schema_k8sio_api_storage_v1beta1_CSIDriver(ref), + "k8s.io/api/storage/v1beta1.CSIDriverList": schema_k8sio_api_storage_v1beta1_CSIDriverList(ref), + "k8s.io/api/storage/v1beta1.CSIDriverSpec": schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref), + "k8s.io/api/storage/v1beta1.CSINode": schema_k8sio_api_storage_v1beta1_CSINode(ref), + "k8s.io/api/storage/v1beta1.CSINodeDriver": schema_k8sio_api_storage_v1beta1_CSINodeDriver(ref), + "k8s.io/api/storage/v1beta1.CSINodeList": schema_k8sio_api_storage_v1beta1_CSINodeList(ref), + "k8s.io/api/storage/v1beta1.CSINodeSpec": schema_k8sio_api_storage_v1beta1_CSINodeSpec(ref), + "k8s.io/api/storage/v1beta1.CSIStorageCapacity": schema_k8sio_api_storage_v1beta1_CSIStorageCapacity(ref), + "k8s.io/api/storage/v1beta1.CSIStorageCapacityList": schema_k8sio_api_storage_v1beta1_CSIStorageCapacityList(ref), + "k8s.io/api/storage/v1beta1.StorageClass": schema_k8sio_api_storage_v1beta1_StorageClass(ref), + "k8s.io/api/storage/v1beta1.StorageClassList": schema_k8sio_api_storage_v1beta1_StorageClassList(ref), + "k8s.io/api/storage/v1beta1.TokenRequest": schema_k8sio_api_storage_v1beta1_TokenRequest(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachment": schema_k8sio_api_storage_v1beta1_VolumeAttachment(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentList": schema_k8sio_api_storage_v1beta1_VolumeAttachmentList(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentSource": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSource(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentSpec": schema_k8sio_api_storage_v1beta1_VolumeAttachmentSpec(ref), + "k8s.io/api/storage/v1beta1.VolumeAttachmentStatus": schema_k8sio_api_storage_v1beta1_VolumeAttachmentStatus(ref), + "k8s.io/api/storage/v1beta1.VolumeAttributesClass": schema_k8sio_api_storage_v1beta1_VolumeAttributesClass(ref), + "k8s.io/api/storage/v1beta1.VolumeAttributesClassList": schema_k8sio_api_storage_v1beta1_VolumeAttributesClassList(ref), + "k8s.io/api/storage/v1beta1.VolumeError": schema_k8sio_api_storage_v1beta1_VolumeError(ref), + "k8s.io/api/storage/v1beta1.VolumeNodeResources": schema_k8sio_api_storage_v1beta1_VolumeNodeResources(ref), + "k8s.io/apimachinery/pkg/api/resource.Quantity": schema_apimachinery_pkg_api_resource_Quantity(ref), + "k8s.io/apimachinery/pkg/api/resource.int64Amount": schema_apimachinery_pkg_api_resource_int64Amount(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldSelectorRequirement": schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), + "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + "k8s.io/apimachinery/pkg/util/intstr.IntOrString": schema_apimachinery_pkg_util_intstr_IntOrString(ref), + "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.Cluster": schema_pkg_apis_clientauthentication_v1beta1_Cluster(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredential": schema_pkg_apis_clientauthentication_v1beta1_ExecCredential(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialSpec": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialSpec(ref), + "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1.ExecCredentialStatus": schema_pkg_apis_clientauthentication_v1beta1_ExecCredentialStatus(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics": schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics": schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetricsList": schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics": schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), + "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetricsList": schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), } } @@ -2430,6 +2419,41 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCall } } +func schema_loft_sh_admin_apis_pkg_licenseapi_PlatformDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PlatformDatabase contains information about the local platform database installation", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "isReady": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "creationTimestamp": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "latestUpdateTimestamp": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"isReady", "creationTimestamp", "latestUpdateTimestamp"}, + }, + }, + } +} + func schema_loft_sh_admin_apis_pkg_licenseapi_PriceTier(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -2548,6 +2572,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", + }, + }, }, }, }, @@ -6349,6 +6380,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: "", + }, + }, }, }, }, @@ -7367,6 +7405,13 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"), }, }, + "authenticateVersionEndpoint": { + SchemaProps: spec.SchemaProps{ + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"analyticsSpec"}, }, @@ -7443,6 +7488,13 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.Reference Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AgentCostControlConfig"), }, }, + "authenticateVersionEndpoint": { + SchemaProps: spec.SchemaProps{ + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, + Format: "", + }, + }, }, Required: []string{"analyticsSpec"}, }, @@ -8600,7 +8652,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: "", }, @@ -8624,6 +8676,13 @@ 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.", @@ -8636,6 +8695,12 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl"), }, }, + "platformDB": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDB holds the settings related to the postgres database that platform uses to store data", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.PlatformDB"), + }, + }, "imageBuilder": { SchemaProps: spec.SchemaProps{ Description: "ImageBuilder holds the settings related to the image builder", @@ -8646,7 +8711,7 @@ func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) co }, }, 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.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Apps", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Audit", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Authentication", "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cloud", "github.com/loft-sh/api/v4/pkg/apis/management/v1.CostControl", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ImageBuilder", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDC", "github.com/loft-sh/api/v4/pkg/apis/management/v1.PlatformDB", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettingsConfig"}, } } @@ -9248,11 +9313,11 @@ func schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref common.ReferenceC } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(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: "DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information", + Description: "DirectClusterEndpointToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9278,24 +9343,24 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.Referenc "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9328,7 +9393,7 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken"), }, }, }, @@ -9339,95 +9404,62 @@ func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateSpec holds the specification", + Description: "DirectClusterEndpointTokenSpec holds the object specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes the environment template", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "template": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod environments", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + Description: "The time to life for this access token in seconds", + Type: []string{"integer"}, + Format: "int64", }, }, - "versions": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion"), - }, - }, - }, + Description: "Scope is the optional scope of the direct cluster endpoint", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", + Description: "DirectClusterEndpointTokenStatus holds the object status", Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(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{ - Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", + Description: "Event holds an event", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9453,24 +9485,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(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{ @@ -9493,29 +9525,48 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref common.Refe "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "taskId": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that should get cancelled", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Event"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "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_DevPodWorkspaceInstanceCancelList(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{ @@ -9531,39 +9582,148 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common. Format: "", }, }, - "metadata": { + "level": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "AuditLevel at which event was generated", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "auditID": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Unique audit ID, generated for each request.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "stage": { + SchemaProps: spec.SchemaProps{ + Description: "Stage of the request handling when this event instance was generated.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "requestURI": { + SchemaProps: spec.SchemaProps{ + Description: "RequestURI is the request URI as sent by the client to a server.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "verb": { + SchemaProps: spec.SchemaProps{ + Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "Authenticated user information.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + }, + }, + "impersonatedUser": { + SchemaProps: spec.SchemaProps{ + Description: "Impersonated user information.", + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + }, + }, + "sourceIPs": { + SchemaProps: spec.SchemaProps{ + Description: "Source IPs, from where the request originated and intermediate proxies.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "userAgent": { + SchemaProps: spec.SchemaProps{ + Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", + Type: []string{"string"}, + Format: "", + }, + }, + "objectRef": { + SchemaProps: spec.SchemaProps{ + Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference"), + }, + }, + "responseStatus": { + SchemaProps: spec.SchemaProps{ + Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Status"), + }, + }, + "requestObject": { + SchemaProps: spec.SchemaProps{ + Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), + }, + }, + "responseObject": { + SchemaProps: spec.SchemaProps{ + Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), + }, + }, + "requestReceivedTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached the apiserver.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "stageTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached current audit stage.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.Status", "k8s.io/apimachinery/pkg/runtime.Unknown"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Feature holds the feature information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9585,15 +9745,27 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref common.Re Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(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{ @@ -9626,7 +9798,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature"), }, }, }, @@ -9637,96 +9809,181 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref commo }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "FeatureSpec holds the specification", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeatureStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older Loft version doesn't know a newer feature but it will still be received and still needs to be rendered in the license view", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "preview": { + SchemaProps: spec.SchemaProps{ + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", + }, + }, + "allowBefore": { + SchemaProps: spec.SchemaProps{ + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", Type: []string{"string"}, Format: "", }, }, - "path": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Path is the path to download", + Description: "Status shows the status of the feature (see type FeatureStatus)", + Type: []string{"string"}, + Format: "", + }, + }, + "module": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the module that this feature belongs to", Type: []string{"string"}, Format: "", }, }, + "internal": { + SchemaProps: spec.SchemaProps{ + Description: "Internal marks internal features that should not be shown on the license view", + Type: []string{"boolean"}, + Format: "", + }, + }, + "used": { + SchemaProps: spec.SchemaProps{ + Description: "Used marks features that are currently used in the product", + Type: []string{"boolean"}, + Format: "", + }, + }, }, + Required: []string{"name"}, }, }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "GroupResources represents resource kinds in an API group.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' matches pods. 'pods/log' matches the log subresource of pods. '*' matches all resources and their subresources. 'pods/*' matches all subresources of pods. '*/scale' matches all scale subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "items": { + "resourceNames": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ImageBuilder(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { + SchemaProps: spec.SchemaProps{ + Description: "Enabled specifies whether the remote image builder should be available. If it's not available building ad-hoc images from a devcontainer.json is not supported", + Type: []string{"boolean"}, + Format: "", + }, + }, + "replicas": { + SchemaProps: spec.SchemaProps{ + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources are compute resource required by the buildkit containers", + Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ResourceRequirements"}, + } +} + +func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressAuthToken holds the object information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9748,15 +10005,27 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref common.Referen 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"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(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{ @@ -9789,7 +10058,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(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.DevPodWorkspaceInstanceLog"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken"), }, }, }, @@ -9800,42 +10069,48 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref common.Ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "IngressAuthTokenSpec holds the object specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "host": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Host is the host where the UI should get redirected", Type: []string{"string"}, Format: "", }, }, - "taskID": { + "signature": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", + Description: "Signature is the signature of the agent for the host", Type: []string{"string"}, Format: "", }, }, - "follow": { + }, + }, + }, + } +} + +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: "Follow the log stream of the task. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -9844,201 +10119,219 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref common. } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceSpec holds the specification", + Description: "Kiosk holds the kiosk types", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "presetRef": { - SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), - }, - }, - "templateRef": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "environmentRef": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec"), }, }, - "template": { + "status": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), }, }, - "target": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Target is the reference to the cluster holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "runnerRef": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk"), }, }, }, }, }, - "preventWakeUpOnConnection": { - SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_KioskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resolvedTarget": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Description: "ResolvedTarget is the resolved target of the workspace", + Description: "cluster.loft.sh", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease"), }, }, - "lastWorkspaceStatus": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), }, }, - "phase": { + "chartInfo": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), }, }, - "reason": { + "storageClusterQuota": { 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: "storage.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota"), }, }, - "message": { + "UISettings": { 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: "ui.loft.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), }, }, - "conditions": { + "license": { 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"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), }, }, - "instance": { + "nodeProviderBCMNodeWithResources": { 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: "autoscaling", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), }, }, - "ignoreReconciliation": { + "nodeProviderBCMGetResourcesResult": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult"), }, }, - "kubernetes": { + "nodeProviderBCMTestConnectionResult": { SchemaProps: spec.SchemaProps{ - Description: "Kubernetes is the status of the workspace on kubernetes", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult"), }, }, - "sleepModeConfig": { + "nodeProviderCalculateCostResult": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the workspace. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderCalculateCostResult"), + }, + }, + "nodeProviderTerraformValidateResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderTerraformValidateResult"), + }, + }, + "nodeProviderExecResult": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecResult"), + }, + }, + "nodeClaimData": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimData"), + }, + }, + "nodeEnvironmentData": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentData"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.HelmRelease", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota", "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimData", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentData", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderCalculateCostResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecResult", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderTerraformValidateResult", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(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{ Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "License holds the license information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -10063,24 +10356,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref common.Refere "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(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{ @@ -10113,7 +10406,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), }, }, }, @@ -10124,104 +10417,60 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.Re }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceStop", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(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{ - Type: []string{"object"}, + Description: "LicenseRequest holds license request information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "options": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "taskId": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "id": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ID is the id of the task", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "type": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Type is the type of the task", - Type: []string{"string"}, - Format: "", + Description: "Spec is the admin request spec (the input for the request).", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Description: "Status is the status of the task", - Type: []string{"string"}, - Format: "", - }, - }, - "result": { - SchemaProps: spec.SchemaProps{ - Description: "Result is the result of the task", - Type: []string{"string"}, - Format: "byte", - }, - }, - "logs": { - SchemaProps: spec.SchemaProps{ - Description: "Logs is the compressed logs of the task", - Type: []string{"string"}, - Format: "byte", - }, - }, - "createdAt": { - SchemaProps: spec.SchemaProps{ - Description: "CreatedAt is the timestamp when the task was created", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Status is the admin request output (the output or result of the request).", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(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{ @@ -10244,275 +10493,136 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref common.Refer "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "tasks": { + "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.DevPodWorkspaceInstanceTask"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTask", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "URL is the url for the request.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "input": { 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.DevPodWorkspaceInstanceTasks"), - }, - }, - }, + 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"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "taskID": { + "output": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", - Type: []string{"string"}, - Format: "", + Description: "Output is where the request output is stored.", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "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"), - }, - }, - "state": { - SchemaProps: spec.SchemaProps{ - Description: "State holds the workspaces state as given by 'devpod export'", - Type: []string{"string"}, - Format: "", - }, - }, - "workspace": { - SchemaProps: spec.SchemaProps{ - Description: "Workspace holds the workspace's instance object data", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the workspace instance's template used to create it. This is the raw template, not the rendered one.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate"), - }, - }, - "pods": { - SchemaProps: spec.SchemaProps{ - Description: "Pods is a list of pod objects that are linked to the workspace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Pod"), - }, - }, - }, - }, - }, - "pvcs": { - SchemaProps: spec.SchemaProps{ - Description: "PVCs is a list of PVC objects that are linked to the workspace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), - }, - }, - }, - }, - }, - "netmaps": { - SchemaProps: spec.SchemaProps{ - Description: "Netmaps is a list of netmaps that are linked to the workspace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "errors": { - SchemaProps: spec.SchemaProps{ - Description: "Errors is a list of errors that occurred while trying to collect informations for troubleshooting.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstance", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate", "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "license": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "License is the license data received from the license server.", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.License"), }, }, - "items": { + "resourceUsage": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + 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/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot"), + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), }, }, }, }, }, + "platformDatabase": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDatabase shows information about the platform database installation", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.PlatformDatabase"), + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/admin-apis/pkg/licenseapi.License", "github.com/loft-sh/admin-apis/pkg/licenseapi.PlatformDatabase", "github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "License Token holds the license token information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -10537,24 +10647,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref common.Referenc "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10587,7 +10697,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(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.DevPodWorkspaceInstanceUp"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken"), }, }, }, @@ -10598,28 +10708,26 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceInstanceUp", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "debug": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "Debug includes debug logs.", - Type: []string{"boolean"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "options": { + "payload": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -10628,30 +10736,30 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref common.Refe } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "taskId": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePreset(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: "DevPodWorkspacePreset", + Description: "LoftUpgrade holds the upgrade information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10677,24 +10785,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCal "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePresetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(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{ @@ -10727,7 +10835,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade"), }, }, }, @@ -10738,135 +10846,152 @@ func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref common.Referenc }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(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: "DevPodWorkspacePresetSource", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Git stores path to git repo to use as workspace source", + Description: "If specified, updated the release in the given namespace", Type: []string{"string"}, Format: "", }, }, - "image": { + "release": { SchemaProps: spec.SchemaProps{ - Description: "Image stores container image to use as workspace source", + 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_DevPodWorkspacePresetSpec(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: "DevPodWorkspacePresetSpec holds the specification", - 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{ - "displayName": { + "dayOfWeek": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + 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: "", }, }, - "source": { - SchemaProps: spec.SchemaProps{ - Description: "Source stores inline path of project source", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), - }, - }, - "infrastructureRef": { - SchemaProps: spec.SchemaProps{ - Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { + "timeWindow": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + 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: "", }, }, - "useProjectGitCredentials": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, + Description: "Namespace of the referenced object", + Type: []string{"string"}, Format: "", }, }, - "owner": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "assignedVia": { 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.DevPodWorkspacePresetVersion"), - }, - }, - }, + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NamespacedNameArgs(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"namespace", "name"}, }, }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(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: "DevPodWorkspaceTemplate holds the information", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10892,24 +11017,66 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_NodeClaimData(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "userData": { + SchemaProps: spec.SchemaProps{ + Description: "UserData that should be used to start the node.", + Type: []string{"string"}, + Format: "", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + 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{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(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{ @@ -10942,7 +11109,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim"), }, }, }, @@ -10953,110 +11120,199 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.Refere }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateSpec holds the specification", + Description: "NodeClaimSpec defines spec of node claim.", 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": { + "taints": { 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: "Taints will be applied to the NodeClaim's node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Taint"), + }, + }, + }, }, }, - "parameters": { + "startupTaints": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("k8s.io/api/core/v1.Taint"), }, }, }, }, }, - "template": { + "kubeletArgs": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "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: "", + }, + }, + }, }, }, - "versions": { + "desiredCapacity": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + 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.DevPodWorkspaceTemplateVersion"), + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, }, }, }, - "access": { + "requirements": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + 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/storage/v1.Access"), + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties are extra properties for the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "typeRef": { + SchemaProps: spec.SchemaProps{ + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, }, + Required: []string{"providerRef", "vClusterRef"}, }, }, 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"}, + "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(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: "DevPodWorkspaceTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase is the current lifecycle phase of the NodeClaim.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointToken(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: "DirectClusterEndpointToken holds the object information", + Description: "NodeEnvironment holds the node environment for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11082,24 +11338,66 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.Referen "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironmentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentData(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "outputs": { + SchemaProps: spec.SchemaProps{ + Description: "Outputs of the node environment.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform state of the node environment.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "operations": { + SchemaProps: spec.SchemaProps{ + Description: "Operations that were applied to the node environment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Operation"}, + } +} + +func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11132,7 +11430,7 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.Ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironment"), }, }, }, @@ -11143,62 +11441,118 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.Ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.DirectClusterEndpointToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeEnvironment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointTokenSpec holds the object specification", + Description: "NodeEnvironmentSpec defines spec of node environment.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ttl": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access token in seconds", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "scope": { + Description: "Properties are the properties for the NodeEnvironment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Scope is the optional scope of the direct cluster endpoint", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node environment is a control plane environment. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"providerRef", "vClusterRef"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointTokenStatus holds the object status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "phase": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_Event(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: "Event holds an event", + 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": { @@ -11224,160 +11578,80 @@ func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.Op "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.EventStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_EventList(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("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), + }, + }, + }, }, }, - "items": { + "nodeGroups": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Event"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeGroup"), }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"nodes", "nodeGroups"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_EventSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "EventSpec holds the specification", - Type: []string{"object"}, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeGroup", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"}, } } -func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "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": { - SchemaProps: spec.SchemaProps{ - Description: "RequestURI is the request URI as sent by the client to a server.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "verb": { - SchemaProps: spec.SchemaProps{ - Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "Authenticated user information.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), - }, - }, - "impersonatedUser": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Impersonated user information.", - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "sourceIPs": { + "nodes": { SchemaProps: spec.SchemaProps{ - Description: "Source IPs, from where the request originated and intermediate proxies.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11389,80 +11663,100 @@ func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) com }, }, }, - "userAgent": { - SchemaProps: spec.SchemaProps{ - Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", - Type: []string{"string"}, - Format: "", - }, - }, - "objectRef": { - SchemaProps: spec.SchemaProps{ - Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference"), - }, - }, - "responseStatus": { - SchemaProps: spec.SchemaProps{ - Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Status"), - }, - }, - "requestObject": { + }, + Required: []string{"name", "nodes"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "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"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "responseObject": { + "resources": { 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"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "requestReceivedTimestamp": { + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "success": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached the apiserver.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "stageTimestamp": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached current audit stage.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "annotations": { + }, + Required: []string{"success", "message"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cost": { SchemaProps: spec.SchemaProps{ - Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, }, - Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, + Required: []string{"cost"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.Status", "k8s.io/apimachinery/pkg/runtime.Unknown"}, } } -func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Feature holds the feature information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11487,24 +11781,25 @@ func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common. "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecStatus"), }, }, }, + Required: []string{"spec"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.FeatureStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExecStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_FeatureList(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{ @@ -11537,7 +11832,7 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExec"), }, }, }, @@ -11548,223 +11843,86 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Feature", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "FeatureSpec holds the specification", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "FeatureStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older 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: "", - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "preview": { - SchemaProps: spec.SchemaProps{ - Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", - Type: []string{"boolean"}, - Format: "", - }, - }, - "allowBefore": { - SchemaProps: spec.SchemaProps{ - Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", - Type: []string{"string"}, - Format: "", - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", - Type: []string{"string"}, - Format: "", - }, - }, - "module": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the module that this feature belongs to", - Type: []string{"string"}, - Format: "", - }, - }, - "internal": { - SchemaProps: spec.SchemaProps{ - Description: "Internal marks internal features that should not be shown on the license view", - Type: []string{"boolean"}, - Format: "", - }, - }, - "used": { - SchemaProps: spec.SchemaProps{ - Description: "Used marks features that are currently used in the product", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderExec", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GroupResources represents resource kinds in an API group.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { - SchemaProps: spec.SchemaProps{ - Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", - Type: []string{"string"}, - Format: "", - }, - }, - "resources": { + "success": { 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: "", - }, - }, - }, + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "resourceNames": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"success", "message"}, }, }, } } -func schema_pkg_apis_management_v1_ImageBuilder(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{ - "enabled": { + "command": { SchemaProps: spec.SchemaProps{ - Description: "Enabled specifies whether the remote image builder should be available. If it's not available building ad-hoc images from a devcontainer.json is not supported", - Type: []string{"boolean"}, + Description: "Command is the action to perform.", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "resources": { + "args": { SchemaProps: spec.SchemaProps{ - Description: "Resources are compute resource required by the buildkit containers", - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, }, + Required: []string{"command"}, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ResourceRequirements"}, + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_management_v1_IngressAuthToken(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: "IngressAuthToken holds the object information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec"), - }, - }, - "status": { + "result": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus"), + Description: "Result is the output of the executed command.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11797,7 +11955,7 @@ func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider"), }, }, }, @@ -11808,27 +11966,110 @@ func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.IngressAuthToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenSpec holds the object specification", + 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{ - "host": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Host is the host where the UI should get redirected", + 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), + }, + }, + "kubeVirt": { + SchemaProps: spec.SchemaProps{ + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), + }, + }, + "terraform": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"), + }, + }, + "clusterAPI": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterAPI configures a node provider using Cluster API, enabling nodes to be provisioned using Cluster API. This requires the vCluster to be deployed with Cluster API as well.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI"), + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "signature": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"}, + } +} + +func schema_pkg_apis_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: "Signature is the signature of the agent for the host", + Description: "Conditions describe the current state of the platform NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", Type: []string{"string"}, Format: "", }, @@ -11836,33 +12077,43 @@ func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCall }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenStatus holds the object status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "success": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + 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_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Kiosk holds the kiosk types", + Description: "NodeType holds the information of a node type.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11888,24 +12139,24 @@ func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.Op "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.KioskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_KioskList(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{ @@ -11938,7 +12189,7 @@ func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType"), }, }, }, @@ -11949,173 +12200,206 @@ func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Kiosk", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_KioskSpec(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{ - "helmRelease": { + "providerRef": { 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: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", }, }, - "sleepModeConfig": { + "properties": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + 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: "", + }, + }, + }, }, }, - "chartInfo": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.ChartInfo"), + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, }, }, - "storageClusterQuota": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "storage.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.ClusterQuota"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "UISettings": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "ui.loft.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.UISettings"), + Description: "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", }, }, - "license": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, }, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_KioskStatus(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"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "License holds the license information", - Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase is the current lifecycle phase of the NodeType.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "cost": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec"), + 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", }, }, - "status": { + "capacity": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus"), + Description: "Capacity is the capacity of the node type.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements is the calculated requirements based of the properties for the node type.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the node type might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity", "k8s.io/api/core/v1.NodeSelectorRequirement"}, } } -func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "OIDC holds oidc provider relevant information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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: "If true indicates that loft will act as an OIDC server", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "wildcardRedirect": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal 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 indicates that loft will allow wildcard '*' in client redirectURIs", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "clients": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "The clients that are allowed to request loft tokens", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.License"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.License", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, } } -func schema_pkg_apis_management_v1_LicenseRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LicenseRequest holds license request information", + Description: "OIDCClient represents an OIDC client to use with Loft as an OIDC provider", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12140,27 +12424,25 @@ func schema_pkg_apis_management_v1_LicenseRequest(ref common.ReferenceCallback) }, "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("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), }, }, "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("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), }, }, }, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12193,7 +12475,7 @@ func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), }, }, }, @@ -12204,246 +12486,205 @@ func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LicenseRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "OIDCClientSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url for the request.", + Description: "The client name", Type: []string{"string"}, Format: "", }, }, - "input": { - SchemaProps: spec.SchemaProps{ - Description: "Input is the input payload to send to the url.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"}, - } -} - -func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "output": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Output is where the request output is stored.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), + Description: "The client id of the client", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"}, - } -} - -func schema_pkg_apis_management_v1_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "license": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "License is the license data received from the license server.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.License"), + Description: "The client secret of the client", + Type: []string{"string"}, + Format: "", }, }, - "resourceUsage": { + "redirectURIs": { SchemaProps: spec.SchemaProps{ - Description: "ResourceUsage shows the current usage of license limit.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.ResourceCount"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, + Required: []string{"redirectURIs"}, }, }, - 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_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "License Token holds the license token information", + Description: "OIDCClientStatus holds the status", Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec"), - }, - }, - "status": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - 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"}, } } -func schema_pkg_apis_management_v1_LicenseTokenList(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{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "verbs": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"verbs"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LicenseTokenSpec(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{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "startTimestamp": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "StartTimestamp of the operation.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "payload": { + "endTimestamp": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "EndTimestamp of the operation.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_LicenseTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { + "phase": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), + Description: "Phase of the operation.", + Type: []string{"string"}, + Format: "", + }, + }, + "logs": { + SchemaProps: spec.SchemaProps{ + Description: "Logs of the operation.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Description: "Error of the operation.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LoftUpgrade holds the upgrade information", + Description: "OwnedAccessKey is an access key that is owned by the current user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12469,24 +12710,24 @@ func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) com "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_LoftUpgradeList(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{ @@ -12519,7 +12760,7 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, @@ -12530,373 +12771,308 @@ func schema_pkg_apis_management_v1_LoftUpgradeList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_LoftUpgradeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "If specified, updated the release in the given namespace", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "release": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "If specified, uses this as release name", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "version": { + "user": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_LoftUpgradeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_MaintenanceWindow(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "dayOfWeek": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "DayOfWeek specifies the day of the week for the maintenance window. It should be a string representing the day, e.g., \"Monday\", \"Tuesday\", etc.", + Description: "The team this access key refers to", Type: []string{"string"}, Format: "", }, }, - "timeWindow": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "TimeWindow specifies the time window for the maintenance. It should be a string representing the time range in 24-hour format, in UTC, e.g., \"02:00-03:00\".", + Description: "Subject is a generic subject that can be used instead of user or team", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "namespace": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", - Type: []string{"string"}, - Format: "", + 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: "", + }, + }, + }, }, }, - "name": { + "key": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "The actual access key that will be used as a bearer token", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, Format: "", }, }, - "assignedVia": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, - } -} - -func schema_pkg_apis_management_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeClaim holds the node claim for vCluster.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "ttlAfterLastActivity": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Scope defines the scope of the access key.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "identity": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), }, }, - "spec": { + "identityRefresh": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec"), + Description: "The last time the identity was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "status": { + "oidcProvider": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus"), + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Type: []string{"string"}, + Format: "", + }, + }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "lastActivity": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "The last time this access key was used to access the api", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, - "apiVersion": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "StorageClass sets the storage class for the PersistentVolumeClaim used by the platform database statefulSet.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("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.NodeClaim"), - }, - }, - }, - }, - }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeClaimSpec defines spec of node claim.", + Description: "PredefinedApp holds information about a predefined app", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "taints": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "Taints will be applied to the NodeClaim's node.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Taint"), - }, - }, - }, + Description: "Chart holds the repo/chart name of the predefined app", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "startupTaints": { + "initialVersion": { SchemaProps: spec.SchemaProps{ - Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Taint"), - }, - }, - }, + Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", + Type: []string{"string"}, + Format: "", }, }, - "kubeletArgs": { + "initialValues": { 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: "", - }, - }, - }, + 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: "", }, }, - "desiredCapacity": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Holds the cluster names where to display this app", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "requirements": { + "title": { SchemaProps: spec.SchemaProps{ - Description: "Requirements are the requirements for the NodeClaim.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), - }, - }, - }, + Description: "Title is the name that should be displayed for the predefined app. If empty the chart name is used.", + Type: []string{"string"}, + Format: "", }, }, - "nodeTypeRef": { + "iconUrl": { SchemaProps: spec.SchemaProps{ - Description: "NodeTypeRef is the name of the NodeType that this NodeClaim is based on.", + 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: "", }, }, - "vClusterRef": { + "readmeUrl": { SchemaProps: spec.SchemaProps{ - Description: "VClusterRef references source vCluster. This is required.", - Default: "", + 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{"vClusterRef"}, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_NodeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Project holds the Project information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeClaim.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "message": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "conditions": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeClaim.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_NodeProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProvider holds the information of a node provider config. This resource defines various ways a node can be provisioned or configured.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -12921,24 +13097,24 @@ func schema_pkg_apis_management_v1_NodeProvider(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12971,7 +13147,7 @@ func schema_pkg_apis_management_v1_NodeProviderList(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.NodeProvider"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), }, }, }, @@ -12982,88 +13158,53 @@ func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "pods": { - SchemaProps: spec.SchemaProps{ - Description: "Pods configures a node provider based on Kubernetes Pods. This can be used for simpler, pod-based node provisioning for testing or demos.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"), - }, - }, - "bcm": { - SchemaProps: spec.SchemaProps{ - Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM"), - }, - }, - "kubeVirt": { - SchemaProps: spec.SchemaProps{ - Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), - }, - }, - "displayName": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "Chart holds information about a chart that should get deployed", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, } } -func schema_pkg_apis_management_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProviderStatus defines the observed state of NodeProvider.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeProvider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "reason": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", + Description: "Metadata provides information about a chart", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), }, }, - "phase": { + "readme": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeProvider.", + Description: "Readme is the readme of the chart", Type: []string{"string"}, Format: "", }, }, - "message": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Description: "Values are the default values of the chart", Type: []string{"string"}, Format: "", }, @@ -13072,16 +13213,15 @@ func schema_pkg_apis_management_v1_NodeProviderStatus(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, } } -func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeType holds the information of a node type.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13103,27 +13243,37 @@ func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { + "charts": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec"), + Description: "Holds the available helm charts for this cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + }, + }, + }, }, }, - "status": { + "busy": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus"), + Description: "Busy will indicate if the chart parsing is still in progress.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeTypeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13156,7 +13306,7 @@ func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts"), }, }, }, @@ -13167,241 +13317,231 @@ func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "providerRef": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "zone": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Zone is the zone of the node type. If empty, will default to \"global\".", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "region": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Region is the region of the node type.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "properties": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Clusters holds all the allowed clusters", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster"), }, }, }, }, }, - "resources": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "overhead": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "cost": { + "metadata": { 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", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "displayName": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectImportSpace holds project space import information", + 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": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "message": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "capacity": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Capacity is the capacity of the node type.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "conditions": { + "sourceSpace": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the node type might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, + Description: "SourceSpace is the space to import into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), }, }, }, + Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDC holds oidc provider relevant information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "If true indicates that loft will act as an OIDC server", - 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: "", }, }, - "wildcardRedirect": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "If true indicates that loft will allow wildcard '*' in client redirectURIs", - 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: "", }, }, - "clients": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The clients that are allowed to request loft tokens", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDCClient represents an OIDC client to use with Loft as an OIDC provider", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of the space to import", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Cluster name of the cluster the space is running on", 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.OIDCClientSpec"), - }, - }, - "status": { + "importName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClientStatus"), + Description: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - 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"}, } } -func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13434,7 +13574,7 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OIDCClient"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Project"), }, }, }, @@ -13445,105 +13585,142 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDCClientSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "info": { SchemaProps: spec.SchemaProps{ - Description: "The client name", - Type: []string{"string"}, - Format: "", + Description: "Info about the user or team", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, - "clientId": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + } +} + +func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The client id of the client", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "clientSecret": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The client secret of the client", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "redirectURIs": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "teams": { + SchemaProps: spec.SchemaProps{ + Description: "Teams holds all the teams that have access to the cluster", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), + }, + }, + }, + }, + }, + "users": { + SchemaProps: spec.SchemaProps{ + Description: "Users holds all the users that have access to the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), }, }, }, }, }, }, - Required: []string{"redirectURIs"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OIDCClientStatus holds the status", - Type: []string{"object"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("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.ProjectMembers"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ObjectPermission(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMembership(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13570,33 +13747,33 @@ func schema_pkg_apis_management_v1_ObjectPermission(ref common.ReferenceCallback Format: "", }, }, - "verbs": { + "role": { SchemaProps: spec.SchemaProps{ - Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Role is the role given to the member", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"), + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"verbs"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OwnedAccessKey is an access key that is owned by the current user", + Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -13619,27 +13796,23 @@ func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec"), - }, - }, - "status": { + "sourceSpaceInstance": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus"), + Description: "SourceSpaceInstance is the spaceinstance to migrate into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource"), }, }, }, + Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13672,7 +13845,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), }, }, }, @@ -13683,243 +13856,220 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Name of the spaceinstance to migrate", Type: []string{"string"}, Format: "", }, }, - "description": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Namespace of the spaceinstance to migrate", Type: []string{"string"}, Format: "", }, }, - "user": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjectMigrateVirtualClusterInstance holds project vclusterinstance migrate information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "team": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "subject": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "groups": { + "sourceVirtualClusterInstance": { 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: "", - }, - }, - }, + 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"), }, }, - "key": { + }, + Required: []string{"sourceVirtualClusterInstance"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", - Type: []string{"boolean"}, - Format: "", - }, - }, - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "ttlAfterLastActivity": { - SchemaProps: spec.SchemaProps{ - Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, - Format: "", - }, - }, - "scope": { - SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "type": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "identity": { - SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), - }, - }, - "identityRefresh": { - SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "oidcProvider": { - SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), - }, - }, - "parent": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "oidcLogin": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Name of the virtual cluster instance to migrate", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the virtual cluster instance to migrate", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_PredefinedApp(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{ - Description: "PredefinedApp holds information about a predefined app", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds the repo/chart name of the predefined app", - 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: "", }, }, - "initialVersion": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "initialValues": { + "metadata": { 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: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "clusters": { + "nodeProviders": { SchemaProps: spec.SchemaProps{ - Description: "Holds the cluster names where to display this app", + Description: "NodeProviders holds all the allowed node providers for the project", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider"), }, }, }, }, }, - "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": { + "nodeTypes": { 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: "", + Description: "NodeTypes holds all the allowed node types for the project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeType", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_Project(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{ - Description: "Project holds the Project information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13938,34 +14088,77 @@ func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "spec": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSpec"), + Type: []string{"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.ProjectNodeTypes"), + }, + }, + }, }, }, - "status": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectNodeTypes", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_ProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectStatus"), + 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: "", }, }, }, }, }, - 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"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSecret holds the Project Secret information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13990,24 +14183,24 @@ func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfoStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14040,7 +14233,7 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), }, }, }, @@ -14051,170 +14244,289 @@ func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectChartInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSecretSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes a Project secret", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Chart"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSecretStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"), - }, - }, - "readme": { - SchemaProps: spec.SchemaProps{ - Description: "Readme is the readme of the chart", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Values are the default values of the chart", - Type: []string{"string"}, - Format: "", + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.Metadata"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "charts": { + "quotas": { SchemaProps: spec.SchemaProps{ - Description: "Holds the available helm charts for this cluster", + Description: "Quotas define the quotas inside the project", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), + }, + }, + "allowedClusters": { + SchemaProps: spec.SchemaProps{ + Description: "AllowedClusters are target clusters that are allowed to target with environments.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), }, }, }, }, }, - "busy": { + "allowedRunners": { SchemaProps: spec.SchemaProps{ - Description: "Busy will indicate if the chart parsing is still in progress.", - Type: []string{"boolean"}, - Format: "", + 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"), + }, + }, + }, + }, + }, + "allowedTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "AllowedTemplates are the templates that are allowed to use in this project.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), + }, + }, + }, + }, + }, + "requireTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "RequireTemplate configures if a template is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), + }, + }, + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), + }, + }, + "members": { + SchemaProps: spec.SchemaProps{ + Description: "Members are the users and teams that are part of this project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "namespacePattern": { + SchemaProps: spec.SchemaProps{ + Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), + }, + }, + "argoCD": { + SchemaProps: spec.SchemaProps{ + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), + }, + }, + "vault": { + SchemaProps: spec.SchemaProps{ + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), + }, + }, + "rancher": { + SchemaProps: spec.SchemaProps{ + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), }, }, }, - Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.HelmChart", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } -func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "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": { + "quotas": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Quotas holds the quota status", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectCharts", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14240,15 +14552,43 @@ func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "clusters": { + "defaultVirtualClusterTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Clusters holds all the allowed clusters", + Description: "DefaultVirtualClusterTemplate is the default template for the project", + Type: []string{"string"}, + Format: "", + }, + }, + "virtualClusterTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), + }, + }, + }, + }, + }, + "defaultSpaceTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultSpaceTemplate", + Type: []string{"string"}, + Format: "", + }, + }, + "spaceTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplates holds all the allowed space templates", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), }, }, }, @@ -14258,11 +14598,11 @@ func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14295,7 +14635,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates"), }, }, }, @@ -14306,15 +14646,15 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectImportSpace holds project space import information", + Description: "RedirectToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14337,23 +14677,47 @@ func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallba Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceSpace": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceSpace is the space to import into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), }, }, }, - Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpaceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RedirectTokenClaims holds the private claims of the redirect token", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "URL is the url to redirect to.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14386,7 +14750,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), }, }, }, @@ -14397,35 +14761,41 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectImportSpace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RedirectTokenSpec holds the object specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the space to import", - Type: []string{"string"}, - Format: "", - }, - }, - "cluster": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "Cluster name of the cluster the space is running on", + Description: "Token is the token that includes the redirect request", Type: []string{"string"}, Format: "", }, }, - "importName": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RedirectTokenStatus holds the object status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "redirectURL": { SchemaProps: spec.SchemaProps{ - Description: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -14434,11 +14804,12 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.Reference } } -func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14457,59 +14828,36 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Project"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "info": { - SchemaProps: spec.SchemaProps{ - Description: "Info about the user or team", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "kind": { SchemaProps: spec.SchemaProps{ Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, @@ -14526,147 +14874,132 @@ 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"), - }, - }, - "teams": { - SchemaProps: spec.SchemaProps{ - Description: "Teams holds all the teams that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "users": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Users holds all the users that have access to the cluster", - 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.ProjectMember"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMember", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RegisterVirtualClusterSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "serviceUID": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "kubernetesVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "KubernetesVersion is the Kubernetes version of the virtual cluster.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "project": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Project is the project name the virtual cluster should be in.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "name": { 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.ProjectMembers"), - }, - }, - }, + Description: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the vcluster based on the service uid and this name.", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembers", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_ProjectMembership(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "namespace": { + "forceName": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "ForceName specifies if the name should be used or creation will fail.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "Chart specifies the vCluster chart.", Type: []string{"string"}, Format: "", }, }, - "name": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "Version specifies the vCluster version.", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "Values specifies the vCluster config.", Type: []string{"string"}, Format: "", }, }, - "role": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RegisterVirtualClusterStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "Role is the role given to the member", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"), + Description: "Name is the actual name of the virtual cluster instance.", + Type: []string{"string"}, + Format: "", }, }, - "assignedVia": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), + Description: "Namespace is the namespace of the virtual cluster instance.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectRole"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", + Description: "ResetAccessKey is an access key that is owned by another user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14689,23 +15022,27 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.Refere Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceSpaceInstance": { + "spec": { 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"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), }, }, }, - Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14738,7 +15075,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), }, }, }, @@ -14749,41 +15086,171 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name of the spaceinstance to migrate", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the spaceinstance to migrate", + Description: "Description describes an app", + Type: []string{"string"}, + Format: "", + }, + }, + "user": { + SchemaProps: spec.SchemaProps{ + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", + }, + }, + "team": { + SchemaProps: spec.SchemaProps{ + Description: "The team this access key refers to", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "Subject is a generic subject that can be used instead of user or team", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "Groups specifies extra groups to apply when using this access key", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, + Format: "", + }, + }, + "ttl": { + SchemaProps: spec.SchemaProps{ + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "ttlAfterLastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by loft itself.", + Type: []string{"string"}, + Format: "", + }, + }, + "identity": { + SchemaProps: spec.SchemaProps{ + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), + }, + }, + "identityRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the identity was refreshed", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", Type: []string{"string"}, Format: "", }, }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + } +} + +func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "lastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "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_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateVirtualClusterInstance holds project vclusterinstance migrate information", + Description: "Self holds information about the currently logged in user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14806,23 +15273,27 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref comm Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "sourceVirtualClusterInstance": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), }, }, }, - Required: []string{"sourceVirtualClusterInstance"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.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_ProjectMigrateVirtualClusterInstanceList(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{ @@ -14855,7 +15326,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Self"), }, }, }, @@ -14866,26 +15337,19 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster instance to migrate", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the virtual cluster instance to migrate", + Description: "AccessKey is an optional access key to use instead of the provided one", Type: []string{"string"}, Format: "", }, @@ -14896,51 +15360,114 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(re } } -func schema_pkg_apis_management_v1_ProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + 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: "", }, }, - "name": { + "accessKeyScope": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + 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: "", }, }, - "displayName": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "The subject of the currently logged in user", Type: []string{"string"}, Format: "", }, }, - "isAdmin": { + "uid": { SchemaProps: spec.SchemaProps{ - Description: "IsAdmin describes whether this is an admin project role", - Type: []string{"boolean"}, + 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: "", + }, + }, + "loftHost": { + SchemaProps: spec.SchemaProps{ + Description: "LoftHost is the host of the loft instance", + Type: []string{"string"}, + Format: "", + }, + }, + "projectNamespacePrefix": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", + Type: []string{"string"}, Format: "", }, }, }, }, }, + 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_ProjectSecret(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: "ProjectSecret holds the Project Secret information", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14966,24 +15493,24 @@ func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15016,7 +15543,7 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview"), }, }, }, @@ -15027,295 +15554,126 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a Project secret", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "data": { + "resourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - }, + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), }, }, - "access": { + "nonResourceAttributes": { 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: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, } } -func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { + "allowed": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "denied": { + SchemaProps: spec.SchemaProps{ + Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason is optional. It indicates why a request was allowed or denied.", + Type: []string{"string"}, + Format: "", + }, + }, + "evaluationError": { + SchemaProps: spec.SchemaProps{ + Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"allowed"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSpec holds the specification", + Description: "SharedSecret holds the secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "quotas": { - SchemaProps: spec.SchemaProps{ - Description: "Quotas define the quotas inside the project", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas"), - }, - }, - "allowedClusters": { - SchemaProps: spec.SchemaProps{ - Description: "AllowedClusters are target clusters that are allowed to target with environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster"), - }, - }, - }, - }, - }, - "allowedRunners": { - SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner"), - }, - }, - }, - }, - }, - "allowedTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "AllowedTemplates are the templates that are allowed to use in this project.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate"), - }, - }, - }, - }, - }, - "requireTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "RequireTemplate configures if a template is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate"), - }, - }, - "requirePreset": { - SchemaProps: spec.SchemaProps{ - Description: "RequirePreset configures if a preset is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset"), - }, - }, - "members": { - SchemaProps: spec.SchemaProps{ - Description: "Members are the users and teams that are part of this project", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member"), - }, - }, - }, - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "namespacePattern": { - SchemaProps: spec.SchemaProps{ - Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern"), - }, - }, - "argoCD": { - SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec"), - }, - }, - "vault": { - SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"), - }, - }, - "rancher": { - SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), - }, - }, - "devPod": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, - } -} - -func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ProjectStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "quotas": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Quotas holds the quota status", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), }, }, - "conditions": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.QuotaStatus"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15338,222 +15696,163 @@ 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"), - }, - }, - "defaultVirtualClusterTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultVirtualClusterTemplate is the default template for the project", - Type: []string{"string"}, - Format: "", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "virtualClusterTemplates": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret"), }, }, }, }, }, - "defaultSpaceTemplate": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SharedSecretSpec holds the specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DefaultSpaceTemplate", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "spaceTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplates holds all the allowed space templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), - }, - }, - }, - }, - }, - "defaultDevPodWorkspaceTemplate": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodWorkspaceTemplate", + Description: "Description describes a shared secret", Type: []string{"string"}, Format: "", }, }, - "devPodWorkspaceTemplates": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplates holds all the allowed space templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate"), - }, - }, - }, + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "devPodEnvironmentTemplates": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplates holds all the allowed environment templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodEnvironmentTemplate"), + Type: []string{"string"}, + Format: "byte", }, }, }, }, }, - "devPodWorkspacePresets": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresets holds all the allowed workspace presets", + Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspacePreset"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "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.DevPodWorkspacePreset", "github.com/loft-sh/api/v4/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SharedSecretStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, 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 project might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates"), + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectTemplates", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectToken holds the object information", + Description: "SnapshotRequest is the request to take a snapshot of a volume.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestMetadata"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestStatus"), }, }, }, + Required: []string{"status"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestMetadata", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestStatus"}, } } -func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotRequestError(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenClaims holds the private claims of the redirect token", + Description: "SnapshotError describes the error that occurred while taking the snapshot.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url to redirect to.", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -15562,98 +15861,132 @@ func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallb } } -func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotRequestMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SnapshotRequestMetadata is the metadata of the snapshot request.", + 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": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "creationTimestamp": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken"), - }, - }, - }, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, }, - Required: []string{"items"}, + Required: []string{"name", "creationTimestamp"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RedirectToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenSpec holds the object specification", + Description: "SnapshotRequestStatus shows the overall status of the snapshot request.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Token is the token that includes the redirect request", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeSnapshots": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotsRequestStatus"), + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"), }, }, }, + Required: []string{"volumeSnapshots"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotsRequestStatus"}, } } -func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SnapshotTaken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenStatus holds the object status", + Description: "SnapshotTaken is the auto snapshot metadata of a snapshot taken from the vcluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "redirectURL": { + "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("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequest"), + }, + }, + "totalPV": { + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "status": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"totalPV"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequest"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", + Description: "SpaceInstance holds the SpaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15679,24 +16012,24 @@ func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualClusterStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15729,7 +16062,7 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance"), }, }, }, @@ -15740,97 +16073,193 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.RegisterVirtualCluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualClusterSpec holds the specification", + Description: "SpaceInstanceSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "serviceUID": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "project": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Project is the project name the virtual cluster should be in.", + Description: "Description describes a space instance", Type: []string{"string"}, Format: "", }, }, - "name": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the vcluster based on the service uid and this name.", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "forceName": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "ForceName specifies if the name should be used or creation will fail.", - Type: []string{"boolean"}, - Format: "", + Description: "TemplateRef holds the space template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), }, }, - "chart": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Chart specifies the vCluster chart.", - Type: []string{"string"}, - Format: "", + Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "version": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "Version specifies the vCluster version.", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { + Description: "ClusterRef is the reference to the connected cluster holding this space", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + }, + }, + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Values specifies the vCluster config.", + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, + "extraAccessRules": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualClusterStatus holds the status", + Description: "SpaceInstanceStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Name is the actual name of the virtual cluster instance.", + Description: "Phase describes the current phase the space instance is in", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form", Type: []string{"string"}, Format: "", }, }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "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"), + }, + }, + "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"), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sleepModeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + }, + }, + "canUse": { + SchemaProps: spec.SchemaProps{ + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "canUpdate": { + SchemaProps: spec.SchemaProps{ + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, + 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"}, } } -func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResetAccessKey is an access key that is owned by another user", + Description: "SpaceTemplate holds the information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15856,24 +16285,24 @@ func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15906,7 +16335,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate"), }, }, }, @@ -15917,171 +16346,234 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ResetAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceTemplateSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", - Type: []string{"string"}, - Format: "", - }, - }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "Description describes the space template", 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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "subject": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", - Type: []string{"string"}, - Format: "", + Description: "Template holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "groups": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "key": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", - Type: []string{"string"}, - Format: "", + Description: "Versions are different space template versions that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + }, + }, + }, }, }, - "disabled": { + "access": { 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: "", + 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"), + }, + }, + }, }, }, - "ttl": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplateStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apps": { SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", + 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"), + }, + }, + }, }, }, - "ttlAfterLastActivity": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, + } +} + +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: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, + Description: "Name is the name of the peer.", + Default: "", + Type: []string{"string"}, 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": { + "nodeClaim": { 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: "NodeClaim is the name of the node claim.", Type: []string{"string"}, Format: "", }, }, - "identity": { + "address": { SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity"), + Description: "Address is the address of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "identityRefresh": { + }, + 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: "The last time the identity was refreshed", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), + Description: "Name is the name of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "oidcProvider": { + "nodeClaim": { SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Description: "NodeClaim is the name of the node claim.", + Type: []string{"string"}, + Format: "", }, }, - "parent": { + "address": { 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: "Address is the address of the peer.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "oidcLogin": { + "isCoordinator": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC"), + Description: "IsCoordinator is true if the peer is the coordinator.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"name", "address", "isCoordinator"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SSOIdentity", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_StandalonePKI(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "StandalonePKI is a map of certificates filenames and certs", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "certificates": { 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"), + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, }, }, }, + Required: []string{"certificates"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - 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": { @@ -16107,24 +16599,24 @@ func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16157,7 +16649,7 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Self"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), }, }, }, @@ -16168,130 +16660,140 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Self", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "accessKey": { - SchemaProps: spec.SchemaProps{ - Description: "AccessKey is an optional access key to use instead of the provided one", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "user": { + "resourceAttributes": { 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"), + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), }, }, - "team": { + "nonResourceAttributes": { 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"), + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), }, }, - "accessKey": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "The name of the currently used access key", + Description: "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", Type: []string{"string"}, Format: "", }, }, - "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"), + "groups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "accessKeyType": { SchemaProps: spec.SchemaProps{ - Description: "The type of the currently used access key", - Type: []string{"string"}, - Format: "", + Description: "Groups is the groups you're testing for.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "subject": { + "extra": { SchemaProps: spec.SchemaProps{ - Description: "The subject of the currently logged in user", - Type: []string{"string"}, - Format: "", + Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, }, }, "uid": { SchemaProps: spec.SchemaProps{ - Description: "UID is the user uid", + Description: "UID information about the requesting user.", Type: []string{"string"}, Format: "", }, }, - "groups": { + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + } +} + +func schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "allowed": { SchemaProps: spec.SchemaProps{ - 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: "", - }, - }, - }, + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "chatAuthToken": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", - Type: []string{"string"}, + Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + Type: []string{"boolean"}, Format: "", }, }, - "instanceID": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "InstanceID is the loft instance id", + Description: "Reason is optional. It indicates why a request was allowed or denied.", Type: []string{"string"}, Format: "", }, }, - "projectNamespacePrefix": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", + Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"allowed"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.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 { +func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", + Description: "Task holds the Task information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16317,24 +16819,24 @@ func schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16367,7 +16869,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.Task"), }, }, }, @@ -16378,84 +16880,97 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceAttributes": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "nonResourceAttributes": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "allowed": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: 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: "", }, }, - "denied": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "reason": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "evaluationError": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog"), + }, + }, + }, }, }, }, - Required: []string{"allowed"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecret holds the secret information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -16471,85 +16986,74 @@ func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) co Format: "", }, }, - "metadata": { + "follow": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "spec": { + "previous": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretSpec"), + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "status": { + "sinceSeconds": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecretStatus"), + 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", }, }, - }, - }, - }, - 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"}, - } -} - -func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "sinceTime": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "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"), }, }, - "apiVersion": { + "timestamps": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal 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, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "tailLines": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + 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", }, }, - "items": { + "limitBytes": { 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.SharedSecret"), - }, - }, - }, + 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: "", }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SharedSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretSpec holds the specification", + Description: "TaskSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { @@ -16559,11 +17063,24 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback Format: "", }, }, - "description": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a shared secret", - Type: []string{"string"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "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"), }, }, "owner": { @@ -16572,53 +17089,45 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "data": { + "target": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - }, + Description: "Target where this task should get executed", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target"), }, }, - "access": { + "task": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "Task defines the task to execute", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretStatus holds the status", + Description: "TaskStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ + "started": { + SchemaProps: spec.SchemaProps{ + Description: "Started determines if the task was started", + Type: []string{"boolean"}, + Format: "", + }, + }, "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", + Description: "Conditions holds several conditions the virtual cluster might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -16630,19 +17139,50 @@ func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallba }, }, }, + "podPhase": { + SchemaProps: spec.SchemaProps{ + Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, + }, + }, + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "ObservedGeneration is the latest generation observed by the controller.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "containerState": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", + Ref: ref("k8s.io/api/core/v1.ContainerStatus"), + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, } } -func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstance holds the SpaceInstance information", + Description: "Team holds the team information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16668,24 +17208,24 @@ func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstanceStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), }, }, }, }, }, 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16708,107 +17248,112 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "accessKeys": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a space instance", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "templateRef": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "template": { + "items": { 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"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys"), + }, + }, + }, }, }, - "clusterRef": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this space", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "extraAccessRules": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "access": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), }, }, }, @@ -16818,105 +17363,111 @@ func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "message": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "conditions": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - 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/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters"), }, }, }, }, }, - "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"), - }, - }, - "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"), - }, - }, - "ignoreReconciliation": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_TeamList(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: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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{ - 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: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "canUse": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "canUpdate": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Team"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate holds the information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -16938,27 +17489,28 @@ func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) c Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec"), - }, - }, - "status": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SpaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16991,7 +17543,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions"), }, }, }, @@ -17002,108 +17554,101 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateSpec 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 space template", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "template": { + "members": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the space template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "Members gives users that are team members", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), + }, + }, + }, }, }, - "parameters": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "ProjectMemberships gives information about the team's project membership", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), }, }, }, }, }, - "versions": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different space template versions that can be referenced as well", + Description: "ManagementRoles gives information about the team's assigned management roles", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), }, }, }, }, }, - "access": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "apps": { + "virtualClusterRoles": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + 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{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), }, }, }, @@ -17113,58 +17658,11 @@ func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { - 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.SubjectAccessReviewSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReviewStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17197,7 +17695,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions"), }, }, }, @@ -17208,43 +17706,61 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.SubjectAccessReview", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceAttributes": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", }, }, - "nonResourceAttributes": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "Description describes a cluster access object", + Type: []string{"string"}, + Format: "", }, }, - "user": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username of the team that will be used for identification and docker registry namespace", Type: []string{"string"}, Format: "", }, }, - "groups": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", + "users": { + SchemaProps: spec.SchemaProps{ + Description: "The loft users that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, }, }, + }, + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Groups is the groups you're testing for.", + Description: "The groups defined in a token that belong to a team", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -17257,91 +17773,70 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceC }, }, }, - "extra": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), }, }, }, }, }, - "uid": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "UID information about the requesting user.", - Type: []string{"string"}, - Format: "", + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "allowed": { - SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, - Type: []string{"boolean"}, - Format: "", - }, - }, - "denied": { - SchemaProps: spec.SchemaProps{ - Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", - Type: []string{"string"}, - Format: "", - }, - }, - "evaluationError": { - SchemaProps: spec.SchemaProps{ - Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"allowed"}, }, }, } } -func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Task holds the Task information", + Description: "TranslateVClusterResourceName holds rename request and response data for given resource", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17367,24 +17862,24 @@ func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17417,7 +17912,7 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Task"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), }, }, }, @@ -17428,97 +17923,74 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Task", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TranslateVClusterResourceNameSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the name of resource we want to rename", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Namespace is the name of namespace in which this resource is running", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "vclusterName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "VClusterName is the name of vCluster in which this resource is running", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"name", "namespace", "vclusterName"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TranslateVClusterResourceNameStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "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 converted name of resource", 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.TaskLog"), - }, - }, - }, - }, - }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TaskLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + 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{ @@ -17534,203 +18006,105 @@ func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) Format: "", }, }, - "follow": { - SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "previous": { - SchemaProps: spec.SchemaProps{ - Description: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "sinceSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "sinceTime": { - SchemaProps: spec.SchemaProps{ - Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "timestamps": { - SchemaProps: spec.SchemaProps{ - Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "tailLines": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "limitBytes": { + "spec": { 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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadSpec"), }, }, - "insecureSkipTLSVerifyBackend": { + "status": { 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: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownloadStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TaskSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "access": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownload"), }, }, }, }, }, - "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"), - }, - }, - "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"), - }, - }, - "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"), - }, - }, - "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"), - }, - }, }, + 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.AccessKeyScope", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Target", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TaskDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UsageDownload", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownloadSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TaskStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "started": { - SchemaProps: spec.SchemaProps{ - Description: "Started determines if the task was started", - Type: []string{"boolean"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "podPhase": { - SchemaProps: spec.SchemaProps{ - Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, - }, - }, - "observedGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedGeneration is the latest generation observed by the controller.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "containerState": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity"), - }, - }, - "cluster": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, + Type: []string{"object"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeamEntity", "k8s.io/api/core/v1.ContainerStatus"}, } } -func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownloadStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Team holds the team information", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17756,24 +18130,24 @@ func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17820,7 +18194,7 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) } } -func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17853,7 +18227,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys"), }, }, }, @@ -17864,11 +18238,11 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17915,7 +18289,7 @@ func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) co } } -func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17948,7 +18322,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters"), }, }, }, @@ -17959,92 +18333,66 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the kubernetes name of the object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "icon": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Icon is the icon of the user / team", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "username": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.Team"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.Team", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_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", + Description: "The username that is used to login", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The users email address", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "subject": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "The user subject", + Type: []string{"string"}, + Format: "", }, }, - "objectPermissions": { + "teams": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Teams are the teams the user is part of", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), }, }, }, @@ -18054,11 +18402,11 @@ func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCal }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18091,7 +18439,7 @@ func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.User"), }, }, }, @@ -18102,11 +18450,11 @@ func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.Referenc }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamPermissions(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{ @@ -18132,71 +18480,14 @@ func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "members": { - SchemaProps: spec.SchemaProps{ - Description: "Members gives users that are team members", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), - }, - }, - }, - }, - }, - "projectMemberships": { - SchemaProps: spec.SchemaProps{ - Description: "ProjectMemberships gives information about the team's project membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), - }, - }, - }, - }, - }, - "managementRoles": { - SchemaProps: spec.SchemaProps{ - Description: "ManagementRoles gives information about the team's assigned management roles", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), - }, - }, - }, - }, - }, - "clusterAccessRoles": { - SchemaProps: spec.SchemaProps{ - Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), - }, - }, - }, - }, - }, - "virtualClusterRoles": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", - 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.VirtualClusterRole"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), }, }, }, @@ -18206,11 +18497,11 @@ func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamPermissionsList(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{ @@ -18243,7 +18534,7 @@ func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions"), }, }, }, @@ -18254,109 +18545,129 @@ func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TeamPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TeamSpec(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{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "username": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "The username of the team that will be used for identification and docker registry namespace", - Type: []string{"string"}, - Format: "", + Description: "ClusterRoles that apply to the user.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), + }, + }, + }, }, }, - "users": { + "namespaceRoles": { SchemaProps: spec.SchemaProps{ - Description: "The loft users that belong to a team", + 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: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole"), }, }, }, }, }, - "groups": { + "teamMemberships": { SchemaProps: spec.SchemaProps{ - Description: "The groups defined in a token that belong to a team", + Description: "TeamMemberships gives information about the user's team membership", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), }, }, }, }, }, - "imagePullSecrets": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", + Description: "ProjectMemberships gives information about the user's project membership", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), }, }, }, }, }, - "clusterRoles": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Description: "ManagementRoles gives information about the user's assigned management roles", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), }, }, }, }, }, - "access": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, + }, + }, + "virtualClusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), }, }, }, @@ -18366,26 +18677,15 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_TranslateVClusterResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceName holds rename request and response data for given resource", - Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -18404,183 +18704,178 @@ 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"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus"), + Type: []string{"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.UserPermissions"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceNameStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ClusterRole is the name of the cluster role assigned to this user.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "role": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Role is the name of the role assigned to this user.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "namespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "Namespace where this rules are valid.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "rules": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Rules are the roles rules", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName"), + Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.TranslateVClusterResourceName", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/api/rbac/v1.PolicyRule"}, } } -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceNameSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of resource we want to rename", - 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: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the name of namespace in which this resource is running", - 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: "", }, }, - "vclusterName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "VClusterName is the name of vCluster in which this resource is running", - Default: "", + 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: "", }, }, - }, - Required: []string{"name", "namespace", "vclusterName"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_TranslateVClusterResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TranslateVClusterResourceNameStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Name is the converted name of resource", + Description: "Username is the new username of the user", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "password": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "Password is the new password of the user", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "currentPassword": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "CurrentPassword is the current password of the user", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "email": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Email is the new email of the user", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "icon": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec"), + Description: "Icon is the new icon of the user", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "custom": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus"), + 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("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18603,79 +18898,58 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "accessKeys": { + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.OwnedAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Type is the type of the secret", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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: "Data is the data of the secret", 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.UserAccessKeys"), - }, - }, - }, - }, - }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserAccessKeys", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18695,20 +18969,16 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "clusters": { + "cluster": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Cluster where to retrieve quotas from", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccounts"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -18717,12 +18987,10 @@ 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"}, } } -func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18742,59 +19010,51 @@ func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { + "cluster": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Cluster where to retrieve spaces from", + Type: []string{"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.UserClusters"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserClusters", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "icon": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, "username": { @@ -18804,6 +19064,13 @@ func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common Format: "", }, }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "The URL to an icon that should be shown for the user", + Type: []string{"string"}, + Format: "", + }, + }, "email": { SchemaProps: spec.SchemaProps{ Description: "The users email address", @@ -18813,81 +19080,161 @@ func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common }, "subject": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", + Description: "The user subject as presented by the token", Type: []string{"string"}, Format: "", }, }, - "teams": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams the user is part of", + Description: "The groups the user has access to", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "ssoGroups": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "SSOGroups is used to remember groups that were added from sso.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "apiVersion": { + "passwordRef": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "A reference to the user password", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + }, + }, + "codesRef": { + SchemaProps: spec.SchemaProps{ + Description: "A reference to the users access keys", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + }, + }, + "imagePullSecrets": { + SchemaProps: spec.SchemaProps{ + Description: "ImagePullSecrets holds secret references to image pull secrets the user has access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), + }, + }, + }, + }, + }, + "tokenGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "TokenGeneration can be used to invalidate all user tokens", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If disabled is true, an user will not be able to login anymore. All other user resources are unaffected and other users can still interact with this user", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, }, }, - "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.User"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "extraClaims": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraClaims are additional claims that have been added to the user by an admin.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.User", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "UserStatus holds the status of an user", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "teams": { + SchemaProps: spec.SchemaProps{ + Description: "Teams the user is currently part of", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18907,20 +19254,16 @@ func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCal Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "objectPermissions": { + "cluster": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Cluster where to retrieve virtual clusters from", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -18929,16 +19272,15 @@ func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCal }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectPermission", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterAccessKey holds the access key for the virtual cluster", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -18957,32 +19299,25 @@ func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.Referenc "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "items": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions"), - }, - }, - }, + Description: "AccessKey is the access key used by the agent", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserObjectPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19005,116 +19340,79 @@ 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("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "namespaceRoles": { + "items": { 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("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey"), }, }, }, }, }, - "teamMemberships": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "TeamMemberships gives information about the user's team membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "projectMemberships": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "ProjectMemberships gives information about the user's project membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "managementRoles": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ManagementRoles gives information about the user's assigned management roles", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "clusterAccessRoles": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec"), }, }, - "virtualClusterRoles": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.ClusterAccessRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ManagementRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ObjectName", "github.com/loft-sh/api/v4/pkg/apis/management/v1.ProjectMembership", "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissionsRole", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissionsList(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{ @@ -19147,7 +19445,7 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase"), }, }, }, @@ -19158,64 +19456,61 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserPermissions", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clusterRole": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the name of the cluster role assigned to this user.", + 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: "", }, }, - "role": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "dataSource": { SchemaProps: spec.SchemaProps{ - Description: "Role is the name of the role assigned to this user.", + 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: "", }, }, - "namespace": { + "identityProvider": { SchemaProps: spec.SchemaProps{ - Description: "Namespace where this rules are valid.", + Description: "IdentityProvider is the kine identity provider to use when generating temporary authentication tokens for enhanced security.", 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("k8s.io/api/rbac/v1.PolicyRule"), - }, - }, - }, - }, - }, }, }, }, - Dependencies: []string{ - "k8s.io/api/rbac/v1.PolicyRule"}, } } -func schema_pkg_apis_management_v1_UserProfile(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{ @@ -19237,78 +19532,74 @@ func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) com 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": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Username is the new username of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec"), }, }, - "password": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Password is the new password of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus"), }, }, - "currentPassword": { + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInstanceKubeConfig holds kube config request and response data for virtual clusters", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPassword is the current password of the user", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "email": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Email is the new email of the user", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "icon": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the new icon of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "custom": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Custom is custom information that should be saved of the user", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), }, }, - "secrets": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Secrets is a map of secret names to secret data", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfileSecret", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19341,7 +19632,7 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), }, }, }, @@ -19352,26 +19643,52 @@ func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.UserProfile", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "certificateTTL": { SchemaProps: spec.SchemaProps{ - Description: "Type is the type of the secret", + 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: "", }, }, - "data": { + "clientCert": { SchemaProps: spec.SchemaProps{ - Description: "Data is the data of the secret", + Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kubeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "KubeConfig holds the final kubeconfig output", Type: []string{"string"}, Format: "", }, @@ -19382,7 +19699,7 @@ func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallbac } } -func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19402,28 +19719,35 @@ func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallbac Format: "", }, }, - "cluster": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve quotas from", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19443,276 +19767,163 @@ func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallbac Format: "", }, }, - "cluster": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve spaces from", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "username": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "icon": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The URL to an icon that should be shown for the user", - Type: []string{"string"}, - Format: "", - }, - }, - "email": { - SchemaProps: spec.SchemaProps{ - Description: "The users email address", - Type: []string{"string"}, - Format: "", - }, - }, - "subject": { - SchemaProps: spec.SchemaProps{ - Description: "The user subject as presented by the token", - Type: []string{"string"}, - Format: "", - }, - }, - "groups": { - SchemaProps: spec.SchemaProps{ - Description: "The groups the user has access to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "ssoGroups": { - SchemaProps: spec.SchemaProps{ - Description: "SSOGroups is used to remember groups that were added from sso.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog"), }, }, }, }, }, - "passwordRef": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "A reference to the user password", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "codesRef": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "A reference to the users access keys", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "imagePullSecrets": { + "container": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the user has access to.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef"), - }, - }, - }, + Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + Type: []string{"string"}, + Format: "", }, }, - "tokenGeneration": { + "follow": { SchemaProps: spec.SchemaProps{ - Description: "TokenGeneration can be used to invalidate all user tokens", - Type: []string{"integer"}, - Format: "int64", + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "disabled": { + "previous": { SchemaProps: spec.SchemaProps{ - Description: "If disabled is true, an user will not be able to login anymore. All other user resources are unaffected and other users can still interact with this user", + Description: "Return previous terminated container logs. Defaults to false.", Type: []string{"boolean"}, Format: "", }, }, - "clusterRoles": { + "sinceSeconds": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleRef"), - }, - }, - }, + Description: "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", }, }, - "access": { + "sinceTime": { 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: "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"), }, }, - "extraClaims": { + "timestamps": { SchemaProps: spec.SchemaProps{ - Description: "ExtraClaims are additional claims that have been added to the user by an admin.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + 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.ClusterRoleRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KindSecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_UserStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "UserStatus holds the status of an user", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "teams": { + "tailLines": { SchemaProps: spec.SchemaProps{ - Description: "Teams the user is currently part of", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + 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", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "limitBytes": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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: "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", }, }, - "apiVersion": { + "insecureSkipTLSVerifyBackend": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal 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: "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: "", }, }, - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve virtual clusters from", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_VirtualClusterAccessKey(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: "VirtualClusterAccessKey holds the access key for the virtual cluster", + Description: "VirtualClusterInstanceShell creates a pod for the requesting user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -19735,22 +19946,27 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceC Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "accessKey": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the agent", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellStatus"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterShellStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(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{ @@ -19783,7 +19999,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("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell"), }, }, }, @@ -19794,16 +20010,15 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(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: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -19825,27 +20040,21 @@ func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref common.Ref 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.VirtualClusterExternalDatabaseSpec"), - }, - }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19878,7 +20087,7 @@ func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshot"), }, }, }, @@ -19889,100 +20098,275 @@ func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref common }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSnapshot", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "connector": { + "snapshotTaken": { SchemaProps: spec.SchemaProps{ - Description: "Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotTaken"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotTaken"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterInstanceSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "dataSource": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and database are created from the given connector.", + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes a virtual cluster instance", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "templateRef": { + SchemaProps: spec.SchemaProps{ + Description: "TemplateRef holds the virtual cluster template reference", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, + "extraAccessRules": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access to the virtual cluster object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "networkPeer": { + SchemaProps: spec.SchemaProps{ + Description: "NetworkPeer specifies if the cluster is connected via tailscale.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "external": { + SchemaProps: spec.SchemaProps{ + Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "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"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance holds the VirtualClusterInstance information", + Description: "VirtualClusterInstanceStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase describes the current phase the virtual cluster instance is in", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + Description: "Message describes the reason in human-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "serviceUID": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec"), + Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "kubernetesVersion": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus"), + 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.", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + "virtualClusterObjects": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + }, + }, + "spaceObjects": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualCluster is the template rendered with all the parameters", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sleepModeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), + }, + }, + "canUse": { + SchemaProps: spec.SchemaProps{ + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "canUpdate": { + SchemaProps: spec.SchemaProps{ + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, + Format: "", + }, + }, + "online": { + SchemaProps: spec.SchemaProps{ + Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(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: "VirtualClusterInstanceKubeConfig holds kube config request and response data for virtual clusters", + Description: "VirtualClusterNodeAccessKey holds the access key for the virtual cluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -20008,24 +20392,24 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.R "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -20058,7 +20442,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey"), }, }, }, @@ -20069,52 +20453,29 @@ 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"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "certificateTTL": { - SchemaProps: spec.SchemaProps{ - Description: "CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause loft to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "server": { - SchemaProps: spec.SchemaProps{ - Description: "Server allows user to override server in the kubeconfig.", - Type: []string{"string"}, - Format: "", - }, - }, - "clientCert": { - SchemaProps: spec.SchemaProps{ - Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, }, }, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "kubeConfig": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "KubeConfig holds the final kubeconfig output", + Description: "AccessKey is the access key used by the agent", Type: []string{"string"}, Format: "", }, @@ -20125,59 +20486,61 @@ 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_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "role": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance"), - }, - }, - }, + Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", + Type: []string{"string"}, + Format: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstance", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterSchema holds config request and response data for virtual clusters", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -20199,15 +20562,27 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.Referenc Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -20240,7 +20615,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema"), }, }, }, @@ -20251,373 +20626,98 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceLog", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterSchemaSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "container": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", + Description: "Version is the version of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "follow": { - SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "previous": { - SchemaProps: spec.SchemaProps{ - Description: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "sinceSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "sinceTime": { - SchemaProps: spec.SchemaProps{ - Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), - }, - }, - "timestamps": { - SchemaProps: spec.SchemaProps{ - Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "tailLines": { - SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "limitBytes": { - SchemaProps: spec.SchemaProps{ - Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "insecureSkipTLSVerifyBackend": { - SchemaProps: spec.SchemaProps{ - Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceSpec holds the specification", + Description: "VirtualClusterSchemaStatus holds the status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "schema": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a virtual cluster instance", + Description: "Schema is the schema of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the virtual cluster template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - "clusterRef": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), - }, - }, - "parameters": { + "defaultValues": { 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: "DefaultValues are the default values of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "extraAccessRules": { - SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the virtual cluster object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "networkPeer": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "external": { - SchemaProps: spec.SchemaProps{ - Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.InstanceAccessRule", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterShellSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the virtual cluster instance is in", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", - }, - }, - "serviceUID": { - SchemaProps: spec.SchemaProps{ - Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", - Type: []string{"string"}, - Format: "", - }, - }, - "deployHash": { - SchemaProps: spec.SchemaProps{ - Description: "DeployHash is the hash of the last deployed values.", - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "virtualClusterObjects": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), - }, - }, - "spaceObjects": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus"), - }, - }, - "virtualCluster": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - "ignoreReconciliation": { - SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "sleepModeConfig": { - SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig"), - }, - }, - "canUse": { - SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", - Type: []string{"boolean"}, - Format: "", - }, - }, - "canUpdate": { - SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", - Type: []string{"boolean"}, - Format: "", - }, - }, - "online": { - SchemaProps: spec.SchemaProps{ - Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, + Type: []string{"object"}, }, }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1.SleepModeConfig", "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ObjectsStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "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": { + "podName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "PodName is the name of the shell pod that was created", Type: []string{"string"}, Format: "", }, }, - "role": { + "podNamespace": { SchemaProps: spec.SchemaProps{ - Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", + Description: "PodNamespace is the namespace of the shell pod that was created", Type: []string{"string"}, Format: "", }, }, - "assignedVia": { - SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandalone(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterSchema holds config request and response data for virtual clusters", + Description: "VirtualClusterStandalone holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -20643,24 +20743,24 @@ func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCall "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandaloneStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -20693,7 +20793,7 @@ func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone"), }, }, }, @@ -20704,54 +20804,72 @@ func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.Reference }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterSchemaSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "version": { + "currentPeer": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version of the virtual cluster", - Type: []string{"string"}, - Format: "", + Description: "CurrentPeer is the current peer that calls this API. The API will make sure this peer is added to the etcd peers list. If this is the first peer, it will be the coordinator.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeer"), + }, + }, + "currentPKI": { + SchemaProps: spec.SchemaProps{ + Description: "CurrentPKI contains certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"), }, }, }, + Required: []string{"currentPeer", "currentPKI"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeer", "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterSchemaStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "schema": { + "etcdPeers": { SchemaProps: spec.SchemaProps{ - Description: "Schema is the schema of the virtual cluster", - Type: []string{"string"}, - Format: "", + Description: "ETCDPeers holds the comma separated list of etcd peers addresses. It is used as a peer cache for vCluster Standalone deployed in HA mode via NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator"), + }, + }, + }, }, }, - "defaultValues": { + "currentPKI": { SchemaProps: spec.SchemaProps{ - Description: "DefaultValues are the default values of the virtual cluster", - Type: []string{"string"}, - Format: "", + Description: "PKI returns certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"), }, }, }, + Required: []string{"etcdPeers", "currentPKI"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator", "github.com/loft-sh/api/v4/pkg/apis/management/v1.StandalonePKI"}, } } @@ -20967,6 +21085,76 @@ func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.Refer } } +func schema_pkg_apis_management_v1_VolumeSnapshotRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SnapshotStatus shows the current status of a single PVC snapshot.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"), + }, + }, + }, + Required: []string{"error"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"}, + } +} + +func schema_pkg_apis_management_v1_VolumeSnapshotsRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeSnapshotsRequestStatus shows the current status of the snapshot request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "snapshots": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotRequestStatus"), + }, + }, + }, + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError"), + }, + }, + }, + Required: []string{"error"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.SnapshotRequestError", "github.com/loft-sh/api/v4/pkg/apis/management/v1.VolumeSnapshotRequestStatus"}, + } +} + func schema_pkg_apis_storage_v1_Access(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -22177,6 +22365,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", @@ -22793,20 +22988,6 @@ func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) co Format: "", }, }, - "zone": { - SchemaProps: spec.SchemaProps{ - Description: "Zone is the zone of the node type. If empty, will default to \"global\".", - Type: []string{"string"}, - Format: "", - }, - }, - "region": { - SchemaProps: spec.SchemaProps{ - Description: "Region is the region of the node type.", - Type: []string{"string"}, - Format: "", - }, - }, "properties": { SchemaProps: spec.SchemaProps{ Description: "Properties returns a flexible set of properties that may be selected for scheduling.", @@ -22865,6 +23046,13 @@ func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) co Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, "nodes": { SchemaProps: spec.SchemaProps{ Description: "Nodes specifies nodes.", @@ -22900,7 +23088,7 @@ func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } @@ -23032,133 +23220,25 @@ func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.Ope } } -func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterAccess holds the global cluster access information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessList contains a list of ClusterAccess objects", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -23169,145 +23249,126 @@ func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) }, }, }, - "access": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), }, }, }, }, }, - "localClusterAccessTemplate": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessTemplate holds the cluster access template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterAccessStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessStatus holds the status of a user access", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterList contains a list of Cluster", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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: "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: "", }, }, - "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("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), }, }, - "items": { + "infrastructureMachineTemplate": { 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.Cluster"), - }, - }, - }, + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { + "bootstrapConfigTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", - Type: []string{"string"}, - Format: "", + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, - "namespace": { + "mergeInfrastructureMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding the space", - Type: []string{"string"}, - Format: "", + Description: "MergeInfrastructureMachineTemplate will be merged into base InfrastructureMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with InfrastructureMachineTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "mergeBootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "MergeBootstrapConfigTemplate will be merged into base BootstrapConfig template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with BootstrapConfigTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "maxCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", }, }, }, + Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "name": { + "infrastructureMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Name is the cluster role to assign", - Type: []string{"string"}, - Format: "", + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "bootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), }, }, }, }, }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the global role template information", + Description: "ClusterAccess holds the global cluster access information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -23333,2331 +23394,28 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref common.ReferenceCallback "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplateList contains a list of ClusterRoleTemplate objects", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster role template object", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { - SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "management": { - SchemaProps: spec.SchemaProps{ - Description: "Management defines if this cluster role should be created in the management instance.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "clusterRoleTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the cluster role template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), - }, - }, - "localClusterRoleTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplateStatus holds the status of a user access", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "rules": { - SchemaProps: spec.SchemaProps{ - Description: "Rules holds all the PolicyRules for this ClusterRole", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), - }, - }, - }, - }, - }, - "aggregationRule": { - SchemaProps: spec.SchemaProps{ - Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", - Ref: ref("k8s.io/api/rbac/v1.AggregationRule"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterSpec holds the cluster specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "If specified this name is displayed in the UI instead of the metadata name", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "config": { - SchemaProps: spec.SchemaProps{ - Description: "Holds a reference to a secret that holds the kube config to access this cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), - }, - }, - "local": { - SchemaProps: spec.SchemaProps{ - Description: "Local specifies if it is the local cluster that should be connected, when this is specified, config is optional", - Type: []string{"boolean"}, - Format: "", - }, - }, - "networkPeer": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", - Type: []string{"boolean"}, - Format: "", - }, - }, - "managementNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "The namespace where the cluster components will be installed in", - Type: []string{"string"}, - Format: "", - }, - }, - "unusable": { - SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "metrics": { - SchemaProps: spec.SchemaProps{ - Description: "Metrics holds the cluster's metrics backend configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), - }, - }, - "opencost": { - SchemaProps: spec.SchemaProps{ - Description: "OpenCost holds the cluster's OpenCost backend configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterStatus holds the user status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, - } -} - -func schema_pkg_apis_storage_v1_CredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "docker": { - SchemaProps: spec.SchemaProps{ - Description: "Docker specifies controls for how workspaces created by this template forward docker credentials", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding"), - }, - }, - "git": { - SchemaProps: spec.SchemaProps{ - Description: "Git specifies controls for how workspaces created by this template forward git credentials", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DockerCredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitCredentialForwarding"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ignoreNotFound": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "force": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "gracePeriod": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "containerStatus": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Description: "up options", - Type: []string{"string"}, - Format: "", - }, - }, - "source": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ide": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ideOptions": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "prebuildRepositories": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "devContainerPath": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "workspaceEnv": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "recreate": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "proxy": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "disableDaemon": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "daemonInterval": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "repository": { - SchemaProps: spec.SchemaProps{ - Description: "build options", - Type: []string{"string"}, - Format: "", - }, - }, - "skipPush": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "platform": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "forceBuild": { - SchemaProps: spec.SchemaProps{ - Description: "TESTING", - Type: []string{"boolean"}, - Format: "", - }, - }, - "forceInternalBuildKit": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceEnvironmentSource", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "git": { - SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"), - }, - }, - "inline": { - SchemaProps: spec.SchemaProps{ - Description: "Inline holds an inline devcontainer.json definition", - Type: []string{"string"}, - Format: "", - }, - }, - "workspaceRepositoryCloneStrategy": { - SchemaProps: spec.SchemaProps{ - Description: "WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"", "blobless", "shallow", "treeless"}, - }, - }, - "workspaceRepositorySkipLFS": { - SchemaProps: spec.SchemaProps{ - Description: "WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitEnvironmentTemplate"}, - } -} - -func schema_pkg_apis_storage_v1_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": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes the environment template", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod environments", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), - }, - }, - "versions": { - SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", - Type: []string{"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"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the environment template definition", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "git": { - 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"), - }, - }, - "fallbackImage": { - 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: "", - }, - }, - "registryPattern": { - SchemaProps: spec.SchemaProps{ - Description: "RegistryPattern specifies a template pattern to use for building images on the fly. Requires the platform pods to be authenticated against the registry.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectSpec"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderOption(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "value": { - SchemaProps: spec.SchemaProps{ - Description: "Value of this option.", - Type: []string{"string"}, - Format: "", - }, - }, - "valueFrom": { - 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"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "projectSecretRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef is the project secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), - }, - }, - "sharedSecretRef": { - SchemaProps: spec.SchemaProps{ - Description: "SharedSecretRef is the shared secret to use for this value.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "github": { - SchemaProps: spec.SchemaProps{ - Description: "Github source for the provider", - Type: []string{"string"}, - Format: "", - }, - }, - "file": { - SchemaProps: spec.SchemaProps{ - Description: "File source for the provider", - Type: []string{"string"}, - Format: "", - }, - }, - "url": { - SchemaProps: spec.SchemaProps{ - Description: "URL where the provider was downloaded from", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "// DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the container specified as a DNS_LABEL.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "image": { - SchemaProps: spec.SchemaProps{ - Description: "Container image name.", - Type: []string{"string"}, - Format: "", - }, - }, - "command": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "Entrypoint array. Not executed within a shell.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "args": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "Arguments to the entrypoint.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "workingDir": { - SchemaProps: spec.SchemaProps{ - Description: "Container's working directory.", - Type: []string{"string"}, - Format: "", - }, - }, - "ports": { - SchemaProps: spec.SchemaProps{ - Description: "List of ports to expose from the container. Not specifying a port here", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerPort"), - }, - }, - }, - }, - }, - "envFrom": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - 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.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.EnvVar"), - }, - }, - }, - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Compute Resources required by this container.", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), - }, - }, - "resizePolicy": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "Resources resize policy for the container.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerResizePolicy"), - }, - }, - }, - }, - }, - "restartPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "RestartPolicy defines the restart behavior of individual containers in a pod.", - Type: []string{"string"}, - Format: "", - }, - }, - "volumeMounts": { - SchemaProps: spec.SchemaProps{ - Description: "Pod volumes to mount into the container's filesystem.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeMount"), - }, - }, - }, - }, - }, - "volumeDevices": { - SchemaProps: spec.SchemaProps{ - Description: "volumeDevices is the list of block devices to be used by the container.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.VolumeDevice"), - }, - }, - }, - }, - }, - "livenessProbe": { - SchemaProps: spec.SchemaProps{ - Description: "Periodic probe of container liveness.", - Ref: ref("k8s.io/api/core/v1.Probe"), - }, - }, - "readinessProbe": { - SchemaProps: spec.SchemaProps{ - Description: "Periodic probe of container service readiness.", - Ref: ref("k8s.io/api/core/v1.Probe"), - }, - }, - "startupProbe": { - SchemaProps: spec.SchemaProps{ - Description: "StartupProbe indicates that the Pod has successfully initialized.", - Ref: ref("k8s.io/api/core/v1.Probe"), - }, - }, - "lifecycle": { - SchemaProps: spec.SchemaProps{ - Description: "Actions that the management system should take in response to container lifecycle events.", - Ref: ref("k8s.io/api/core/v1.Lifecycle"), - }, - }, - "terminationMessagePath": { - SchemaProps: spec.SchemaProps{ - Description: "Optional: Path at which the file to which the container's termination message", - Type: []string{"string"}, - Format: "", - }, - }, - "terminationMessagePolicy": { - SchemaProps: spec.SchemaProps{ - Description: "Indicate how the termination message should be populated. File will use the contents of\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"FallbackToLogsOnError", "File"}, - }, - }, - "imagePullPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "Image pull policy.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Always", "IfNotPresent", "Never"}, - }, - }, - "securityContext": { - SchemaProps: spec.SchemaProps{ - Description: "SecurityContext defines the security options the container should be run with.", - Ref: ref("k8s.io/api/core/v1.SecurityContext"), - }, - }, - "stdin": { - SchemaProps: spec.SchemaProps{ - Description: "Whether this container should allocate a buffer for stdin in the container runtime.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "stdinOnce": { - SchemaProps: spec.SchemaProps{ - Description: "StdinOnce default is false", - Type: []string{"boolean"}, - Format: "", - }, - }, - "tty": { - SchemaProps: spec.SchemaProps{ - Description: "TTY default is false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, - } -} - -func schema_pkg_apis_storage_v1_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": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.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_DevPodWorkspaceInstanceContainerResource(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 container", - Type: []string{"string"}, - Format: "", - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources is the resources of the container", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.ResourceRequirements"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "A human-readable description of the status of this operation.", - Type: []string{"string"}, - Format: "", - }, - }, - "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"), - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type of this event (Normal, Warning), new types could be added in the future", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "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"), - }, - }, - "podStatus": { - SchemaProps: spec.SchemaProps{ - Description: "PodStatus is the status of the pod that is running the workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus"), - }, - }, - "persistentVolumeClaimStatus": { - SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus"), - }, - }, - }, - Required: []string{"lastTransitionTime"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstance"), - }, - }, - }, - }, - }, - }, - 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_DevPodWorkspaceInstancePersistentVolumeClaimStatus(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 represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Bound", "Lost", "Pending"}, - }, - }, - "capacity": { - SchemaProps: spec.SchemaProps{ - Description: "capacity represents the actual resources of the underlying volume.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "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 is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), - }, - }, - }, - }, - }, - "events": { - SchemaProps: spec.SchemaProps{ - Description: "Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(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: "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, - }, - }, - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodCondition"), - }, - }, - }, - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "A human readable message indicating details about why the pod is in this condition.", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", - Type: []string{"string"}, - Format: "", - }, - }, - "initContainerStatuses": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), - }, - }, - }, - }, - }, - "containerStatuses": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ContainerStatus"), - }, - }, - }, - }, - }, - "nodeName": { - SchemaProps: spec.SchemaProps{ - Description: "NodeName is the name of the node that is running the workspace", - Type: []string{"string"}, - Format: "", - }, - }, - "events": { - SchemaProps: spec.SchemaProps{ - Description: "Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), - }, - }, - }, - }, - }, - "containerResources": { - SchemaProps: spec.SchemaProps{ - Description: "ContainerResources are the resources of the containers that are running the workspace", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource"), - }, - }, - }, - }, - }, - "containerMetrics": { - SchemaProps: spec.SchemaProps{ - Description: "ContainerMetrics are the metrics of the pod that is running the workspace", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "presetRef": { - SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { - SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "target": { - SchemaProps: spec.SchemaProps{ - Description: "Target is the reference to the cluster holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"), - }, - }, - "runnerRef": { - SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "preventWakeUpOnConnection": { - SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.PresetRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RunnerRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTarget"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "resolvedTarget": { - SchemaProps: spec.SchemaProps{ - Description: "ResolvedTarget is the resolved target of the workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"), - }, - }, - "lastWorkspaceStatus": { - SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", - }, - }, - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), - }, - }, - }, - }, - }, - "instance": { - SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { - SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", - }, - }, - "kubernetes": { - SchemaProps: spec.SchemaProps{ - Description: "Kubernetes is the status of the workspace on kubernetes", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "The workspace instance metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "pod": { - SchemaProps: spec.SchemaProps{ - Description: "Pod holds the definition for workspace pod.\n\nDefaults will be applied for fields that aren't specified.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate"), - }, - }, - "volumeClaim": { - SchemaProps: spec.SchemaProps{ - Description: "VolumeClaim holds the definition for the main workspace persistent volume. This volume is guaranteed to exist for the lifespan of the workspace.\n\nDefaults will be applied for fields that aren't specified.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate"), - }, - }, - "podTimeout": { - SchemaProps: spec.SchemaProps{ - Description: "PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. Default: 10m", - Type: []string{"string"}, - Format: "", - }, - }, - "nodeArchitecture": { - SchemaProps: spec.SchemaProps{ - Description: "NodeArchitecture specifies the node architecture the workspace image will be built for. Only necessary if you need to build workspace images on the fly in the kubernetes cluster and your cluster is mixed architecture.", - Type: []string{"string"}, - Format: "", - }, - }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateRef is a reference to the space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "spaceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate is the inline template for a space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "virtualClusterTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateRef is a reference to the virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "virtualClusterTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePodTemplate is a less restrictive PodTemplate", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "The pods metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "volumes": { - SchemaProps: spec.SchemaProps{ - Description: "List of volumes that can be mounted by containers belonging to the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Volume"), - }, - }, - }, - }, - }, - "initContainers": { - SchemaProps: spec.SchemaProps{ - Description: "List of initialization containers belonging to the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer"), - }, - }, - }, - }, - }, - "containers": { - SchemaProps: spec.SchemaProps{ - Description: "List of containers belonging to the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer"), - }, - }, - }, - }, - }, - "restartPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "Restart policy for all containers within the pod.\n\nPossible enum values:\n - `\"Always\"`\n - `\"Never\"`\n - `\"OnFailure\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Always", "Never", "OnFailure"}, - }, - }, - "terminationGracePeriodSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "activeDeadlineSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "Optional duration in seconds the pod may be active on the node relative to", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "dnsPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "Set DNS policy for the pod.\n\nPossible enum values:\n - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings.\n - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}, - }, - }, - "nodeSelector": { - SchemaProps: spec.SchemaProps{ - Description: "NodeSelector is a selector which must be true for the pod to fit on a node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "serviceAccountName": { - SchemaProps: spec.SchemaProps{ - Description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod.", - Type: []string{"string"}, - Format: "", - }, - }, - "automountServiceAccountToken": { - SchemaProps: spec.SchemaProps{ - Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "nodeName": { - SchemaProps: spec.SchemaProps{ - Description: "NodeName indicates in which node this pod is scheduled.", - Type: []string{"string"}, - Format: "", - }, - }, - "hostNetwork": { - SchemaProps: spec.SchemaProps{ - Description: "Host networking requested for this pod. Use the host's network namespace.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "hostPID": { - SchemaProps: spec.SchemaProps{ - Description: "Use the host's pid namespace.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "hostIPC": { - SchemaProps: spec.SchemaProps{ - Description: "Use the host's ipc namespace.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "shareProcessNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "Share a single process namespace between all of the containers in a pod.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "securityContext": { - SchemaProps: spec.SchemaProps{ - Description: "SecurityContext holds pod-level security attributes and common container settings.", - Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), - }, - }, - "imagePullSecrets": { - SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), - }, - }, - }, - }, - }, - "hostname": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies the hostname of the Pod", - Type: []string{"string"}, - Format: "", - }, - }, - "subdomain": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, the fully qualified Pod hostname will be \"...svc.\".", - Type: []string{"string"}, - Format: "", - }, - }, - "affinity": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, the pod's scheduling constraints", - Ref: ref("k8s.io/api/core/v1.Affinity"), - }, - }, - "schedulerName": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", - Type: []string{"string"}, - Format: "", - }, - }, - "tolerations": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, the pod's tolerations.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Toleration"), - }, - }, - }, - }, - }, - "hostAliases": { - SchemaProps: spec.SchemaProps{ - Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.HostAlias"), - }, - }, - }, - }, - }, - "priorityClassName": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, indicates the pod's priority.", - Type: []string{"string"}, - Format: "", - }, - }, - "priority": { - SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", - }, - }, - "dnsConfig": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies the DNS parameters of a pod.", - Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), - }, - }, - "readinessGates": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, all readiness gates will be evaluated for pod readiness.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), - }, - }, - }, - }, - }, - "runtimeClassName": { - SchemaProps: spec.SchemaProps{ - Description: "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod", - Type: []string{"string"}, - Format: "", - }, - }, - "enableServiceLinks": { - SchemaProps: spec.SchemaProps{ - Description: "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "preemptionPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "PreemptionPolicy is the Policy for preempting pods with lower priority.\n\nPossible enum values:\n - `\"Never\"` means that pod never preempts other pods with lower priority.\n - `\"PreemptLowerPriority\"` means that pod can preempt other pods with lower priority.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Never", "PreemptLowerPriority"}, - }, - }, - "overhead": { - SchemaProps: spec.SchemaProps{ - Description: "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "topologySpreadConstraints": { - SchemaProps: spec.SchemaProps{ - Description: "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), - }, - }, - }, - }, - }, - "setHostnameAsFQDN": { - SchemaProps: spec.SchemaProps{ - Description: "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "os": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies the OS of the containers in the pod.", - Ref: ref("k8s.io/api/core/v1.PodOS"), - }, - }, - "hostUsers": { - SchemaProps: spec.SchemaProps{ - Description: "Use the host's user namespace.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "schedulingGates": { - SchemaProps: spec.SchemaProps{ - Description: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodSchedulingGate"), - }, - }, - }, - }, - }, - "resourceClaims": { - SchemaProps: spec.SchemaProps{ - Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.PodResourceClaim"), - }, - }, - }, - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceContainer", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodResourceClaim", "k8s.io/api/core/v1.PodSchedulingGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePreset", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccessStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects", + Description: "ClusterAccessList contains a list of ClusterAccess objects", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -25687,7 +23445,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess"), }, }, }, @@ -25698,71 +23456,27 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePreset", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(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 stores path to git repo to use as workspace source", - Type: []string{"string"}, - Format: "", - }, - }, - "image": { - SchemaProps: spec.SchemaProps{ - Description: "Image stores container image to use as workspace source", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAccess", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "source": { - SchemaProps: spec.SchemaProps{ - Description: "Source stores inline path of project source", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), - }, - }, - "infrastructureRef": { - SchemaProps: spec.SchemaProps{ - Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "useProjectGitCredentials": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, + Description: "Description describes a cluster access object", + Type: []string{"string"}, Format: "", }, }, @@ -25772,210 +23486,160 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCa Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "access": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", + Description: "Clusters are the clusters this template should be applied on.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "versions": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access"), }, }, }, }, }, + "localClusterAccessTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "LocalClusterAccessTemplate holds the cluster access template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate"), + }, + }, }, - Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccessStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetStatus holds the status", + Description: "ClusterAccessStatus holds the status of a user access", Type: []string{"object"}, }, }, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ClusterList contains a list of Cluster", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "version": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X 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: "", }, }, - "source": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Source stores inline path of project source", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "infrastructureRef": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"), + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "environmentRef": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef"), + Type: []string{"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.Cluster"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.EnvironmentRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateRef"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Cluster", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the provider. This can also be an url.", + Description: "Cluster is the connected cluster the space will be created in", Type: []string{"string"}, Format: "", }, }, - "options": { - SchemaProps: spec.SchemaProps{ - Description: "Options are the provider option values", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, - }, - }, - "env": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Env are environment options to set when using the provider.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, + Description: "Namespace is the namespace inside the connected cluster holding the space", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "limits": { - SchemaProps: spec.SchemaProps{ - Description: "Limits describes the maximum amount of compute resources allowed.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "requests": { - SchemaProps: spec.SchemaProps{ - Description: "Requests describes the minimum amount of compute resources required.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "claims": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.ResourceClaim"), - }, - }, - }, + Description: "Name is the cluster role to assign", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.ResourceClaim"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the DevPodWorkspaceTemplate information", + Description: "ClusterRoleTemplate holds the global role template information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -26001,82 +23665,28 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref common.ReferenceCall "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kubernetes": { - SchemaProps: spec.SchemaProps{ - Description: "Kubernetes holds the definition for kubernetes based workspaces", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec"), - }, - }, - "workspaceEnv": { - SchemaProps: spec.SchemaProps{ - Description: "WorkspaceEnv are environment variables that should be available within the created workspace.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption"), - }, - }, - }, - }, - }, - "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"), - }, - }, - "credentialForwarding": { - SchemaProps: spec.SchemaProps{ - Description: "CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding"), - }, - }, - "provider": { - SchemaProps: spec.SchemaProps{ - Description: "Provider holds the legacy VM provider configuration", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.CredentialForwarding", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProviderOption", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceProvider"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateList contains a list of DevPodWorkspaceTemplate", + Description: "ClusterRoleTemplateList contains a list of ClusterRoleTemplate objects", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -26106,7 +23716,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate"), }, }, }, @@ -26117,27 +23727,26 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref common.Reference }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", + Description: "Description describes a cluster role template object", Type: []string{"string"}, Format: "", }, @@ -26148,39 +23757,26 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref common.Reference Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "parameters": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", + Description: "Clusters are the clusters this template should be applied on.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "versions": { + "management": { 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: "Management defines if this cluster role should be created in the management instance.", + Type: []string{"boolean"}, + Format: "", }, }, "access": { @@ -26197,199 +23793,219 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref common.Reference }, }, }, + "clusterRoleTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoleTemplate holds the cluster role template", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), + }, + }, + "localClusterRoleTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus holds the status", + Description: "ClusterRoleTemplateStatus holds the status of a user access", Type: []string{"object"}, }, }, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "template": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod template", + Description: "Standard object's metadata.", Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), }, }, - "parameters": { + "rules": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", + Description: "Rules holds all the PolicyRules for this ClusterRole", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter"), + Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), }, }, }, }, }, - "version": { + "aggregationRule": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", + Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", + Ref: ref("k8s.io/api/rbac/v1.AggregationRule"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AppParameter", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, + "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ClusterSpec holds the cluster specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accessModes": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "If specified this name is displayed in the UI instead of the metadata name", + Type: []string{"string"}, + Format: "", }, + }, + "description": { SchemaProps: spec.SchemaProps{ - Description: "accessModes contains the desired access modes the volume should have.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, - }, - }, - }, + Description: "Description describes a cluster access object", + Type: []string{"string"}, + Format: "", }, }, - "selector": { + "owner": { 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"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"), }, }, - "resources": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "resources represents the minimum resources the volume should have.", + 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.DevPodWorkspaceResourceRequirements"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), }, }, - "volumeName": { + "local": { SchemaProps: spec.SchemaProps{ - Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", - Type: []string{"string"}, + Description: "Local specifies if it is the local cluster that should be connected, when this is specified, config is optional", + Type: []string{"boolean"}, Format: "", }, }, - "storageClassName": { + "networkPeer": { SchemaProps: spec.SchemaProps{ - Description: "storageClassName is the name of the StorageClass required by the claim.", - Type: []string{"string"}, + Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", + Type: []string{"boolean"}, Format: "", }, }, - "volumeMode": { + "managementNamespace": { SchemaProps: spec.SchemaProps{ - Description: "volumeMode defines what type of volume is required by the claim.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", + Description: "The namespace where the cluster components will be installed in", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Block", "Filesystem"}, }, }, - "dataSource": { + "unusable": { SchemaProps: spec.SchemaProps{ - Description: "dataSource field can be used to specify either:", - Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), + Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", + Type: []string{"boolean"}, + Format: "", }, }, - "dataSourceRef": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty", - Ref: ref("k8s.io/api/core/v1.TypedObjectReference"), + 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"), + }, + }, + }, }, }, - "volumeAttributesClassName": { + "metrics": { SchemaProps: spec.SchemaProps{ - Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.", - Type: []string{"string"}, - Format: "", + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost"), }, }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/core/v1.TypedObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Metrics", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.OpenCost", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ClusterStatus holds the user status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "The pods metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"), + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "reason": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec"), + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TemplateMetadata"}, - } -} - -func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "disabled": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, - Format: "", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, } } @@ -26447,149 +24063,6 @@ func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common. } } -func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodEnvironmentTemplate this references", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version of DevPodEnvironmentTemplate this references", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "repository": { - SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "revision": { - SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", - Type: []string{"string"}, - Format: "", - }, - }, - "subpath": { - SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", - Type: []string{"string"}, - Format: "", - }, - }, - "useProjectGitCredentials": { - 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: "", - }, - }, - }, - Required: []string{"repository"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_GitProjectCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { - SchemaProps: spec.SchemaProps{ - Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", - Type: []string{"string"}, - Format: "", - }, - }, - "tokenSecretRef": { - SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", - Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/core/v1.SecretKeySelector"}, - } -} - -func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "http": { - SchemaProps: spec.SchemaProps{ - Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), - }, - }, - "ssh": { - SchemaProps: spec.SchemaProps{ - Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.GitProjectCredentials"}, - } -} - func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -27098,6 +24571,113 @@ func schema_pkg_apis_storage_v1_KindSecretRef(ref common.ReferenceCallback) comm } } +func schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "KubeVirtNodeTypeSpec defines single NodeType spec for KubeVirt provider type.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + "virtualMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualMachineTemplate is a full KubeVirt VirtualMachine template to use for this NodeType. This is mutually exclusive with MergeVirtualMachineTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "mergeVirtualMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "MergeVirtualMachineTemplate will be merged into base VirtualMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with VirtualMachineTemplate", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "maxCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + } +} + func schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -27267,6 +24847,50 @@ func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref common.Referenc } } +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: "Labels holds labels to add to this managed NodeType.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations holds annotations to add to this managed NodeType.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -27350,29 +24974,109 @@ func schema_pkg_apis_storage_v1_Metrics(ref common.ReferenceCallback) common.Ope } } -func schema_pkg_apis_storage_v1_NamespacePattern(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{ - "space": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Space holds the namespace pattern to use for space instances", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "virtualCluster": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "devPodWorkspace": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspace holds the namespace pattern to use for DevPod workspaces", + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "space": { + SchemaProps: spec.SchemaProps{ + Description: "Space holds the namespace pattern to use for space instances", + Type: []string{"string"}, + Format: "", + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", Type: []string{"string"}, Format: "", }, @@ -27700,7 +25404,287 @@ func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim"), + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeClaimSpec defines spec of node claim.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "taints": { + SchemaProps: spec.SchemaProps{ + Description: "Taints will be applied to the NodeClaim's node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Taint"), + }, + }, + }, + }, + }, + "startupTaints": { + SchemaProps: spec.SchemaProps{ + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.Taint"), + }, + }, + }, + }, + }, + "kubeletArgs": { + SchemaProps: spec.SchemaProps{ + Description: "KubeletArgs are additional arguments to pass to the kubelet.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "desiredCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties are extra properties for the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "typeRef": { + SchemaProps: spec.SchemaProps{ + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "VClusterRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node claim is for a control plane node. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"providerRef", "vClusterRef"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_NodeClaimStatus(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 NodeClaim.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition"}, + } +} + +func schema_pkg_apis_storage_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeEnvironment holds the node environment for vCluster.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironmentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_storage_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeEnvironmentList contains a list of NodeEnvironment", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironment"), }, }, }, @@ -27711,48 +25695,20 @@ func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeEnvironment", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_pkg_apis_storage_v1_NodeClaimSpec(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{ - Description: "NodeClaimSpec defines spec of node claim.", + Description: "NodeEnvironmentSpec defines spec of node environment.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "taints": { - SchemaProps: spec.SchemaProps{ - Description: "Taints will be applied to the NodeClaim's node.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Taint"), - }, - }, - }, - }, - }, - "startupTaints": { - SchemaProps: spec.SchemaProps{ - Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.Taint"), - }, - }, - }, - }, - }, - "kubeletArgs": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "KubeletArgs are additional arguments to pass to the kubelet.", + Description: "Properties are the properties for the NodeEnvironment.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -27766,37 +25722,10 @@ func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) comm }, }, }, - "desiredCapacity": { - SchemaProps: spec.SchemaProps{ - Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "requirements": { - SchemaProps: spec.SchemaProps{ - Description: "Requirements are the requirements for the NodeClaim.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), - }, - }, - }, - }, - }, - "nodeTypeRef": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "NodeTypeRef is the name of the NodeType that this NodeClaim is based on.", + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Default: "", Type: []string{"string"}, Format: "", }, @@ -27809,16 +25738,22 @@ func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) comm Format: "", }, }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node environment is a control plane environment. This is intentionally not omitempty as we want to ensure that the control plane is always set for easier checking in for example terraform templates.", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, }, - Required: []string{"vClusterRef"}, + Required: []string{"providerRef", "vClusterRef"}, }, }, - Dependencies: []string{ - "k8s.io/api/core/v1.NodeSelectorRequirement", "k8s.io/api/core/v1.Taint", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_NodeClaimStatus(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{ @@ -27826,7 +25761,7 @@ func schema_pkg_apis_storage_v1_NodeClaimStatus(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "phase": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeClaim.", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", Type: []string{"string"}, Format: "", }, @@ -27958,6 +25893,80 @@ func schema_pkg_apis_storage_v1_NodeProviderBCM(ref common.ReferenceCallback) co } } +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{ + "infrastructureMachineTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "InfrastructureMachineTemplate is a template for the infrastructure machine, e.g. AWSMachine", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "bootstrapConfigTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "BootstrapConfigTemplate is a template for the bootstrap config. Currently only KubeadmConfig is supported.", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef"), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPINodeTypeSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ClusterAPINodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + } +} + +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{ + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster is the connected cluster the VMs will be created in", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace inside the connected cluster holding VMs", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"cluster"}, + }, + }, + } +} + func schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -27965,24 +25974,38 @@ func schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref common.ReferenceCallbac Description: "NodeProviderKubeVirt defines the configuration for a KubeVirt node provider.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "virtualClusterRef": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "If KubeVirt is deployed inside one of the vClusters, reference this vCluster here. Otherwise it will be assumed to run in the same host cluster as platform.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"), + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef"), }, }, - "targetNamespace": { + "virtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "TargetNamespace is the namespace within the KubeVirt cluster where the VirtualMachines and their secrets will be created.", - Type: []string{"string"}, - Format: "", + Description: "VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider", + Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.KubeVirtNodeTypeSpec"), + }, + }, + }, }, }, }, + Required: []string{"nodeTypes"}, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VirtualClusterClusterRef"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.KubeVirtNodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterRef", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, } } @@ -28035,26 +26058,6 @@ func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) c } } -func schema_pkg_apis_storage_v1_NodeProviderPods(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeProviderPodsSpec defines the configuration for a pod-based node provider.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "image": { - SchemaProps: spec.SchemaProps{ - Description: "Image is the container image to use for the pod-based node provider.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -28062,10 +26065,20 @@ func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) c Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "pods": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Pods configures a node provider based on Kubernetes Pods. This can be used for simpler, pod-based node provisioning for testing or demos.", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"), + 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": { @@ -28080,6 +26093,18 @@ func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) c Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, + "terraform": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"), + }, + }, + "clusterAPI": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterAPI configures a node provider using Cluster API, enabling nodes to be provisioned using Cluster API. This requires the vCluster to be deployed with Cluster API as well.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI"), + }, + }, "displayName": { SchemaProps: spec.SchemaProps{ Description: "DisplayName is the name that should be displayed in the UI", @@ -28091,7 +26116,7 @@ func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderPods"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderBCM", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderClusterAPI", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeProviderTerraform"}, } } @@ -28145,6 +26170,46 @@ func schema_pkg_apis_storage_v1_NodeProviderStatus(ref common.ReferenceCallback) } } +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: "NodeTemplate is the template to use for this node provider.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "nodeEnvironmentTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NodeEnvironmentTemplate is the template to use for this node environment.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeEnvironmentTemplate"), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeTypeSpec"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeEnvironmentTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformNodeTypeSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"}, + } +} + func schema_pkg_apis_storage_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -28197,30 +26262,27 @@ func schema_pkg_apis_storage_v1_NodeTypeCapacity(ref common.ReferenceCallback) c return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + 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", }, }, - "available": { - SchemaProps: spec.SchemaProps{ - Description: "Available is the number of available nodes of this type", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "provisioned": { + "claimed": { SchemaProps: spec.SchemaProps{ - Description: "Provisioned is the number of already provisioned nodes of this type", + Description: "Claimed is the number of already claimed nodes of this type", + Default: 0, Type: []string{"integer"}, Format: "int32", }, }, }, + Required: []string{"total", "claimed"}, }, }, } @@ -28317,20 +26379,6 @@ func schema_pkg_apis_storage_v1_NodeTypeSpec(ref common.ReferenceCallback) commo Format: "", }, }, - "zone": { - SchemaProps: spec.SchemaProps{ - Description: "Zone is the zone of the node type. If empty, will default to \"global\".", - Type: []string{"string"}, - Format: "", - }, - }, - "region": { - SchemaProps: spec.SchemaProps{ - Description: "Region is the region of the node type.", - Type: []string{"string"}, - Format: "", - }, - }, "properties": { SchemaProps: spec.SchemaProps{ Description: "Properties returns a flexible set of properties that may be selected for scheduling.", @@ -28417,12 +26465,34 @@ func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) com Format: "", }, }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", + Type: []string{"integer"}, + Format: "int64", + }, + }, "capacity": { SchemaProps: spec.SchemaProps{ Description: "Capacity is the capacity of the node type.", + Default: map[string]interface{}{}, Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"), }, }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements is the calculated requirements based of the properties for the node type.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), + }, + }, + }, + }, + }, "conditions": { SchemaProps: spec.SchemaProps{ Description: "Conditions holds several conditions the node type might be in", @@ -28441,7 +26511,7 @@ func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity"}, + "github.com/loft-sh/agentapi/v4/pkg/apis/loft/storage/v1.Condition", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeCapacity", "k8s.io/api/core/v1.NodeSelectorRequirement"}, } } @@ -28549,34 +26619,6 @@ func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common } } -func schema_pkg_apis_storage_v1_PresetRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodWorkspacePreset", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version holds the preset version to use. Version is expected to be in semantic versioning format. Alternatively, you can also exchange major, minor or patch with an 'x' to tell Loft to automatically select the latest major, minor or patch version.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - } -} - func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -28722,7 +26764,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common }, "allowedRunners": { SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", + Description: "AllowedRunners are target runners that are allowed to target with", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -28814,17 +26856,11 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec"), }, }, - "devPod": { - SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Access", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedCluster", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedRunner", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.AllowedTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Member", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NamespacePattern", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.Quotas", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequirePreset", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.RequireTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.UserOrTeam", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } @@ -29239,25 +27275,6 @@ func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) co } } -func schema_pkg_apis_storage_v1_RunnerRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "runner": { - SchemaProps: spec.SchemaProps{ - Description: "Runner is the connected runner the workspace will be created in", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - func schema_pkg_apis_storage_v1_SSOIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -30988,6 +29005,263 @@ func schema_pkg_apis_storage_v1_TemplateRef(ref common.ReferenceCallback) common } } +func schema_pkg_apis_storage_v1_TerraformNodeEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "inline": { + SchemaProps: spec.SchemaProps{ + Description: "Inline is the inline template to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "git": { + SchemaProps: spec.SchemaProps{ + Description: "Git is the git repository to use for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", + Type: []string{"string"}, + Format: "", + }, + }, + "infrastructure": { + SchemaProps: spec.SchemaProps{ + Description: "Infrastructure is the infrastructure template to use for this node environment.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "kubernetes": { + SchemaProps: spec.SchemaProps{ + Description: "Kubernetes is the kubernetes template to use for this node environment.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"}, + } +} + +func schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "properties": { + SchemaProps: spec.SchemaProps{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of this node type.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + "nodeTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTemplate is the template to use for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "maxCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.NodeTypeOverhead", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplate", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + } +} + +func schema_pkg_apis_storage_v1_TerraformTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "inline": { + SchemaProps: spec.SchemaProps{ + Description: "Inline is the inline template to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, + "git": { + SchemaProps: spec.SchemaProps{ + Description: "Git is the git repository to use for this node type.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"), + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.TerraformTemplateSourceGit"}, + } +} + +func schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "Repository is the repository to clone", + Type: []string{"string"}, + Format: "", + }, + }, + "branch": { + SchemaProps: spec.SchemaProps{ + Description: "Branch is the branch to use", + Type: []string{"string"}, + Format: "", + }, + }, + "commit": { + SchemaProps: spec.SchemaProps{ + Description: "Commit is the commit SHA to checkout", + Type: []string{"string"}, + Format: "", + }, + }, + "tag": { + SchemaProps: spec.SchemaProps{ + Description: "Tag is the tag reference to checkout", + Type: []string{"string"}, + Format: "", + }, + }, + "subPath": { + SchemaProps: spec.SchemaProps{ + Description: "SubPath is the subpath in the repo to use", + Type: []string{"string"}, + Format: "", + }, + }, + "credentials": { + SchemaProps: spec.SchemaProps{ + Description: "Credentials is the reference to a secret containing the username and password for the git repository.", + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"), + }, + }, + "fetchInterval": { + SchemaProps: spec.SchemaProps{ + Description: "FetchInterval is the interval to use for refetching the git repository. Defaults to 5m. Refetching only checks for remote changes but does not do a complete repull.", + Type: []string{"string"}, + Format: "", + }, + }, + "extraEnv": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraEnv is the extra environment variables to use for the clone", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/storage/v1.SecretRef"}, + } +} + func schema_pkg_apis_storage_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -31894,6 +30168,13 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceC Format: "", }, }, + "standalone": { + SchemaProps: spec.SchemaProps{ + Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, @@ -31936,6 +30217,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.", @@ -32539,165 +30827,76 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.Referen } } -func schema_pkg_apis_storage_v1_WorkspaceRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodWorkspaceTemplate this references", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the cluster holding this workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"), - }, - }, - "virtualCluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the virtual cluster holding this workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"), - }, - }, - "space": { - SchemaProps: spec.SchemaProps{ - Description: "Space is the reference to the space holding this workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName", "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetNamespace"}, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { +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: "", - }, - }, - "context": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "provider": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "state": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { + "Connect": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the cluster holding this workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "virtualCluster": { + "Frame": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the virtual cluster holding this workspace", - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/storage/v1.WorkspaceTargetName"}, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceTargetName(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "Font": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the target", - Default: "", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"name"}, + Required: []string{"Script", "Connect", "Frame", "Font"}, }, }, } } -func schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref common.ReferenceCallback) common.OpenAPIDefinition { +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{ - "name": { + "block": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the object", - Default: "", - Type: []string{"string"}, + Description: "Block determines if requests to external URLs from the UI should be blocked", + Type: []string{"boolean"}, Format: "", }, }, - "namespace": { + "allow": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace within the cluster.", - Type: []string{"string"}, - Format: "", + 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: "", + }, + }, + }, }, }, }, - Required: []string{"name"}, }, }, } @@ -32896,11 +31095,18 @@ func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common }, }, }, + "externalURLs": { + SchemaProps: spec.SchemaProps{ + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, } } @@ -33011,6 +31217,13 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O }, }, }, + "externalURLs": { + SchemaProps: spec.SchemaProps{ + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs"), + }, + }, "productName": { SchemaProps: spec.SchemaProps{ Description: "Name is the name of the product", @@ -33039,6 +31252,20 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O Format: "", }, }, + "availableVClusterVersions": { + SchemaProps: spec.SchemaProps{ + Description: "AvailableVClusterVersions lists all virtual cluster versions available to the platform instance", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.VClusterVersion"), + }, + }, + }, + }, + }, "loftHosted": { SchemaProps: spec.SchemaProps{ Description: "LoftHosted indicates whether the vCluster Platform instance is hosted and operated by Loft Labs Inc.", @@ -33050,7 +31277,7 @@ func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton"}, + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.ExternalURLs", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.NavBarButton", "github.com/loft-sh/api/v4/pkg/apis/ui/v1.VClusterVersion"}, } } @@ -33060,6 +31287,58 @@ func schema_pkg_apis_ui_v1_UISettingsStatus(ref common.ReferenceCallback) common SchemaProps: spec.SchemaProps{ Description: "UISettingsStatus holds the status", Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "csps": { + SchemaProps: spec.SchemaProps{ + Description: "Csps holds Content Security Policies", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/ui/v1.CspPolicy"), + }, + }, + }, + }, + }, + "cspConfig": { + SchemaProps: spec.SchemaProps{ + Description: "CspConfig holds the raw csp config from the user", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/ui/v1.CspPolicy"}, + } +} + +func schema_pkg_apis_ui_v1_VClusterVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "tagName": { + SchemaProps: spec.SchemaProps{ + Description: "TagName is the full tag name", + Type: []string{"string"}, + Format: "", + }, + }, + "prerelease": { + SchemaProps: spec.SchemaProps{ + Description: "PreRelease determines if the version is marked as prerelease", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, }, }, } @@ -33530,10 +31809,9 @@ 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\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"IfNeeded", "Never"}, }, }, "matchConditions": { @@ -34792,13 +33070,470 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationLis }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of ValidatingWebhookConfiguration.", + Description: "List of ValidatingWebhookConfiguration.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_k8sio_api_admissionregistration_v1_Validation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Validation specifies the CEL expression which is used to apply the validation.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + Type: []string{"string"}, + Format: "", + }, + }, + "messageExpression": { + SchemaProps: spec.SchemaProps{ + Description: "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"expression"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1_Variable(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "expression"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "WebhookClientConfig contains the information to make a TLS connection with the webhook", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "url": { + SchemaProps: spec.SchemaProps{ + Description: "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + Type: []string{"string"}, + Format: "", + }, + }, + "service": { + SchemaProps: spec.SchemaProps{ + Description: "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", + Ref: ref("k8s.io/api/admissionregistration/v1.ServiceReference"), + }, + }, + "caBundle": { + SchemaProps: spec.SchemaProps{ + Description: "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1.ServiceReference"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_ApplyConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ApplyConfiguration defines the desired configuration values of an object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec\n\nApply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:\n\n\tObject{\n\t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\t}\n\nApply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.\n\nCEL expressions have access to the object types needed to create apply configurations:\n\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AuditAnnotation describes how to produce an audit annotation for an API request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "key": { + SchemaProps: spec.SchemaProps{ + Description: "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "valueExpression": { + SchemaProps: spec.SchemaProps{ + Description: "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"key", "valueExpression"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ExpressionWarning is a warning information that targets a specific expression.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "fieldRef": { + SchemaProps: spec.SchemaProps{ + Description: "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "warning": { + SchemaProps: spec.SchemaProps{ + Description: "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"fieldRef", "warning"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_JSONPatch(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "JSONPatch defines a JSON Patch.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec\n\nexpression must return an array of JSONPatch values.\n\nFor example, this CEL expression returns a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo define an object for the patch value, use Object types. For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\",\n\t value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value: \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,\n integer, array, map or object. If set, the 'path' and 'from' fields must be set to a\n [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nCEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "expression": { + SchemaProps: spec.SchemaProps{ + Description: "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "expression"}, + }, + }, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespaceSelector": { + SchemaProps: spec.SchemaProps{ + Description: "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "objectSelector": { + SchemaProps: spec.SchemaProps{ + Description: "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + }, + }, + "resourceRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + }, + }, + }, + }, + }, + "excludeResourceRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + }, + }, + }, + }, + }, + "matchPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Specification of the desired behavior of the MutatingAdmissionPolicy.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicySpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicySpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Specification of the desired behavior of the MutatingAdmissionPolicyBinding.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBindingSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "List of PolicyBinding.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration"), + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBinding"), }, }, }, @@ -34809,287 +33544,195 @@ func schema_k8sio_api_admissionregistration_v1_ValidatingWebhookConfigurationLis }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ValidatingWebhookConfiguration", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicyBinding", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_k8sio_api_admissionregistration_v1_Validation(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyBindingSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Validation specifies the CEL expression which is used to apply the validation.", - 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.", + Description: "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "expression": { - SchemaProps: spec.SchemaProps{ - Description: "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name", "expression"}, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1_WebhookClientConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "WebhookClientConfig contains the information to make a TLS connection with the webhook", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "url": { + "policyName": { SchemaProps: spec.SchemaProps{ - Description: "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + Description: "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", Type: []string{"string"}, Format: "", }, }, - "service": { + "paramRef": { SchemaProps: spec.SchemaProps{ - Description: "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.", - Ref: ref("k8s.io/api/admissionregistration/v1.ServiceReference"), + Description: "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.ParamRef"), }, }, - "caBundle": { + "matchResources": { SchemaProps: spec.SchemaProps{ - Description: "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", - Type: []string{"string"}, - Format: "byte", + Description: "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchResources"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1.ServiceReference"}, + "k8s.io/api/admissionregistration/v1beta1.MatchResources", "k8s.io/api/admissionregistration/v1beta1.ParamRef"}, } } -func schema_k8sio_api_admissionregistration_v1beta1_AuditAnnotation(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AuditAnnotation describes how to produce an audit annotation for an API request.", + Description: "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "key": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "valueExpression": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"key", "valueExpression"}, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1beta1_ExpressionWarning(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ExpressionWarning is a warning information that targets a specific expression.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "fieldRef": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), }, }, - "warning": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "List of ValidatingAdmissionPolicy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicy"), + }, + }, + }, }, }, }, - Required: []string{"fieldRef", "warning"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.MutatingAdmissionPolicy", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_k8sio_api_admissionregistration_v1beta1_MatchCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + Description: "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "paramKind": { SchemaProps: spec.SchemaProps{ - Description: "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.ParamKind"), }, }, - "expression": { + "matchConstraints": { SchemaProps: spec.SchemaProps{ - Description: "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchResources"), }, }, - }, - Required: []string{"name", "expression"}, - }, - }, - } -} - -func schema_k8sio_api_admissionregistration_v1beta1_MatchResources(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "namespaceSelector": { - SchemaProps: spec.SchemaProps{ - Description: "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + "variables": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "objectSelector": { SchemaProps: spec.SchemaProps{ - Description: "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.", - Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), + Description: "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/admissionregistration/v1beta1.Variable"), + }, + }, + }, }, }, - "resourceRules": { + "mutations": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + Description: "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + Ref: ref("k8s.io/api/admissionregistration/v1beta1.Mutation"), }, }, }, }, }, - "excludeResourceRules": { + "failurePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + Type: []string{"string"}, + Format: "", + }, + }, + "matchConditions": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge", }, }, SchemaProps: spec.SchemaProps{ - Description: "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + Description: "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations"), + Ref: ref("k8s.io/api/admissionregistration/v1beta1.MatchCondition"), }, }, }, }, }, - "matchPolicy": { + "reinvocationPolicy": { SchemaProps: spec.SchemaProps{ - Description: "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + Description: "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.", Type: []string{"string"}, Format: "", }, }, }, }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, - }, }, Dependencies: []string{ - "k8s.io/api/admissionregistration/v1beta1.NamedRuleWithOperations", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, + "k8s.io/api/admissionregistration/v1beta1.MatchCondition", "k8s.io/api/admissionregistration/v1beta1.MatchResources", "k8s.io/api/admissionregistration/v1beta1.Mutation", "k8s.io/api/admissionregistration/v1beta1.ParamKind", "k8s.io/api/admissionregistration/v1beta1.Variable"}, } } @@ -35345,6 +33988,43 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhookConfiguration } } +func schema_k8sio_api_admissionregistration_v1beta1_Mutation(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Mutation specifies the CEL expression which is used to apply the Mutation.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "patchType": { + SchemaProps: spec.SchemaProps{ + Description: "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.\n\n\nPossible enum values:\n - `\"ApplyConfiguration\"` ApplyConfiguration indicates that the mutation is using apply configuration to mutate the object.\n - `\"JSONPatch\"` JSONPatch indicates that the object is mutated through JSON Patch.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"ApplyConfiguration", "JSONPatch"}, + }, + }, + "applyConfiguration": { + SchemaProps: spec.SchemaProps{ + Description: "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.ApplyConfiguration"), + }, + }, + "jsonPatch": { + SchemaProps: spec.SchemaProps{ + Description: "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.", + Ref: ref("k8s.io/api/admissionregistration/v1beta1.JSONPatch"), + }, + }, + }, + Required: []string{"patchType"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/admissionregistration/v1beta1.ApplyConfiguration", "k8s.io/api/admissionregistration/v1beta1.JSONPatch"}, + } +} + func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -37505,7 +36185,7 @@ func schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref common.ReferenceCallbac }, "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), }, }, @@ -38673,6 +37353,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", }, @@ -40254,7 +38935,7 @@ func schema_k8sio_api_apps_v1beta2_RollingUpdateDaemonSet(ref common.ReferenceCa }, "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), }, }, @@ -40381,6 +39062,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", }, @@ -41882,13 +40564,13 @@ func schema_k8sio_api_authorization_v1_ResourceAttributes(ref common.ReferenceCa }, "fieldSelector": { SchemaProps: spec.SchemaProps{ - Description: "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).", + Description: "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.", Ref: ref("k8s.io/api/authorization/v1.FieldSelectorAttributes"), }, }, "labelSelector": { SchemaProps: spec.SchemaProps{ - Description: "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default).", + Description: "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.", Ref: ref("k8s.io/api/authorization/v1.LabelSelectorAttributes"), }, }, @@ -43968,6 +42650,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", }, @@ -46281,7 +44964,7 @@ func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.Open }, "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", }, @@ -46344,7 +45027,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"}, @@ -46677,7 +45360,7 @@ func schema_k8sio_api_batch_v1_SuccessPolicy(ref common.ReferenceCallback) commo }, }, SchemaProps: spec.SchemaProps{ - Description: "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + Description: "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -49418,7 +48101,7 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, SchemaProps: spec.SchemaProps{ - Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + Description: "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -49482,11 +48165,30 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + Description: "RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", Type: []string{"string"}, Format: "", }, }, + "restartPolicyRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerRestartRule"), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -49614,7 +48316,45 @@ func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.ContainerRestartRule", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + } +} + +func schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "containerName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the container requesting resources.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "resourceName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the extended resource in that container which gets backed by DRA.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "requestName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the request in the special ResourceClaim which corresponds to the extended resource.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"containerName", "resourceName", "requestName"}, + }, + }, } } @@ -49740,6 +48480,76 @@ func schema_k8sio_api_core_v1_ContainerResizePolicy(ref common.ReferenceCallback } } +func schema_k8sio_api_core_v1_ContainerRestartRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerRestartRule describes how a container exit is handled.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "action": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.", + Type: []string{"string"}, + Format: "", + }, + }, + "exitCodes": { + SchemaProps: spec.SchemaProps{ + Description: "Represents the exit codes to check on container exits.", + Ref: ref("k8s.io/api/core/v1.ContainerRestartRuleOnExitCodes"), + }, + }, + }, + Required: []string{"action"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ContainerRestartRuleOnExitCodes"}, + } +} + +func schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "operator": { + SchemaProps: spec.SchemaProps{ + Description: "Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the\n set of specified values.\n- NotIn: the requirement is satisfied if the container exit code is\n not in the set of specified values.", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Specifies the set of values to check for container exit codes. At most 255 elements are allowed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + }, + Required: []string{"operator"}, + }, + }, + } +} + func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -50525,7 +49335,7 @@ func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common Properties: map[string]spec.Schema{ "prefix": { SchemaProps: spec.SchemaProps{ - Description: "Optional text to prepend to the name of each environment variable. 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: "", }, @@ -50559,7 +49369,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: "", @@ -50618,11 +49428,17 @@ func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common. Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), }, }, + "fileKeyRef": { + SchemaProps: spec.SchemaProps{ + Description: "FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.", + Ref: ref("k8s.io/api/core/v1.FileKeySelector"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, + "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.FileKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, } } @@ -50727,7 +49543,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, SchemaProps: spec.SchemaProps{ - Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + Description: "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -50791,11 +49607,30 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + Description: "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", Type: []string{"string"}, Format: "", }, }, + "restartPolicyRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerRestartRule"), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -50930,7 +49765,7 @@ func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.ContainerRestartRule", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, } } @@ -51035,7 +49870,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, SchemaProps: spec.SchemaProps{ - Description: "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + Description: "List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -51099,11 +49934,30 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + Description: "Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers.", Type: []string{"string"}, Format: "", }, }, + "restartPolicyRules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerRestartRule"), + }, + }, + }, + }, + }, "volumeMounts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -51231,7 +50085,7 @@ func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallb }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, + "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.ContainerResizePolicy", "k8s.io/api/core/v1.ContainerRestartRule", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, } } @@ -51601,6 +50455,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{ @@ -51910,7 +50815,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: "", @@ -54620,7 +53525,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall }, "volumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/", Type: []string{"string"}, Format: "", }, @@ -54745,14 +53650,14 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa }, "currentVolumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + Description: "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim", Type: []string{"string"}, Format: "", }, }, "modifyVolumeStatus": { SchemaProps: spec.SchemaProps{ - Description: "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + Description: "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted.", Ref: ref("k8s.io/api/core/v1.ModifyVolumeStatus"), }, }, @@ -55257,7 +54162,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, "volumeAttributesClassName": { SchemaProps: spec.SchemaProps{ - Description: "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + Description: "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process.", Type: []string{"string"}, Format: "", }, @@ -55574,7 +54479,7 @@ func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) comm }, }, SchemaProps: spec.SchemaProps{ - Description: "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + Description: "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -55656,6 +54561,62 @@ func schema_k8sio_api_core_v1_PodAttachOptions(ref common.ReferenceCallback) com } } +func schema_k8sio_api_core_v1_PodCertificateProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "signerName": { + SchemaProps: spec.SchemaProps{ + Description: "Kubelet's generated CSRs will be addressed to this signer.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyType": { + SchemaProps: spec.SchemaProps{ + Description: "The type of keypair Kubelet will generate for the pod.\n\nValid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\".", + Type: []string{"string"}, + Format: "", + }, + }, + "maxExpirationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "maxExpirationSeconds is the maximum lifetime permitted for the certificate.\n\nKubelet copies this value verbatim into the PodCertificateRequests it generates for this projection.\n\nIf omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days).\n\nThe signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "credentialBundlePath": { + SchemaProps: spec.SchemaProps{ + Description: "Write the credential bundle at this path in the projected volume.\n\nThe credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key.\n\nThe remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates).\n\nUsing credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key.", + Type: []string{"string"}, + Format: "", + }, + }, + "keyPath": { + SchemaProps: spec.SchemaProps{ + Description: "Write the key at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + Type: []string{"string"}, + Format: "", + }, + }, + "certificateChainPath": { + SchemaProps: spec.SchemaProps{ + Description: "Write the certificate chain at this path in the projected volume.\n\nMost applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"signerName", "keyType"}, + }, + }, + } +} + func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -55905,6 +54866,49 @@ func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) commo } } +func schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "requestMappings": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "RequestMappings identifies the mapping of to device request in the generated ResourceClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/core/v1.ContainerExtendedResourceRequest"), + }, + }, + }, + }, + }, + "resourceClaimName": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"requestMappings", "resourceClaimName"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ContainerExtendedResourceRequest"}, + } +} + func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -56622,7 +55626,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: "", }, @@ -56857,7 +55861,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "os": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", + Description: "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.resources - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup", Ref: ref("k8s.io/api/core/v1.PodOS"), }, }, @@ -56918,10 +55922,17 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, "resources": { SchemaProps: spec.SchemaProps{ - Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", + Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\", \"memory\" and \"hugepages-\" resource names only. ResourceClaims are not supported.\n\nThis field enables fine-grained control over resource allocation for the entire pod, allowing resource sharing among containers in a pod.\n\nThis is an alpha field and requires enabling the PodLevelResources feature gate.", Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), }, }, + "hostnameOverride": { + SchemaProps: spec.SchemaProps{ + Description: "HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false.\n\nThis field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled.", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"containers"}, }, @@ -57159,11 +56170,17 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, }, + "extendedResourceClaimStatus": { + SchemaProps: spec.SchemaProps{ + Description: "Status of extended resource claim backed by DRA.", + Ref: ref("k8s.io/api/core/v1.PodExtendedResourceClaimStatus"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.HostIP", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodIP", "k8s.io/api/core/v1.PodResourceClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, + "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.HostIP", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodExtendedResourceClaimStatus", "k8s.io/api/core/v1.PodIP", "k8s.io/api/core/v1.PodResourceClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, } } @@ -58560,7 +57577,7 @@ func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) }, }, SchemaProps: spec.SchemaProps{ - Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -60338,7 +59355,7 @@ func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPI }, "timeAdded": { SchemaProps: spec.SchemaProps{ - Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", + Description: "TimeAdded represents the time at which the taint was added.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), }, }, @@ -60717,13 +59734,13 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "iscsi": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), }, }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -60735,7 +59752,7 @@ func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAP }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, @@ -61060,11 +60077,17 @@ func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) com Ref: ref("k8s.io/api/core/v1.ClusterTrustBundleProjection"), }, }, + "podCertificate": { + SchemaProps: spec.SchemaProps{ + Description: "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues.", + Ref: ref("k8s.io/api/core/v1.PodCertificateProjection"), + }, + }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.ClusterTrustBundleProjection", "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, + "k8s.io/api/core/v1.ClusterTrustBundleProjection", "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.PodCertificateProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, } } @@ -61162,13 +60185,13 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "iscsi": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md", + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), }, }, "glusterfs": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md", + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), }, }, @@ -61180,7 +60203,7 @@ func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common. }, "rbd": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md", + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), }, }, @@ -63611,7 +62634,7 @@ func schema_k8sio_api_extensions_v1beta1_RollingUpdateDaemonSet(ref common.Refer }, "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.", Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), }, }, @@ -63710,6 +62733,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", }, @@ -64906,7 +63930,7 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba Properties: map[string]spec.Schema{ "podSelector": { SchemaProps: spec.SchemaProps{ - Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.", + Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector.", Default: map[string]interface{}{}, Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), }, @@ -64971,7 +63995,6 @@ func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallba }, }, }, - Required: []string{"podSelector"}, }, }, Dependencies: []string{ @@ -69412,7 +68435,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: "", }, @@ -69493,7 +68516,7 @@ func schema_k8sio_api_storage_v1_CSIDriverSpec(ref common.ReferenceCallback) com }, "nodeAllocatableUpdatePeriodSeconds": { SchemaProps: spec.SchemaProps{ - Description: "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + 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", }, @@ -70237,6 +69260,118 @@ func schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref common.ReferenceCall } } +func schema_k8sio_api_storage_v1_VolumeAttributesClass(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "driverName": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the CSI driver This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"driverName"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttributesClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of VolumeAttributesClass objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/storage/v1.VolumeAttributesClass"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/storage/v1.VolumeAttributesClass", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -70259,7 +69394,7 @@ func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) commo }, "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.", + 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", }, @@ -70878,7 +70013,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: "", }, @@ -70959,7 +70094,7 @@ func schema_k8sio_api_storage_v1beta1_CSIDriverSpec(ref common.ReferenceCallback }, "nodeAllocatableUpdatePeriodSeconds": { SchemaProps: spec.SchemaProps{ - Description: "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + 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", }, @@ -71836,7 +70971,7 @@ func schema_k8sio_api_storage_v1beta1_VolumeError(ref common.ReferenceCallback) }, "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.", + 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", }, 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 0bfeeadc..cecb2d73 100644 --- a/pkg/product/strings.go +++ b/pkg/product/strings.go @@ -9,8 +9,6 @@ func LoginCmd() string { loginCmd := "loft login" switch Name() { - case licenseapi.DevPodPro: - return "devpod login" case licenseapi.VClusterPro: 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: From aefaefcabab301e95a0c7f74b0900f672f5ae5c0 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 20 Nov 2025 13:04:36 +0000 Subject: [PATCH 26/30] [skip ci] repo-sync --- go.mod | 25 ++++---- go.sum | 60 ++++++++++--------- .../management/zz_generated.api.register.go | 2 +- pkg/apis/ui/v1/ui_types.go | 12 ++-- pkg/openapi/zz_generated.openapi.go | 22 +++++-- 5 files changed, 72 insertions(+), 49 deletions(-) diff --git a/go.mod b/go.mod index efee0e5f..ffb3ca15 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7 - github.com/loft-sh/agentapi/v4 v4.6.0-alpha.2 + github.com/loft-sh/agentapi/v4 v4.6.0-next.1 github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 k8s.io/api v0.34.0 k8s.io/apimachinery v0.34.0 @@ -21,6 +21,7 @@ require ( require ( cel.dev/expr v0.24.0 // indirect + github.com/Masterminds/semver/v3 v3.4.0 // indirect github.com/NYTimes/gziphandler v1.1.1 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect github.com/beorn7/perks v1.0.1 // indirect @@ -35,7 +36,7 @@ require ( github.com/felixge/httpsnoop v1.0.4 // 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.2 // 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 @@ -82,26 +83,26 @@ require ( go.opentelemetry.io/otel/sdk v1.34.0 // indirect go.opentelemetry.io/otel/trace v1.35.0 // indirect go.opentelemetry.io/proto/otlp v1.5.0 // indirect - go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect go.yaml.in/yaml/v2 v2.4.2 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect - golang.org/x/crypto v0.36.0 // indirect + golang.org/x/crypto v0.41.0 // indirect golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect - golang.org/x/mod v0.24.0 // indirect - golang.org/x/net v0.38.0 // indirect + golang.org/x/mod v0.27.0 // indirect + golang.org/x/net v0.43.0 // indirect golang.org/x/oauth2 v0.28.0 // indirect - golang.org/x/sync v0.12.0 // indirect - golang.org/x/sys v0.32.0 // indirect - golang.org/x/term v0.30.0 // indirect - golang.org/x/text v0.23.0 // indirect + golang.org/x/sync v0.16.0 // indirect + golang.org/x/sys v0.35.0 // indirect + golang.org/x/term v0.34.0 // indirect + golang.org/x/text v0.28.0 // indirect golang.org/x/time v0.9.0 // indirect - golang.org/x/tools v0.31.0 // indirect + golang.org/x/tools v0.36.0 // indirect + golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect google.golang.org/grpc v1.72.1 // indirect - google.golang.org/protobuf v1.36.5 // indirect + google.golang.org/protobuf v1.36.7 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index a267b5da..2efc9d4c 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ 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= @@ -36,8 +38,8 @@ github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj2 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= @@ -104,8 +106,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7 h1:118uyjen7cgXFb3DENmkVd9/Fstlf5KQNxx81L3Qqns= github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.6.0-alpha.2 h1:BliOniotqhPg2LqDnKh87lPVF2n0OD8k9qGLu7OAg+U= -github.com/loft-sh/agentapi/v4 v4.6.0-alpha.2/go.mod h1:wsGBAE6FALdvgZcuYw7JwkhcmFI8gn/O/zr3Gij6mqw= +github.com/loft-sh/agentapi/v4 v4.6.0-next.1 h1:sjAaGmK+fovHQ3kr0w/inmOnEYqoA4hxV8suj62O8G4= +github.com/loft-sh/agentapi/v4 v4.6.0-next.1/go.mod h1:H/giQpysNecA7wO6tVg+0QaAiQOeNbsIsOTmS+/7tAY= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -122,10 +124,10 @@ 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.23.4 h1:ktYTpKJAVZnDT4VjxSbiBenUjmlL/5QkBEocaWXiQus= -github.com/onsi/ginkgo/v2 v2.23.4/go.mod h1:Bt66ApGPBFzHyR+JO10Zbt0Gsp4uWxu5mIOTusL46e8= -github.com/onsi/gomega v1.37.0 h1:CdEG8g0S133B4OswTDC/5XPSzE1OeP29QOioj2PID2Y= -github.com/onsi/gomega v1.37.0/go.mod h1:8D9+Txp43QWKhM24yyOBEdpkzN8FvJyAwecBgsU4KU0= +github.com/onsi/ginkgo/v2 v2.27.2 h1:LzwLj0b89qtIy6SSASkzlNvX6WktqurSHwkk2ipF/Ns= +github.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo= +github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A= +github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -207,8 +209,6 @@ go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= go.opentelemetry.io/proto/otlp v1.5.0 h1:xJvq7gMzB31/d406fB8U5CBdyQGw4P399D1aQWU/3i4= go.opentelemetry.io/proto/otlp v1.5.0/go.mod h1:keN8WnHxOy8PG0rQZjJJ5A2ebUoafqWp0eVQ4yIXvJ4= -go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= -go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= @@ -222,46 +222,50 @@ 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.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= -golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= +golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 h1:yqrTHse8TCMW1M1ZCP+VAR/l0kKxwaAIqN/il7x4voA= golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8/go.mod h1:tujkw807nyEEAamNbDrEGzRav+ilXA7PCRAd6xsmwiU= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= -golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= +golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ= +golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= -golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= +golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= -golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= +golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= -golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= -golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= +golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= +golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.34.0 h1:O/2T7POpk0ZZ7MAzMeWFSg6S5IpWd/RXDlM9hgM3DR4= +golang.org/x/term v0.34.0/go.mod h1:5jC53AEywhIVebHgPVeg0mj8OD3VO9OzclacVrqpaAw= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= +golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU= -golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ= +golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg= +golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s= +golang.org/x/tools/go/expect v0.1.0-deprecated h1:jY2C5HGYR5lqex3gEniOQL0r7Dq5+VGVgY1nudX5lXY= +golang.org/x/tools/go/expect v0.1.0-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= +golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= +golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated/go.mod h1:RVAQXBGNv1ib0J382/DPCRS/BPnsGebyM1Gj5VSDpG8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -274,8 +278,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA= google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= -google.golang.org/protobuf v1.36.5 h1:tPhr+woSbjfYvY6/GPufUoYizxw1cF/yFoxJ2fmpwlM= -google.golang.org/protobuf v1.36.5/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= +google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= 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= diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index e90dd5a7..e956cbcb 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -2133,7 +2133,7 @@ type KioskStatus struct { } // +genclient -// +genclient:nonNamespaced +// +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type License struct { diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index a7c33141..8d50edf8 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -54,12 +54,16 @@ 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"` - // SmallLogoURL is url pointing to the small logo to use in the Loft UI. This path must be accessible for clients accessing - // the Loft UI! + // 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 diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 02434f45..f4aee360 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -31004,14 +31004,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 Loft UI. This path must be accessible for clients accessing the Loft UI!", + 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: "", }, @@ -31126,14 +31133,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 Loft UI. This path must be accessible for clients accessing the Loft UI!", + 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: "", }, From ae6ea3abd0fa5921c5e39209e9f0788e14138644 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Wed, 3 Dec 2025 12:32:39 +0000 Subject: [PATCH 27/30] [skip ci] repo-sync --- go.mod | 4 +- go.sum | 16 +- .../install/zz_generated.api.register.go | 3 +- pkg/apis/management/v1/license_token_types.go | 30 -- .../management/v1/licenserequest_types.go | 5 +- ...tualclusterinstance_resourceusage_types.go | 29 ++ .../v1/virtualclusterinstance_types.go | 2 + .../v1/zz_generated.api.register.go | 26 +- .../management/v1/zz_generated.conversion.go | 274 +++++++------- .../management/v1/zz_generated.deepcopy.go | 208 ++++++----- .../management/zz_generated.api.register.go | 207 ++--------- pkg/apis/management/zz_generated.deepcopy.go | 208 ++++++----- pkg/apis/zz_generated.api.register.go | 1 - .../management/v1/fake/fake_licensetoken.go | 34 -- .../v1/fake/fake_management_client.go | 4 - .../v1/fake/fake_virtualclusterinstance.go | 12 + .../management/v1/generated_expansion.go | 2 - .../typed/management/v1/licensetoken.go | 54 --- .../typed/management/v1/management_client.go | 5 - .../management/v1/virtualclusterinstance.go | 16 + pkg/informers/externalversions/generic.go | 2 - .../management/v1/interface.go | 7 - .../management/v1/licensetoken.go | 85 ----- .../management/v1/expansion_generated.go | 4 - pkg/listers/management/v1/licensetoken.go | 32 -- pkg/openapi/zz_generated.openapi.go | 341 ++++++++++-------- 26 files changed, 651 insertions(+), 960 deletions(-) delete mode 100644 pkg/apis/management/v1/license_token_types.go create mode 100644 pkg/apis/management/v1/virtualclusterinstance_resourceusage_types.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go delete mode 100644 pkg/clientset/versioned/typed/management/v1/licensetoken.go delete mode 100644 pkg/informers/externalversions/management/v1/licensetoken.go delete mode 100644 pkg/listers/management/v1/licensetoken.go diff --git a/go.mod b/go.mod index ffb3ca15..42d98862 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7 - github.com/loft-sh/agentapi/v4 v4.6.0-next.1 + github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c + github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.1 github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 k8s.io/api v0.34.0 k8s.io/apimachinery v0.34.0 diff --git a/go.sum b/go.sum index 2efc9d4c..92bc3d31 100644 --- a/go.sum +++ b/go.sum @@ -57,8 +57,8 @@ github.com/gobuffalo/flect v1.0.3/go.mod h1:A5msMlrHtLqh9umBSnvabjsMrCcCpAyzglnD 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/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= -github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +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.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= @@ -104,10 +104,10 @@ 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-20251017051510-355f1c3f8fa7 h1:118uyjen7cgXFb3DENmkVd9/Fstlf5KQNxx81L3Qqns= -github.com/loft-sh/admin-apis v0.0.0-20251017051510-355f1c3f8fa7/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.6.0-next.1 h1:sjAaGmK+fovHQ3kr0w/inmOnEYqoA4hxV8suj62O8G4= -github.com/loft-sh/agentapi/v4 v4.6.0-next.1/go.mod h1:H/giQpysNecA7wO6tVg+0QaAiQOeNbsIsOTmS+/7tAY= +github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c h1:wxm+aaqraHv8VRAUMobYj48AHF/Phe7D/itM4zyB13s= +github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.1 h1:Spf6tidLWz4JOGnXHGOeyfAmoCFER/VLo84gRlkX69M= +github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.1/go.mod h1:nnRj+wwUDl0zH+FgFDlVMdZHCvLm+K4lyToFP+5BHyg= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -163,8 +163,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV 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.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.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= diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index c19d54c0..d2d6bcb5 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -64,8 +64,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.License{}, &management.LicenseList{}, &management.LicenseRequest{}, - &management.LicenseToken{}, - &management.LicenseTokenList{}, &management.LoftUpgrade{}, &management.LoftUpgradeList{}, &management.NodeClaim{}, @@ -139,6 +137,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.VirtualClusterInstanceKubeConfig{}, &management.VirtualClusterInstanceLog{}, &management.VirtualClusterNodeAccessKey{}, + &management.VirtualClusterResourceUsage{}, &management.VirtualClusterInstanceShell{}, &management.VirtualClusterInstanceSnapshot{}, &management.VirtualClusterStandalone{}, 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/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/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_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index 2e668c1c..996af48f 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -14,6 +14,7 @@ import ( // +genclient:method=GetExternalDatabase,verb=create,subresource=externaldatabase,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterExternalDatabase // +genclient:method=GetNodeAccessKey,verb=create,subresource=nodeaccesskey,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKey // +genclient:method=GetStandaloneETCDPeers,verb=create,subresource=standalone,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterStandalone +// +genclient:method=GetShellPod,verb=create,subresource=shell,input=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell,result=github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterInstanceShell // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -27,6 +28,7 @@ import ( // +subresource:request=VirtualClusterStandalone,path=standalone,kind=VirtualClusterStandalone,rest=VirtualClusterStandaloneREST // +subresource:request=VirtualClusterInstanceSnapshot,path=snapshot,kind=VirtualClusterInstanceSnapshot,rest=VirtualClusterInstanceSnapshotREST // +subresource:request=VirtualClusterInstanceShell,path=shell,kind=VirtualClusterInstanceShell,rest=VirtualClusterInstanceShellREST +// +subresource:request=VirtualClusterResourceUsage,path=resourceusage,kind=VirtualClusterResourceUsage,rest=VirtualClusterResourceUsageREST type VirtualClusterInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 4ca3f983..54751e4a 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -55,8 +55,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &License{}, &LicenseList{}, &LicenseRequest{}, - &LicenseToken{}, - &LicenseTokenList{}, &LoftUpgrade{}, &LoftUpgradeList{}, &NodeClaim{}, @@ -130,6 +128,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &VirtualClusterInstanceKubeConfig{}, &VirtualClusterInstanceLog{}, &VirtualClusterNodeAccessKey{}, + &VirtualClusterResourceUsage{}, &VirtualClusterInstanceShell{}, &VirtualClusterInstanceSnapshot{}, &VirtualClusterStandalone{}, @@ -229,7 +228,6 @@ var ( nil, management.NewLicenseRequestREST, ), - management.ManagementLicenseTokenStorage, management.ManagementLoftUpgradeStorage, management.ManagementNodeClaimStorage, builders.NewApiResourceWithStorage( @@ -429,6 +427,12 @@ var ( 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 @@ -690,14 +694,6 @@ type LicenseRequestList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type LicenseTokenList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseToken `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type LoftUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` @@ -1090,6 +1086,14 @@ type VirtualClusterNodeAccessKeyList struct { // +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"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index f5c122d3..86ee6cd8 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -1230,46 +1230,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*LicenseToken)(nil), (*management.LicenseToken)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseToken_To_management_LicenseToken(a.(*LicenseToken), b.(*management.LicenseToken), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseToken)(nil), (*LicenseToken)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseToken_To_v1_LicenseToken(a.(*management.LicenseToken), b.(*LicenseToken), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LicenseTokenList)(nil), (*management.LicenseTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseTokenList_To_management_LicenseTokenList(a.(*LicenseTokenList), b.(*management.LicenseTokenList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseTokenList)(nil), (*LicenseTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseTokenList_To_v1_LicenseTokenList(a.(*management.LicenseTokenList), b.(*LicenseTokenList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LicenseTokenSpec)(nil), (*management.LicenseTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(a.(*LicenseTokenSpec), b.(*management.LicenseTokenSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseTokenSpec)(nil), (*LicenseTokenSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(a.(*management.LicenseTokenSpec), b.(*LicenseTokenSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*LicenseTokenStatus)(nil), (*management.LicenseTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(a.(*LicenseTokenStatus), b.(*management.LicenseTokenStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.LicenseTokenStatus)(nil), (*LicenseTokenStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(a.(*management.LicenseTokenStatus), b.(*LicenseTokenStatus), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*LoftUpgrade)(nil), (*management.LoftUpgrade)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_LoftUpgrade_To_management_LoftUpgrade(a.(*LoftUpgrade), b.(*management.LoftUpgrade), scope) }); err != nil { @@ -3270,6 +3230,46 @@ func RegisterConversions(s *runtime.Scheme) error { }); 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 { @@ -6545,7 +6545,7 @@ func Convert_management_LicenseRequestSpec_To_v1_LicenseRequestSpec(in *manageme } func autoConvert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *LicenseRequestStatus, out *management.LicenseRequestStatus, s conversion.Scope) error { - out.Output = (*licenseapi.GenericRequestOutput)(unsafe.Pointer(in.Output)) + out.Output = in.Output return nil } @@ -6555,7 +6555,7 @@ func Convert_v1_LicenseRequestStatus_To_management_LicenseRequestStatus(in *Lice } func autoConvert_management_LicenseRequestStatus_To_v1_LicenseRequestStatus(in *management.LicenseRequestStatus, out *LicenseRequestStatus, s conversion.Scope) error { - out.Output = (*licenseapi.GenericRequestOutput)(unsafe.Pointer(in.Output)) + out.Output = in.Output return nil } @@ -6606,102 +6606,6 @@ func Convert_management_LicenseStatus_To_v1_LicenseStatus(in *management.License return autoConvert_management_LicenseStatus_To_v1_LicenseStatus(in, out, s) } -func autoConvert_v1_LicenseToken_To_management_LicenseToken(in *LicenseToken, out *management.LicenseToken, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(&in.Status, &out.Status, s); err != nil { - return err - } - 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) -} - -func autoConvert_management_LicenseToken_To_v1_LicenseToken(in *management.LicenseToken, out *LicenseToken, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(&in.Status, &out.Status, s); err != nil { - return err - } - 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) -} - -func autoConvert_v1_LicenseTokenList_To_management_LicenseTokenList(in *LicenseTokenList, out *management.LicenseTokenList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.LicenseToken)(unsafe.Pointer(&in.Items)) - 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) -} - -func autoConvert_management_LicenseTokenList_To_v1_LicenseTokenList(in *management.LicenseTokenList, out *LicenseTokenList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]LicenseToken)(unsafe.Pointer(&in.Items)) - 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) -} - -func autoConvert_v1_LicenseTokenSpec_To_management_LicenseTokenSpec(in *LicenseTokenSpec, out *management.LicenseTokenSpec, s conversion.Scope) error { - out.URL = in.URL - out.Payload = in.Payload - 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) -} - -func autoConvert_management_LicenseTokenSpec_To_v1_LicenseTokenSpec(in *management.LicenseTokenSpec, out *LicenseTokenSpec, s conversion.Scope) error { - out.URL = in.URL - out.Payload = in.Payload - 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) -} - -func autoConvert_v1_LicenseTokenStatus_To_management_LicenseTokenStatus(in *LicenseTokenStatus, out *management.LicenseTokenStatus, s conversion.Scope) error { - out.Token = (*licenseapi.InstanceTokenAuth)(unsafe.Pointer(in.Token)) - 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) -} - -func autoConvert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(in *management.LicenseTokenStatus, out *LicenseTokenStatus, s conversion.Scope) error { - out.Token = (*licenseapi.InstanceTokenAuth)(unsafe.Pointer(in.Token)) - 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) -} - 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 { @@ -11717,6 +11621,100 @@ func Convert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNo return autoConvert_management_VirtualClusterNodeAccessKeyStatus_To_v1_VirtualClusterNodeAccessKeyStatus(in, out, s) } +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_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_management_VirtualClusterResourceUsage_To_v1_VirtualClusterResourceUsage(in *management.VirtualClusterResourceUsage, out *VirtualClusterResourceUsage, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_VirtualClusterResourceUsageStatus_To_v1_VirtualClusterResourceUsageStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// 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_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_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_management_VirtualClusterResourceUsageList_To_v1_VirtualClusterResourceUsageList(in *management.VirtualClusterResourceUsageList, out *VirtualClusterResourceUsageList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]VirtualClusterResourceUsage)(unsafe.Pointer(&in.Items)) + return nil +} + +// 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_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_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_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 + } + 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_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_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 diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index cd0cb193..289ff00f 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -3084,8 +3084,8 @@ func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Spec = in.Spec + out.Status = in.Status return } @@ -3143,7 +3143,6 @@ func (in *LicenseRequestList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { *out = *in - in.Input.DeepCopyInto(&out.Input) return } @@ -3160,11 +3159,6 @@ func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } return } @@ -3227,104 +3221,6 @@ func (in *LicenseStatus) DeepCopy() *LicenseStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. -func (in *LicenseToken) DeepCopy() *LicenseToken { - if in == nil { - return nil - } - out := new(LicenseToken) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseToken) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]LicenseToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. -func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { - if in == nil { - return nil - } - out := new(LicenseTokenList) - 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 - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. -func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { - if in == nil { - return nil - } - out := new(LicenseTokenSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { - *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. -func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { - if in == nil { - return nil - } - out := new(LicenseTokenStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { *out = *in @@ -8573,6 +8469,106 @@ func (in *VirtualClusterNodeAccessKeyStatus) DeepCopy() *VirtualClusterNodeAcces return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsage) DeepCopyInto(out *VirtualClusterResourceUsage) { + *out = *in + 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 VirtualClusterResourceUsage. +func (in *VirtualClusterResourceUsage) DeepCopy() *VirtualClusterResourceUsage { + if in == nil { + return nil + } + out := new(VirtualClusterResourceUsage) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterResourceUsage) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsageList) DeepCopyInto(out *VirtualClusterResourceUsageList) { + *out = *in + out.TypeMeta = in.TypeMeta + 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 VirtualClusterResourceUsageList. +func (in *VirtualClusterResourceUsageList) DeepCopy() *VirtualClusterResourceUsageList { + if in == nil { + return nil + } + out := new(VirtualClusterResourceUsageList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterResourceUsageList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsageMap) DeepCopyInto(out *VirtualClusterResourceUsageMap) { + *out = *in + 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 VirtualClusterResourceUsageMap. +func (in *VirtualClusterResourceUsageMap) DeepCopy() *VirtualClusterResourceUsageMap { + if in == nil { + return nil + } + out := new(VirtualClusterResourceUsageMap) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsageStatus) DeepCopyInto(out *VirtualClusterResourceUsageStatus) { + *out = *in + in.ResourceUsage.DeepCopyInto(&out.ResourceUsage) + return +} + +// 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(VirtualClusterResourceUsageStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { *out = *in diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index e956cbcb..488262e9 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -196,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 @@ -759,19 +749,7 @@ var ( return NewLicenseRequestRESTFunc(Factory) } NewLicenseRequestRESTFunc NewRESTFunc - InternalLicenseToken = builders.NewInternalResource( - "licensetokens", - "LicenseToken", - func() runtime.Object { return &LicenseToken{} }, - func() runtime.Object { return &LicenseTokenList{} }, - ) - InternalLicenseTokenStatus = builders.NewInternalResourceStatus( - "licensetokens", - "LicenseTokenStatus", - func() runtime.Object { return &LicenseToken{} }, - func() runtime.Object { return &LicenseTokenList{} }, - ) - InternalLoftUpgrade = builders.NewInternalResource( + InternalLoftUpgrade = builders.NewInternalResource( "loftupgrades", "LoftUpgrade", func() runtime.Object { return &LoftUpgrade{} }, @@ -1259,6 +1237,14 @@ var ( 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{} }, @@ -1351,8 +1337,6 @@ var ( InternalLicense, InternalLicenseStatus, InternalLicenseRequestREST, - InternalLicenseToken, - InternalLicenseTokenStatus, InternalLoftUpgrade, InternalLoftUpgradeStatus, InternalNodeClaim, @@ -1426,6 +1410,7 @@ var ( InternalVirtualClusterInstanceKubeConfigREST, InternalVirtualClusterInstanceLogREST, InternalVirtualClusterNodeAccessKeyREST, + InternalVirtualClusterResourceUsageREST, InternalVirtualClusterInstanceShellREST, InternalVirtualClusterInstanceSnapshotREST, InternalVirtualClusterStandaloneREST, @@ -2153,12 +2138,12 @@ 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 { @@ -2174,26 +2159,6 @@ type LicenseStatus struct { // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -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 *pkglicenseapi.InstanceTokenAuth `json:"token,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"` @@ -3160,6 +3125,23 @@ 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"` @@ -5228,125 +5210,6 @@ func (s *storageLicense) DeleteLicense(ctx context.Context, id string) (bool, er return sync, err } -// LicenseToken Functions and Structs -// -// +k8s:deepcopy-gen=false -type LicenseTokenStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type LicenseTokenStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type LicenseTokenList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []LicenseToken `json:"items"` -} - -func (LicenseToken) NewStatus() interface{} { - return LicenseTokenStatus{} -} - -func (pc *LicenseToken) GetStatus() interface{} { - return pc.Status -} - -func (pc *LicenseToken) SetStatus(s interface{}) { - pc.Status = s.(LicenseTokenStatus) -} - -func (pc *LicenseToken) GetSpec() interface{} { - return pc.Spec -} - -func (pc *LicenseToken) SetSpec(s interface{}) { - pc.Spec = s.(LicenseTokenSpec) -} - -func (pc *LicenseToken) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *LicenseToken) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc LicenseToken) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store LicenseToken. -// +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) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewLicenseTokenRegistry(sp builders.StandardStorageProvider) LicenseTokenRegistry { - return &storageLicenseToken{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageLicenseToken struct { - builders.StandardStorageProvider -} - -func (s *storageLicenseToken) ListLicenseTokens(ctx context.Context, options *internalversion.ListOptions) (*LicenseTokenList, 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.(*LicenseTokenList), err -} - -func (s *storageLicenseToken) GetLicenseToken(ctx context.Context, id string, options *metav1.GetOptions) (*LicenseToken, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*LicenseToken), nil -} - -func (s *storageLicenseToken) CreateLicenseToken(ctx context.Context, object *LicenseToken) (*LicenseToken, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*LicenseToken), nil -} - -func (s *storageLicenseToken) UpdateLicenseToken(ctx context.Context, object *LicenseToken) (*LicenseToken, 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 -} - -func (s *storageLicenseToken) DeleteLicenseToken(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 @@ -8306,6 +8169,14 @@ type VirtualClusterNodeAccessKeyList struct { // +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"` diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 5d293c88..8ef843cf 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -3059,8 +3059,8 @@ func (in *LicenseRequest) DeepCopyInto(out *LicenseRequest) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + out.Spec = in.Spec + out.Status = in.Status return } @@ -3118,7 +3118,6 @@ func (in *LicenseRequestList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LicenseRequestSpec) DeepCopyInto(out *LicenseRequestSpec) { *out = *in - in.Input.DeepCopyInto(&out.Input) return } @@ -3135,11 +3134,6 @@ func (in *LicenseRequestSpec) DeepCopy() *LicenseRequestSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LicenseRequestStatus) DeepCopyInto(out *LicenseRequestStatus) { *out = *in - if in.Output != nil { - in, out := &in.Output, &out.Output - *out = new(licenseapi.GenericRequestOutput) - (*in).DeepCopyInto(*out) - } return } @@ -3202,104 +3196,6 @@ func (in *LicenseStatus) DeepCopy() *LicenseStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseToken) DeepCopyInto(out *LicenseToken) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseToken. -func (in *LicenseToken) DeepCopy() *LicenseToken { - if in == nil { - return nil - } - out := new(LicenseToken) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseToken) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenList) DeepCopyInto(out *LicenseTokenList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]LicenseToken, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenList. -func (in *LicenseTokenList) DeepCopy() *LicenseTokenList { - if in == nil { - return nil - } - out := new(LicenseTokenList) - 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 - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenSpec) DeepCopyInto(out *LicenseTokenSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenSpec. -func (in *LicenseTokenSpec) DeepCopy() *LicenseTokenSpec { - if in == nil { - return nil - } - out := new(LicenseTokenSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseTokenStatus) DeepCopyInto(out *LicenseTokenStatus) { - *out = *in - if in.Token != nil { - in, out := &in.Token, &out.Token - *out = new(licenseapi.InstanceTokenAuth) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseTokenStatus. -func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { - if in == nil { - return nil - } - out := new(LicenseTokenStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *LoftUpgrade) DeepCopyInto(out *LoftUpgrade) { *out = *in @@ -8516,6 +8412,106 @@ func (in *VirtualClusterNodeAccessKeyStatus) DeepCopy() *VirtualClusterNodeAcces return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsage) DeepCopyInto(out *VirtualClusterResourceUsage) { + *out = *in + 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 VirtualClusterResourceUsage. +func (in *VirtualClusterResourceUsage) DeepCopy() *VirtualClusterResourceUsage { + if in == nil { + return nil + } + out := new(VirtualClusterResourceUsage) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterResourceUsage) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsageList) DeepCopyInto(out *VirtualClusterResourceUsageList) { + *out = *in + out.TypeMeta = in.TypeMeta + 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 VirtualClusterResourceUsageList. +func (in *VirtualClusterResourceUsageList) DeepCopy() *VirtualClusterResourceUsageList { + if in == nil { + return nil + } + out := new(VirtualClusterResourceUsageList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VirtualClusterResourceUsageList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsageMap) DeepCopyInto(out *VirtualClusterResourceUsageMap) { + *out = *in + 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 VirtualClusterResourceUsageMap. +func (in *VirtualClusterResourceUsageMap) DeepCopy() *VirtualClusterResourceUsageMap { + if in == nil { + return nil + } + out := new(VirtualClusterResourceUsageMap) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VirtualClusterResourceUsageStatus) DeepCopyInto(out *VirtualClusterResourceUsageStatus) { + *out = *in + in.ResourceUsage.DeepCopyInto(&out.ResourceUsage) + return +} + +// 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(VirtualClusterResourceUsageStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualClusterRole) DeepCopyInto(out *VirtualClusterRole) { *out = *in diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index 54921a8d..033bfa63 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -54,7 +54,6 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Feature", "IngressAuthToken", "License", - "LicenseToken", "LoftUpgrade", "NodeProvider", "NodeType", 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 a1b6b772..00000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_licensetoken.go +++ /dev/null @@ -1,34 +0,0 @@ -// 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" -) - -// fakeLicenseTokens implements LicenseTokenInterface -type fakeLicenseTokens struct { - *gentype.FakeClientWithList[*v1.LicenseToken, *v1.LicenseTokenList] - Fake *FakeManagementV1 -} - -func newFakeLicenseTokens(fake *FakeManagementV1) managementv1.LicenseTokenInterface { - return &fakeLicenseTokens{ - gentype.NewFakeClientWithList[*v1.LicenseToken, *v1.LicenseTokenList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("licensetokens"), - v1.SchemeGroupVersion.WithKind("LicenseToken"), - func() *v1.LicenseToken { return &v1.LicenseToken{} }, - func() *v1.LicenseTokenList { return &v1.LicenseTokenList{} }, - func(dst, src *v1.LicenseTokenList) { dst.ListMeta = src.ListMeta }, - func(list *v1.LicenseTokenList) []*v1.LicenseToken { return gentype.ToPointerSlice(list.Items) }, - func(list *v1.LicenseTokenList, items []*v1.LicenseToken) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} 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 468d0cd8..c6108e78 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go @@ -72,10 +72,6 @@ func (c *FakeManagementV1) Licenses() v1.LicenseInterface { return newFakeLicenses(c) } -func (c *FakeManagementV1) LicenseTokens() v1.LicenseTokenInterface { - return newFakeLicenseTokens(c) -} - func (c *FakeManagementV1) LoftUpgrades() v1.LoftUpgradeInterface { return newFakeLoftUpgrades(c) } 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 b3d4cf66..4f6c66e3 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_virtualclusterinstance.go @@ -98,3 +98,15 @@ func (c *fakeVirtualClusterInstances) GetStandaloneETCDPeers(ctx context.Context } return obj.(*v1.VirtualClusterStandalone), err } + +// 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(c.Resource(), virtualClusterInstanceName, "shell", c.Namespace(), virtualClusterInstanceShell, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.VirtualClusterInstanceShell), err +} diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index 19d51e0f..221748ec 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -32,8 +32,6 @@ type IngressAuthTokenExpansion interface{} type LicenseExpansion interface{} -type LicenseTokenExpansion interface{} - type LoftUpgradeExpansion interface{} type NodeClaimExpansion interface{} 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 8fe31fcd..00000000 --- a/pkg/clientset/versioned/typed/management/v1/licensetoken.go +++ /dev/null @@ -1,54 +0,0 @@ -// 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" -) - -// 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 *managementv1.LicenseToken, opts metav1.CreateOptions) (*managementv1.LicenseToken, error) - Update(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.UpdateOptions) (*managementv1.LicenseToken, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, licenseToken *managementv1.LicenseToken, opts metav1.UpdateOptions) (*managementv1.LicenseToken, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.LicenseToken, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.LicenseTokenList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.LicenseToken, err error) - LicenseTokenExpansion -} - -// licenseTokens implements LicenseTokenInterface -type licenseTokens struct { - *gentype.ClientWithList[*managementv1.LicenseToken, *managementv1.LicenseTokenList] -} - -// newLicenseTokens returns a LicenseTokens -func newLicenseTokens(c *ManagementV1Client) *licenseTokens { - return &licenseTokens{ - gentype.NewClientWithList[*managementv1.LicenseToken, *managementv1.LicenseTokenList]( - "licensetokens", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.LicenseToken { return &managementv1.LicenseToken{} }, - func() *managementv1.LicenseTokenList { return &managementv1.LicenseTokenList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 6721ccad..b10bcb1c 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -27,7 +27,6 @@ type ManagementV1Interface interface { FeaturesGetter IngressAuthTokensGetter LicensesGetter - LicenseTokensGetter LoftUpgradesGetter NodeClaimsGetter NodeEnvironmentsGetter @@ -121,10 +120,6 @@ func (c *ManagementV1Client) Licenses() LicenseInterface { return newLicenses(c) } -func (c *ManagementV1Client) LicenseTokens() LicenseTokenInterface { - return newLicenseTokens(c) -} - func (c *ManagementV1Client) LoftUpgrades() LoftUpgradeInterface { return newLoftUpgrades(c) } diff --git a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go index 5fabe0cb..2ce929cf 100644 --- a/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go +++ b/pkg/clientset/versioned/typed/management/v1/virtualclusterinstance.go @@ -34,6 +34,7 @@ type VirtualClusterInstanceInterface interface { GetExternalDatabase(ctx context.Context, virtualClusterInstanceName string, virtualClusterExternalDatabase *managementv1.VirtualClusterExternalDatabase, opts metav1.CreateOptions) (*managementv1.VirtualClusterExternalDatabase, error) GetNodeAccessKey(ctx context.Context, virtualClusterInstanceName string, virtualClusterNodeAccessKey *managementv1.VirtualClusterNodeAccessKey, opts metav1.CreateOptions) (*managementv1.VirtualClusterNodeAccessKey, error) GetStandaloneETCDPeers(ctx context.Context, virtualClusterInstanceName string, virtualClusterStandalone *managementv1.VirtualClusterStandalone, opts metav1.CreateOptions) (*managementv1.VirtualClusterStandalone, error) + GetShellPod(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceShell *managementv1.VirtualClusterInstanceShell, opts metav1.CreateOptions) (*managementv1.VirtualClusterInstanceShell, error) VirtualClusterInstanceExpansion } @@ -130,3 +131,18 @@ func (c *virtualClusterInstances) GetStandaloneETCDPeers(ctx context.Context, vi Into(result) return } + +// GetShellPod takes the representation of a virtualClusterInstanceShell and creates it. Returns the server's representation of the virtualClusterInstanceShell, and an error, if there is any. +func (c *virtualClusterInstances) GetShellPod(ctx context.Context, virtualClusterInstanceName string, virtualClusterInstanceShell *managementv1.VirtualClusterInstanceShell, opts metav1.CreateOptions) (result *managementv1.VirtualClusterInstanceShell, err error) { + result = &managementv1.VirtualClusterInstanceShell{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("virtualclusterinstances"). + Name(virtualClusterInstanceName). + SubResource("shell"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(virtualClusterInstanceShell). + Do(ctx). + Into(result) + return +} diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index 78870f8b..92de6197 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -69,8 +69,6 @@ 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"): diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index cafca605..0b4d3ea9 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -38,8 +38,6 @@ 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. @@ -180,11 +178,6 @@ 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} diff --git a/pkg/informers/externalversions/management/v1/licensetoken.go b/pkg/informers/externalversions/management/v1/licensetoken.go deleted file mode 100644 index fb69a4df..00000000 --- a/pkg/informers/externalversions/management/v1/licensetoken.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/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" -) - -// LicenseTokenInformer provides access to a shared informer and lister for -// LicenseTokens. -type LicenseTokenInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.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.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().LicenseTokens().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().LicenseTokens().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().LicenseTokens().Watch(ctx, options) - }, - }, - &apismanagementv1.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(&apismanagementv1.LicenseToken{}, f.defaultInformer) -} - -func (f *licenseTokenInformer) Lister() managementv1.LicenseTokenLister { - return managementv1.NewLicenseTokenLister(f.Informer().GetIndexer()) -} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 3c206744..f725c895 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -62,10 +62,6 @@ 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{} diff --git a/pkg/listers/management/v1/licensetoken.go b/pkg/listers/management/v1/licensetoken.go deleted file mode 100644 index ea43f256..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 ( - managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// LicenseTokenLister helps list LicenseTokens. -// 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 []*managementv1.LicenseToken, err error) - // Get retrieves the LicenseToken from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.LicenseToken, error) - LicenseTokenListerExpansion -} - -// licenseTokenLister implements the LicenseTokenLister interface. -type licenseTokenLister struct { - listers.ResourceIndexer[*managementv1.LicenseToken] -} - -// NewLicenseTokenLister returns a new LicenseTokenLister. -func NewLicenseTokenLister(indexer cache.Indexer) LicenseTokenLister { - return &licenseTokenLister{listers.New[*managementv1.LicenseToken](indexer, managementv1.Resource("licensetoken"))} -} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index f4aee360..88dc7682 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -198,10 +198,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgrade": schema_pkg_apis_management_v1_LoftUpgrade(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeList": schema_pkg_apis_management_v1_LoftUpgradeList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.LoftUpgradeSpec": schema_pkg_apis_management_v1_LoftUpgradeSpec(ref), @@ -404,6 +400,10 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsage": schema_pkg_apis_management_v1_VirtualClusterResourceUsage(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageList": schema_pkg_apis_management_v1_VirtualClusterResourceUsageList(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageMap": schema_pkg_apis_management_v1_VirtualClusterResourceUsageMap(ref), + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageStatus": schema_pkg_apis_management_v1_VirtualClusterResourceUsageStatus(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), @@ -1853,6 +1853,22 @@ func schema_loft_sh_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallba Format: "", }, }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations contains additional metadata about the license.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, "analytics": { SchemaProps: spec.SchemaProps{ Description: "Analytics indicates the analytics endpoints and which requests should be sent to the analytics server.", @@ -10534,15 +10550,13 @@ func schema_pkg_apis_management_v1_LicenseRequestSpec(ref common.ReferenceCallba "input": { 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{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestInput"}, } } @@ -10555,14 +10569,13 @@ func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCall "output": { SchemaProps: spec.SchemaProps{ Description: "Output is where the request output is stored.", - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"), + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.GenericRequestOutput"}, } } @@ -10617,144 +10630,6 @@ func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) c } } -func schema_pkg_apis_management_v1_LicenseToken(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"}, - 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.LicenseTokenSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenSpec", "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseTokenStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_pkg_apis_management_v1_LicenseTokenList(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.LicenseToken"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/api/v4/pkg/apis/management/v1.LicenseToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_pkg_apis_management_v1_LicenseTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "url": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "payload": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_LicenseTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/loft-sh/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, - } -} - func schema_pkg_apis_management_v1_LoftUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -20486,6 +20361,153 @@ func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref common. } } +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("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterResourceUsageList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot 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.VirtualClusterResourceUsage"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsage", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_pkg_apis_management_v1_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("github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageMap"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/loft-sh/api/v4/pkg/apis/management/v1.VirtualClusterResourceUsageMap"}, + } +} + func schema_pkg_apis_management_v1_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -31823,9 +31845,10 @@ 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\".", + Description: "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".\n\nPossible enum values:\n - `\"IfNeeded\"` indicates that the webhook may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call.\n - `\"Never\"` indicates that the webhook must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"IfNeeded", "Never"}, }, }, "matchConditions": { @@ -32082,9 +32105,10 @@ func schema_k8sio_api_admissionregistration_v1_NamedRuleWithOperations(ref commo }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32246,9 +32270,10 @@ func schema_k8sio_api_admissionregistration_v1_Rule(ref common.ReferenceCallback }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -32347,9 +32372,10 @@ func schema_k8sio_api_admissionregistration_v1_RuleWithOperations(ref common.Ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, @@ -33737,9 +33763,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingAdmissionPolicySpec( }, "reinvocationPolicy": { SchemaProps: spec.SchemaProps{ - 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.", + Description: "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.\n\nPossible enum values:\n - `\"IfNeeded\"` indicates that the webhook may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call.\n - `\"Never\"` indicates that the webhook must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"IfNeeded", "Never"}, }, }, }, @@ -33853,9 +33880,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_MutatingWebhook(ref common.R }, "reinvocationPolicy": { SchemaProps: spec.SchemaProps{ - Description: "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + Description: "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".\n\nPossible enum values:\n - `\"IfNeeded\"` indicates that the webhook may be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call.\n - `\"Never\"` indicates that the webhook must not be called more than once in a single admission evaluation.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"IfNeeded", "Never"}, }, }, "matchConditions": { @@ -34149,9 +34177,10 @@ func schema_k8sio_api_admissionregistration_v1beta1_NamedRuleWithOperations(ref }, "scope": { SchemaProps: spec.SchemaProps{ - Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + Description: "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".\n\n\nPossible enum values:\n - `\"*\"` means that all scopes are included.\n - `\"Cluster\"` means that scope is limited to cluster-scoped objects. Namespace objects are cluster-scoped.\n - `\"Namespaced\"` means that scope is limited to namespaced objects.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"*", "Cluster", "Namespaced"}, }, }, }, From 06ab726a030e653901d23382e9ab967429eb8a80 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:27:20 +0000 Subject: [PATCH 28/30] [skip ci] repo-sync --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 42d98862..b1c91138 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c - github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.1 + github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.3 github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 k8s.io/api v0.34.0 k8s.io/apimachinery v0.34.0 diff --git a/go.sum b/go.sum index 92bc3d31..4f75fb97 100644 --- a/go.sum +++ b/go.sum @@ -106,8 +106,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c h1:wxm+aaqraHv8VRAUMobYj48AHF/Phe7D/itM4zyB13s= github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.1 h1:Spf6tidLWz4JOGnXHGOeyfAmoCFER/VLo84gRlkX69M= -github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.1/go.mod h1:nnRj+wwUDl0zH+FgFDlVMdZHCvLm+K4lyToFP+5BHyg= +github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.3 h1:8vQqLvLAr+lqN36vnUXCEqEa365abH4lZ5XOon3wbxk= +github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.3/go.mod h1:nnRj+wwUDl0zH+FgFDlVMdZHCvLm+K4lyToFP+5BHyg= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= From 190642d6b3b36ee2a92703cc3f66938ae51c2762 Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Fri, 12 Dec 2025 12:50:58 +0000 Subject: [PATCH 29/30] [skip ci] repo-sync --- go.mod | 14 +++++++------- go.sum | 28 ++++++++++++++-------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/go.mod b/go.mod index b1c91138..dd3dca32 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c - github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.3 + github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.4 github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 k8s.io/api v0.34.0 k8s.io/apimachinery v0.34.0 @@ -62,10 +62,10 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_golang v1.22.0 // indirect - github.com/prometheus/client_model v0.6.1 // indirect - github.com/prometheus/common v0.62.0 // indirect - github.com/prometheus/procfs v0.15.1 // indirect + github.com/prometheus/client_golang v1.23.2 // indirect + github.com/prometheus/client_model v0.6.2 // indirect + github.com/prometheus/common v0.66.1 // indirect + github.com/prometheus/procfs v0.16.1 // indirect github.com/spf13/cobra v1.9.1 // indirect github.com/spf13/pflag v1.0.6 // indirect github.com/stoewer/go-strcase v1.3.0 // indirect @@ -91,7 +91,7 @@ require ( golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect golang.org/x/mod v0.27.0 // indirect golang.org/x/net v0.43.0 // indirect - golang.org/x/oauth2 v0.28.0 // indirect + golang.org/x/oauth2 v0.30.0 // indirect golang.org/x/sync v0.16.0 // indirect golang.org/x/sys v0.35.0 // indirect golang.org/x/term v0.34.0 // indirect @@ -102,7 +102,7 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect google.golang.org/grpc v1.72.1 // indirect - google.golang.org/protobuf v1.36.7 // indirect + google.golang.org/protobuf v1.36.8 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index 4f75fb97..5d35d047 100644 --- a/go.sum +++ b/go.sum @@ -106,8 +106,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c h1:wxm+aaqraHv8VRAUMobYj48AHF/Phe7D/itM4zyB13s= github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.3 h1:8vQqLvLAr+lqN36vnUXCEqEa365abH4lZ5XOon3wbxk= -github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.3/go.mod h1:nnRj+wwUDl0zH+FgFDlVMdZHCvLm+K4lyToFP+5BHyg= +github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.4 h1:BhS6N+QBbKD9C32rjOS3OdExeDGGpelWb0dpduQMAS0= +github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.4/go.mod h1:dZZldPXAy4yvfs6F9wtvVUcpZlI6CDlAkH5vaDYFXUU= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= @@ -133,14 +133,14 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE 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.22.0 h1:rb93p9lokFEsctTys46VnV1kLCDpVZ0a/Y92Vm0Zc6Q= -github.com/prometheus/client_golang v1.22.0/go.mod h1:R7ljNsLXhuQXYZYtw6GAE9AZg8Y7vEW5scdCXrWRXC0= -github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= -github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= -github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= -github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= -github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= -github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= +github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o= +github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg= +github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= +github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= +github.com/prometheus/common v0.66.1 h1:h5E0h5/Y8niHc5DlaLlWLArTQI7tMrsfQjHV+d9ZoGs= +github.com/prometheus/common v0.66.1/go.mod h1:gcaUsgf3KfRSwHY4dIMXLPV0K/Wg1oZ8+SbZk/HH/dA= +github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= +github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -236,8 +236,8 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= -golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= -golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -278,8 +278,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= google.golang.org/grpc v1.72.1 h1:HR03wO6eyZ7lknl75XlxABNVLLFc2PAb6mHlYh756mA= google.golang.org/grpc v1.72.1/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= -google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A= -google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= From a08a4727f6190fbc59d9f1f3a59f0fda0dfb08de Mon Sep 17 00:00:00 2001 From: Loft Bot <73976634+loft-bot@users.noreply.github.com> Date: Thu, 15 Jan 2026 16:20:59 +0000 Subject: [PATCH 30/30] [skip ci] repo-sync --- go.mod | 4 ++-- go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index dd3dca32..5156ca11 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ toolchain go1.24.4 require ( github.com/ghodss/yaml v1.0.0 - github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c - github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.4 + github.com/loft-sh/admin-apis v0.0.0-20260107140926-51c6ca9ce68d + github.com/loft-sh/agentapi/v4 v4.7.0-next.internal.3 github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 k8s.io/api v0.34.0 k8s.io/apimachinery v0.34.0 diff --git a/go.sum b/go.sum index 5d35d047..7a756848 100644 --- a/go.sum +++ b/go.sum @@ -104,10 +104,10 @@ 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-20251121090449-13f05b20017c h1:wxm+aaqraHv8VRAUMobYj48AHF/Phe7D/itM4zyB13s= -github.com/loft-sh/admin-apis v0.0.0-20251121090449-13f05b20017c/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= -github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.4 h1:BhS6N+QBbKD9C32rjOS3OdExeDGGpelWb0dpduQMAS0= -github.com/loft-sh/agentapi/v4 v4.6.0-next.internal.4/go.mod h1:dZZldPXAy4yvfs6F9wtvVUcpZlI6CDlAkH5vaDYFXUU= +github.com/loft-sh/admin-apis v0.0.0-20260107140926-51c6ca9ce68d h1:MUdqpgrq6hme8nsxx5WqYmU/g/AIY4m6H5onn8sJfGw= +github.com/loft-sh/admin-apis v0.0.0-20260107140926-51c6ca9ce68d/go.mod h1:WHCqWfljfD1hkwk41hLeqBhW2yeLvWipB1sH6vfnR7U= +github.com/loft-sh/agentapi/v4 v4.7.0-next.internal.3 h1:A0dSjWWemb8hsdJHKwzRzRRd5wAT86WDh7VEzkKL51Y= +github.com/loft-sh/agentapi/v4 v4.7.0-next.internal.3/go.mod h1:k7lisx8w4PXilSbgiW4CvpU2mVhC10k0PzYMUDG7wlo= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646 h1:ZWOAMcsIZN4GKESwZBWU1+uepe+L8owmrkJDe5j4KlE= github.com/loft-sh/apiserver v0.0.0-20250910060242-4b9f3ffe0646/go.mod h1:hLlplUgCm+KDLoTVfSNTGQSBx/fhsTxu5m8d1LBUXKA= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=