From 531c7dfdfd882f5bb192140ac91e1eea6b0265ea Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sat, 14 Dec 2024 23:40:39 -0800 Subject: [PATCH] Add ResourceOutlineFilter api (#518) Signed-off-by: Tamal Saha --- .config/api-rules/violation_exceptions.list | 5 + apis/meta/v1alpha1/openapi_generated.go | 89 ++ apis/meta/v1alpha1/register.go | 2 + .../v1alpha1/resourceoutlinefilter_types.go | 52 + apis/meta/v1alpha1/zz_generated.deepcopy.go | 60 + apis/ui/v1alpha1/openapi_generated.go | 1046 +++++++++++------ apis/ui/v1alpha1/register.go | 2 + .../v1alpha1/resourceoutlinefilter_types.go | 83 ++ apis/ui/v1alpha1/zz_generated.deepcopy.go | 172 +++ .../meta/v1alpha1/fake/fake_meta_client.go | 4 + .../fake/fake_resourceoutlinefilter.go | 46 + .../meta/v1alpha1/generated_expansion.go | 2 + .../typed/meta/v1alpha1/meta_client.go | 5 + .../meta/v1alpha1/resourceoutlinefilter.go | 64 + .../fake/fake_resourceoutlinefilter.go | 46 + .../typed/ui/v1alpha1/fake/fake_ui_client.go | 4 + .../typed/ui/v1alpha1/generated_expansion.go | 2 + .../ui/v1alpha1/resourceoutlinefilter.go | 64 + .../versioned/typed/ui/v1alpha1/ui_client.go | 5 + ...s.appscode.com_resourceoutlinefilters.yaml | 123 ++ ...s.appscode.com_resourceoutlinefilters.yaml | 123 ++ pkg/layouts/filter.go | 174 +++ pkg/layouts/lib.go | 114 +- pkg/tableconvertor/tableconvertor.go | 116 +- 24 files changed, 1914 insertions(+), 489 deletions(-) create mode 100644 apis/meta/v1alpha1/resourceoutlinefilter_types.go create mode 100644 apis/ui/v1alpha1/resourceoutlinefilter_types.go create mode 100644 client/clientset/versioned/typed/meta/v1alpha1/fake/fake_resourceoutlinefilter.go create mode 100644 client/clientset/versioned/typed/meta/v1alpha1/resourceoutlinefilter.go create mode 100644 client/clientset/versioned/typed/ui/v1alpha1/fake/fake_resourceoutlinefilter.go create mode 100644 client/clientset/versioned/typed/ui/v1alpha1/resourceoutlinefilter.go create mode 100644 crds/meta.k8s.appscode.com_resourceoutlinefilters.yaml create mode 100644 crds/ui.k8s.appscode.com_resourceoutlinefilters.yaml create mode 100644 pkg/layouts/filter.go diff --git a/.config/api-rules/violation_exceptions.list b/.config/api-rules/violation_exceptions.list index 958d07132..1e899164c 100644 --- a/.config/api-rules/violation_exceptions.list +++ b/.config/api-rules/violation_exceptions.list @@ -54,6 +54,7 @@ API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,UIParameters,InstanceLabelPaths API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ActionTemplate,Icons API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ActionTemplateGroup,Items +API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ActionTemplateGroupFilter,Items API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ChartInfo,ValuesFiles API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,Dashboard,Panels API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,Dashboard,Vars @@ -70,6 +71,10 @@ API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1a API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ResourceDashboardSpec,Dashboards API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ResourceEditorSpec,Icons API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ResourceEditorSpec,Variants +API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ResourceOutlineFilterSpec,Actions +API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ResourceOutlineFilterSpec,Pages +API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,ResourcePageOutlineFilter,Sections +API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,SectionOutlineFilter,Blocks API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,UIParameters,Actions API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,UIParameters,InstanceLabelPaths API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/ui/v1alpha1,VariantRef,Icons diff --git a/apis/meta/v1alpha1/openapi_generated.go b/apis/meta/v1alpha1/openapi_generated.go index ee4ca5c15..b9ea061ee 100644 --- a/apis/meta/v1alpha1/openapi_generated.go +++ b/apis/meta/v1alpha1/openapi_generated.go @@ -432,6 +432,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceLayoutList": schema_resource_metadata_apis_meta_v1alpha1_ResourceLayoutList(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceLayoutSpec": schema_resource_metadata_apis_meta_v1alpha1_ResourceLayoutSpec(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutline": schema_resource_metadata_apis_meta_v1alpha1_ResourceOutline(ref), + "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutlineFilter": schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineFilter(ref), + "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutlineFilterList": schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineFilterList(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutlineList": schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineList(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutlineSpec": schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineSpec(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourcePageLayout": schema_resource_metadata_apis_meta_v1alpha1_ResourcePageLayout(ref), @@ -22428,6 +22430,93 @@ func schema_resource_metadata_apis_meta_v1alpha1_ResourceOutline(ref common.Refe } } +func schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineFilter(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("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilterSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilterSpec"}, + } +} + +func schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineFilterList(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("kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutlineFilter"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ResourceOutlineFilter"}, + } +} + func schema_resource_metadata_apis_meta_v1alpha1_ResourceOutlineList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/meta/v1alpha1/register.go b/apis/meta/v1alpha1/register.go index cf06419e2..47021c4b9 100644 --- a/apis/meta/v1alpha1/register.go +++ b/apis/meta/v1alpha1/register.go @@ -65,6 +65,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ResourceEditorList{}, &ResourceOutline{}, &ResourceOutlineList{}, + &ResourceOutlineFilter{}, + &ResourceOutlineFilterList{}, &ResourceLayout{}, &ResourceLayoutList{}, &Menu{}, diff --git a/apis/meta/v1alpha1/resourceoutlinefilter_types.go b/apis/meta/v1alpha1/resourceoutlinefilter_types.go new file mode 100644 index 000000000..f042b5742 --- /dev/null +++ b/apis/meta/v1alpha1/resourceoutlinefilter_types.go @@ -0,0 +1,52 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ResourceKindResourceOutlineFilter = "ResourceOutlineFilter" + ResourceResourceOutlineFilter = "resourceoutlinefilter" + ResourceResourceOutlineFilters = "resourceoutlinefilters" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=get +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=resourceoutlinefilters,singular=resourceoutlinefilter,scope=Cluster +type ResourceOutlineFilter struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec uiapi.ResourceOutlineFilterSpec `json:"spec,omitempty"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:object:root=true + +type ResourceOutlineFilterList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ResourceOutlineFilter `json:"items,omitempty"` +} diff --git a/apis/meta/v1alpha1/zz_generated.deepcopy.go b/apis/meta/v1alpha1/zz_generated.deepcopy.go index 2a207d862..a42fa0d1f 100644 --- a/apis/meta/v1alpha1/zz_generated.deepcopy.go +++ b/apis/meta/v1alpha1/zz_generated.deepcopy.go @@ -2135,6 +2135,66 @@ func (in *ResourceOutline) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceOutlineFilter) DeepCopyInto(out *ResourceOutlineFilter) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceOutlineFilter. +func (in *ResourceOutlineFilter) DeepCopy() *ResourceOutlineFilter { + if in == nil { + return nil + } + out := new(ResourceOutlineFilter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceOutlineFilter) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceOutlineFilterList) DeepCopyInto(out *ResourceOutlineFilterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceOutlineFilter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceOutlineFilterList. +func (in *ResourceOutlineFilterList) DeepCopy() *ResourceOutlineFilterList { + if in == nil { + return nil + } + out := new(ResourceOutlineFilterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceOutlineFilterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceOutlineList) DeepCopyInto(out *ResourceOutlineList) { *out = *in diff --git a/apis/ui/v1alpha1/openapi_generated.go b/apis/ui/v1alpha1/openapi_generated.go index babdac052..ccb3b8a74 100644 --- a/apis/ui/v1alpha1/openapi_generated.go +++ b/apis/ui/v1alpha1/openapi_generated.go @@ -35,380 +35,387 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "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.ClaimSource": schema_k8sio_api_core_v1_ClaimSource(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.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.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.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.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.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.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/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.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), - "kmodules.xyz/client-go/api/v1.CAPIClusterInfo": schema_kmodulesxyz_client_go_api_v1_CAPIClusterInfo(ref), - "kmodules.xyz/client-go/api/v1.CertificatePrivateKey": schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref), - "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), - "kmodules.xyz/client-go/api/v1.ClusterClaimFeatures": schema_kmodulesxyz_client_go_api_v1_ClusterClaimFeatures(ref), - "kmodules.xyz/client-go/api/v1.ClusterClaimInfo": schema_kmodulesxyz_client_go_api_v1_ClusterClaimInfo(ref), - "kmodules.xyz/client-go/api/v1.ClusterInfo": schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref), - "kmodules.xyz/client-go/api/v1.ClusterMetadata": schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref), - "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), - "kmodules.xyz/client-go/api/v1.HealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref), - "kmodules.xyz/client-go/api/v1.ImageInfo": schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref), - "kmodules.xyz/client-go/api/v1.Lineage": schema_kmodulesxyz_client_go_api_v1_Lineage(ref), - "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), - "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), - "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), - "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), - "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), - "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), - "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), - "kmodules.xyz/client-go/api/v1.TimeOfDay": schema_kmodulesxyz_client_go_api_v1_TimeOfDay(ref), - "kmodules.xyz/client-go/api/v1.TypedObjectReference": schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref), - "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), - "kmodules.xyz/client-go/api/v1.stringSetMerger": schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref), - "kmodules.xyz/offshoot-api/api/v1.ContainerRuntimeSettings": schema_kmodulesxyz_offshoot_api_api_v1_ContainerRuntimeSettings(ref), - "kmodules.xyz/offshoot-api/api/v1.EphemeralVolumeSource": schema_kmodulesxyz_offshoot_api_api_v1_EphemeralVolumeSource(ref), - "kmodules.xyz/offshoot-api/api/v1.Gateway": schema_kmodulesxyz_offshoot_api_api_v1_Gateway(ref), - "kmodules.xyz/offshoot-api/api/v1.GatewayPort": schema_kmodulesxyz_offshoot_api_api_v1_GatewayPort(ref), - "kmodules.xyz/offshoot-api/api/v1.IONiceSettings": schema_kmodulesxyz_offshoot_api_api_v1_IONiceSettings(ref), - "kmodules.xyz/offshoot-api/api/v1.NamedServiceStatus": schema_kmodulesxyz_offshoot_api_api_v1_NamedServiceStatus(ref), - "kmodules.xyz/offshoot-api/api/v1.NamedURL": schema_kmodulesxyz_offshoot_api_api_v1_NamedURL(ref), - "kmodules.xyz/offshoot-api/api/v1.NiceSettings": schema_kmodulesxyz_offshoot_api_api_v1_NiceSettings(ref), - "kmodules.xyz/offshoot-api/api/v1.ObjectMeta": schema_kmodulesxyz_offshoot_api_api_v1_ObjectMeta(ref), - "kmodules.xyz/offshoot-api/api/v1.PartialObjectMeta": schema_kmodulesxyz_offshoot_api_api_v1_PartialObjectMeta(ref), - "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim": schema_kmodulesxyz_offshoot_api_api_v1_PersistentVolumeClaim(ref), - "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaimTemplate": schema_kmodulesxyz_offshoot_api_api_v1_PersistentVolumeClaimTemplate(ref), - "kmodules.xyz/offshoot-api/api/v1.PodRuntimeSettings": schema_kmodulesxyz_offshoot_api_api_v1_PodRuntimeSettings(ref), - "kmodules.xyz/offshoot-api/api/v1.PodSpec": schema_kmodulesxyz_offshoot_api_api_v1_PodSpec(ref), - "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_PodTemplateSpec(ref), - "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings": schema_kmodulesxyz_offshoot_api_api_v1_RuntimeSettings(ref), - "kmodules.xyz/offshoot-api/api/v1.ServicePort": schema_kmodulesxyz_offshoot_api_api_v1_ServicePort(ref), - "kmodules.xyz/offshoot-api/api/v1.ServiceSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceSpec(ref), - "kmodules.xyz/offshoot-api/api/v1.ServiceTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref), - "kmodules.xyz/offshoot-api/api/v1.Volume": schema_kmodulesxyz_offshoot_api_api_v1_Volume(ref), - "kmodules.xyz/offshoot-api/api/v1.VolumeSource": schema_kmodulesxyz_offshoot_api_api_v1_VolumeSource(ref), - "kmodules.xyz/resource-metadata/apis/shared.Action": schema_kmodulesxyz_resource_metadata_apis_shared_Action(ref), - "kmodules.xyz/resource-metadata/apis/shared.ActionGroup": schema_kmodulesxyz_resource_metadata_apis_shared_ActionGroup(ref), - "kmodules.xyz/resource-metadata/apis/shared.ActionInfo": schema_kmodulesxyz_resource_metadata_apis_shared_ActionInfo(ref), - "kmodules.xyz/resource-metadata/apis/shared.ActionTemplate": schema_kmodulesxyz_resource_metadata_apis_shared_ActionTemplate(ref), - "kmodules.xyz/resource-metadata/apis/shared.ActionTemplateGroup": schema_kmodulesxyz_resource_metadata_apis_shared_ActionTemplateGroup(ref), - "kmodules.xyz/resource-metadata/apis/shared.BootstrapPresets": schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref), - "kmodules.xyz/resource-metadata/apis/shared.Dashboard": schema_kmodulesxyz_resource_metadata_apis_shared_Dashboard(ref), - "kmodules.xyz/resource-metadata/apis/shared.DashboardVar": schema_kmodulesxyz_resource_metadata_apis_shared_DashboardVar(ref), - "kmodules.xyz/resource-metadata/apis/shared.DeploymentParameters": schema_kmodulesxyz_resource_metadata_apis_shared_DeploymentParameters(ref), - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo": schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref), - "kmodules.xyz/resource-metadata/apis/shared.HelmRelease": schema_kmodulesxyz_resource_metadata_apis_shared_HelmRelease(ref), - "kmodules.xyz/resource-metadata/apis/shared.HelmRepository": schema_kmodulesxyz_resource_metadata_apis_shared_HelmRepository(ref), - "kmodules.xyz/resource-metadata/apis/shared.If": schema_kmodulesxyz_resource_metadata_apis_shared_If(ref), - "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec": schema_kmodulesxyz_resource_metadata_apis_shared_ImageRegistrySpec(ref), - "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo": schema_kmodulesxyz_resource_metadata_apis_shared_RegistryInfo(ref), - "kmodules.xyz/resource-metadata/apis/shared.RegistryProxies": schema_kmodulesxyz_resource_metadata_apis_shared_RegistryProxies(ref), - "kmodules.xyz/resource-metadata/apis/shared.ResourceLocator": schema_kmodulesxyz_resource_metadata_apis_shared_ResourceLocator(ref), - "kmodules.xyz/resource-metadata/apis/shared.ResourceQuery": schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref), - "kmodules.xyz/resource-metadata/apis/shared.SourceLocator": schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref), - "kmodules.xyz/resource-metadata/apis/shared.UIParameterTemplate": schema_kmodulesxyz_resource_metadata_apis_shared_UIParameterTemplate(ref), - "kmodules.xyz/resource-metadata/apis/shared.UIParameters": schema_kmodulesxyz_resource_metadata_apis_shared_UIParameters(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplate": schema_resource_metadata_apis_ui_v1alpha1_ActionTemplate(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplateGroup": schema_resource_metadata_apis_ui_v1alpha1_ActionTemplateGroup(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ChartInfo": schema_resource_metadata_apis_ui_v1alpha1_ChartInfo(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfile": schema_resource_metadata_apis_ui_v1alpha1_ClusterProfile(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfileList": schema_resource_metadata_apis_ui_v1alpha1_ClusterProfileList(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfileSpec": schema_resource_metadata_apis_ui_v1alpha1_ClusterProfileSpec(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ComponentStatus": schema_resource_metadata_apis_ui_v1alpha1_ComponentStatus(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Dashboard": schema_resource_metadata_apis_ui_v1alpha1_Dashboard(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.DependentFeatureSet": schema_resource_metadata_apis_ui_v1alpha1_DependentFeatureSet(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Dependents": schema_resource_metadata_apis_ui_v1alpha1_Dependents(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Feature": schema_resource_metadata_apis_ui_v1alpha1_Feature(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureList": schema_resource_metadata_apis_ui_v1alpha1_FeatureList(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSet": schema_resource_metadata_apis_ui_v1alpha1_FeatureSet(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSetList": schema_resource_metadata_apis_ui_v1alpha1_FeatureSetList(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSetSpec": schema_resource_metadata_apis_ui_v1alpha1_FeatureSetSpec(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSetStatus": schema_resource_metadata_apis_ui_v1alpha1_FeatureSetStatus(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSpec": schema_resource_metadata_apis_ui_v1alpha1_FeatureSpec(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureStatus": schema_resource_metadata_apis_ui_v1alpha1_FeatureStatus(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.PanelLinkRequest": schema_resource_metadata_apis_ui_v1alpha1_PanelLinkRequest(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ReadinessChecks": schema_resource_metadata_apis_ui_v1alpha1_ReadinessChecks(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Requirements": schema_resource_metadata_apis_ui_v1alpha1_Requirements(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceDashboard": schema_resource_metadata_apis_ui_v1alpha1_ResourceDashboard(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceDashboardList": schema_resource_metadata_apis_ui_v1alpha1_ResourceDashboardList(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceDashboardSpec": schema_resource_metadata_apis_ui_v1alpha1_ResourceDashboardSpec(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceEditor": schema_resource_metadata_apis_ui_v1alpha1_ResourceEditor(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceEditorList": schema_resource_metadata_apis_ui_v1alpha1_ResourceEditorList(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceEditorSpec": schema_resource_metadata_apis_ui_v1alpha1_ResourceEditorSpec(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.UIParameters": schema_resource_metadata_apis_ui_v1alpha1_UIParameters(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ValuesReference": schema_resource_metadata_apis_ui_v1alpha1_ValuesReference(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.VariantRef": schema_resource_metadata_apis_ui_v1alpha1_VariantRef(ref), - "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.WorkloadInfo": schema_resource_metadata_apis_ui_v1alpha1_WorkloadInfo(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.ClaimSource": schema_k8sio_api_core_v1_ClaimSource(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.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.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.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.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.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.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/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.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), + "kmodules.xyz/client-go/api/v1.CAPIClusterInfo": schema_kmodulesxyz_client_go_api_v1_CAPIClusterInfo(ref), + "kmodules.xyz/client-go/api/v1.CertificatePrivateKey": schema_kmodulesxyz_client_go_api_v1_CertificatePrivateKey(ref), + "kmodules.xyz/client-go/api/v1.CertificateSpec": schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref), + "kmodules.xyz/client-go/api/v1.ClusterClaimFeatures": schema_kmodulesxyz_client_go_api_v1_ClusterClaimFeatures(ref), + "kmodules.xyz/client-go/api/v1.ClusterClaimInfo": schema_kmodulesxyz_client_go_api_v1_ClusterClaimInfo(ref), + "kmodules.xyz/client-go/api/v1.ClusterInfo": schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref), + "kmodules.xyz/client-go/api/v1.ClusterMetadata": schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref), + "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), + "kmodules.xyz/client-go/api/v1.HealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ImageInfo": schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref), + "kmodules.xyz/client-go/api/v1.Lineage": schema_kmodulesxyz_client_go_api_v1_Lineage(ref), + "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), + "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), + "kmodules.xyz/client-go/api/v1.ObjectReference": schema_kmodulesxyz_client_go_api_v1_ObjectReference(ref), + "kmodules.xyz/client-go/api/v1.PullCredentials": schema_kmodulesxyz_client_go_api_v1_PullCredentials(ref), + "kmodules.xyz/client-go/api/v1.ReadonlyHealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_ReadonlyHealthCheckSpec(ref), + "kmodules.xyz/client-go/api/v1.ResourceID": schema_kmodulesxyz_client_go_api_v1_ResourceID(ref), + "kmodules.xyz/client-go/api/v1.TLSConfig": schema_kmodulesxyz_client_go_api_v1_TLSConfig(ref), + "kmodules.xyz/client-go/api/v1.TimeOfDay": schema_kmodulesxyz_client_go_api_v1_TimeOfDay(ref), + "kmodules.xyz/client-go/api/v1.TypedObjectReference": schema_kmodulesxyz_client_go_api_v1_TypedObjectReference(ref), + "kmodules.xyz/client-go/api/v1.X509Subject": schema_kmodulesxyz_client_go_api_v1_X509Subject(ref), + "kmodules.xyz/client-go/api/v1.stringSetMerger": schema_kmodulesxyz_client_go_api_v1_stringSetMerger(ref), + "kmodules.xyz/offshoot-api/api/v1.ContainerRuntimeSettings": schema_kmodulesxyz_offshoot_api_api_v1_ContainerRuntimeSettings(ref), + "kmodules.xyz/offshoot-api/api/v1.EphemeralVolumeSource": schema_kmodulesxyz_offshoot_api_api_v1_EphemeralVolumeSource(ref), + "kmodules.xyz/offshoot-api/api/v1.Gateway": schema_kmodulesxyz_offshoot_api_api_v1_Gateway(ref), + "kmodules.xyz/offshoot-api/api/v1.GatewayPort": schema_kmodulesxyz_offshoot_api_api_v1_GatewayPort(ref), + "kmodules.xyz/offshoot-api/api/v1.IONiceSettings": schema_kmodulesxyz_offshoot_api_api_v1_IONiceSettings(ref), + "kmodules.xyz/offshoot-api/api/v1.NamedServiceStatus": schema_kmodulesxyz_offshoot_api_api_v1_NamedServiceStatus(ref), + "kmodules.xyz/offshoot-api/api/v1.NamedURL": schema_kmodulesxyz_offshoot_api_api_v1_NamedURL(ref), + "kmodules.xyz/offshoot-api/api/v1.NiceSettings": schema_kmodulesxyz_offshoot_api_api_v1_NiceSettings(ref), + "kmodules.xyz/offshoot-api/api/v1.ObjectMeta": schema_kmodulesxyz_offshoot_api_api_v1_ObjectMeta(ref), + "kmodules.xyz/offshoot-api/api/v1.PartialObjectMeta": schema_kmodulesxyz_offshoot_api_api_v1_PartialObjectMeta(ref), + "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaim": schema_kmodulesxyz_offshoot_api_api_v1_PersistentVolumeClaim(ref), + "kmodules.xyz/offshoot-api/api/v1.PersistentVolumeClaimTemplate": schema_kmodulesxyz_offshoot_api_api_v1_PersistentVolumeClaimTemplate(ref), + "kmodules.xyz/offshoot-api/api/v1.PodRuntimeSettings": schema_kmodulesxyz_offshoot_api_api_v1_PodRuntimeSettings(ref), + "kmodules.xyz/offshoot-api/api/v1.PodSpec": schema_kmodulesxyz_offshoot_api_api_v1_PodSpec(ref), + "kmodules.xyz/offshoot-api/api/v1.PodTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_PodTemplateSpec(ref), + "kmodules.xyz/offshoot-api/api/v1.RuntimeSettings": schema_kmodulesxyz_offshoot_api_api_v1_RuntimeSettings(ref), + "kmodules.xyz/offshoot-api/api/v1.ServicePort": schema_kmodulesxyz_offshoot_api_api_v1_ServicePort(ref), + "kmodules.xyz/offshoot-api/api/v1.ServiceSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceSpec(ref), + "kmodules.xyz/offshoot-api/api/v1.ServiceTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref), + "kmodules.xyz/offshoot-api/api/v1.Volume": schema_kmodulesxyz_offshoot_api_api_v1_Volume(ref), + "kmodules.xyz/offshoot-api/api/v1.VolumeSource": schema_kmodulesxyz_offshoot_api_api_v1_VolumeSource(ref), + "kmodules.xyz/resource-metadata/apis/shared.Action": schema_kmodulesxyz_resource_metadata_apis_shared_Action(ref), + "kmodules.xyz/resource-metadata/apis/shared.ActionGroup": schema_kmodulesxyz_resource_metadata_apis_shared_ActionGroup(ref), + "kmodules.xyz/resource-metadata/apis/shared.ActionInfo": schema_kmodulesxyz_resource_metadata_apis_shared_ActionInfo(ref), + "kmodules.xyz/resource-metadata/apis/shared.ActionTemplate": schema_kmodulesxyz_resource_metadata_apis_shared_ActionTemplate(ref), + "kmodules.xyz/resource-metadata/apis/shared.ActionTemplateGroup": schema_kmodulesxyz_resource_metadata_apis_shared_ActionTemplateGroup(ref), + "kmodules.xyz/resource-metadata/apis/shared.BootstrapPresets": schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.Dashboard": schema_kmodulesxyz_resource_metadata_apis_shared_Dashboard(ref), + "kmodules.xyz/resource-metadata/apis/shared.DashboardVar": schema_kmodulesxyz_resource_metadata_apis_shared_DashboardVar(ref), + "kmodules.xyz/resource-metadata/apis/shared.DeploymentParameters": schema_kmodulesxyz_resource_metadata_apis_shared_DeploymentParameters(ref), + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo": schema_kmodulesxyz_resource_metadata_apis_shared_HelmInfo(ref), + "kmodules.xyz/resource-metadata/apis/shared.HelmRelease": schema_kmodulesxyz_resource_metadata_apis_shared_HelmRelease(ref), + "kmodules.xyz/resource-metadata/apis/shared.HelmRepository": schema_kmodulesxyz_resource_metadata_apis_shared_HelmRepository(ref), + "kmodules.xyz/resource-metadata/apis/shared.If": schema_kmodulesxyz_resource_metadata_apis_shared_If(ref), + "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec": schema_kmodulesxyz_resource_metadata_apis_shared_ImageRegistrySpec(ref), + "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo": schema_kmodulesxyz_resource_metadata_apis_shared_RegistryInfo(ref), + "kmodules.xyz/resource-metadata/apis/shared.RegistryProxies": schema_kmodulesxyz_resource_metadata_apis_shared_RegistryProxies(ref), + "kmodules.xyz/resource-metadata/apis/shared.ResourceLocator": schema_kmodulesxyz_resource_metadata_apis_shared_ResourceLocator(ref), + "kmodules.xyz/resource-metadata/apis/shared.ResourceQuery": schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref), + "kmodules.xyz/resource-metadata/apis/shared.SourceLocator": schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref), + "kmodules.xyz/resource-metadata/apis/shared.UIParameterTemplate": schema_kmodulesxyz_resource_metadata_apis_shared_UIParameterTemplate(ref), + "kmodules.xyz/resource-metadata/apis/shared.UIParameters": schema_kmodulesxyz_resource_metadata_apis_shared_UIParameters(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplate": schema_resource_metadata_apis_ui_v1alpha1_ActionTemplate(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplateGroup": schema_resource_metadata_apis_ui_v1alpha1_ActionTemplateGroup(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplateGroupFilter": schema_resource_metadata_apis_ui_v1alpha1_ActionTemplateGroupFilter(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ChartInfo": schema_resource_metadata_apis_ui_v1alpha1_ChartInfo(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfile": schema_resource_metadata_apis_ui_v1alpha1_ClusterProfile(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfileList": schema_resource_metadata_apis_ui_v1alpha1_ClusterProfileList(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfileSpec": schema_resource_metadata_apis_ui_v1alpha1_ClusterProfileSpec(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ComponentStatus": schema_resource_metadata_apis_ui_v1alpha1_ComponentStatus(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Dashboard": schema_resource_metadata_apis_ui_v1alpha1_Dashboard(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.DependentFeatureSet": schema_resource_metadata_apis_ui_v1alpha1_DependentFeatureSet(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Dependents": schema_resource_metadata_apis_ui_v1alpha1_Dependents(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Feature": schema_resource_metadata_apis_ui_v1alpha1_Feature(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureList": schema_resource_metadata_apis_ui_v1alpha1_FeatureList(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSet": schema_resource_metadata_apis_ui_v1alpha1_FeatureSet(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSetList": schema_resource_metadata_apis_ui_v1alpha1_FeatureSetList(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSetSpec": schema_resource_metadata_apis_ui_v1alpha1_FeatureSetSpec(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSetStatus": schema_resource_metadata_apis_ui_v1alpha1_FeatureSetStatus(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureSpec": schema_resource_metadata_apis_ui_v1alpha1_FeatureSpec(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.FeatureStatus": schema_resource_metadata_apis_ui_v1alpha1_FeatureStatus(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ItemFilter": schema_resource_metadata_apis_ui_v1alpha1_ItemFilter(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.PanelLinkRequest": schema_resource_metadata_apis_ui_v1alpha1_PanelLinkRequest(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ReadinessChecks": schema_resource_metadata_apis_ui_v1alpha1_ReadinessChecks(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.Requirements": schema_resource_metadata_apis_ui_v1alpha1_Requirements(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceDashboard": schema_resource_metadata_apis_ui_v1alpha1_ResourceDashboard(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceDashboardList": schema_resource_metadata_apis_ui_v1alpha1_ResourceDashboardList(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceDashboardSpec": schema_resource_metadata_apis_ui_v1alpha1_ResourceDashboardSpec(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceEditor": schema_resource_metadata_apis_ui_v1alpha1_ResourceEditor(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceEditorList": schema_resource_metadata_apis_ui_v1alpha1_ResourceEditorList(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceEditorSpec": schema_resource_metadata_apis_ui_v1alpha1_ResourceEditorSpec(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilter": schema_resource_metadata_apis_ui_v1alpha1_ResourceOutlineFilter(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilterList": schema_resource_metadata_apis_ui_v1alpha1_ResourceOutlineFilterList(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilterSpec": schema_resource_metadata_apis_ui_v1alpha1_ResourceOutlineFilterSpec(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourcePageOutlineFilter": schema_resource_metadata_apis_ui_v1alpha1_ResourcePageOutlineFilter(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.SectionOutlineFilter": schema_resource_metadata_apis_ui_v1alpha1_SectionOutlineFilter(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.UIParameters": schema_resource_metadata_apis_ui_v1alpha1_UIParameters(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ValuesReference": schema_resource_metadata_apis_ui_v1alpha1_ValuesReference(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.VariantRef": schema_resource_metadata_apis_ui_v1alpha1_VariantRef(ref), + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.WorkloadInfo": schema_resource_metadata_apis_ui_v1alpha1_WorkloadInfo(ref), } } @@ -19866,6 +19873,40 @@ func schema_resource_metadata_apis_ui_v1alpha1_ActionTemplateGroup(ref common.Re } } +func schema_resource_metadata_apis_ui_v1alpha1_ActionTemplateGroupFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ItemFilter"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ItemFilter"}, + } +} + func schema_resource_metadata_apis_ui_v1alpha1_ChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -20716,6 +20757,32 @@ func schema_resource_metadata_apis_ui_v1alpha1_FeatureStatus(ref common.Referenc } } +func schema_resource_metadata_apis_ui_v1alpha1_ItemFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "show": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"show"}, + }, + }, + } +} + func schema_resource_metadata_apis_ui_v1alpha1_PanelLinkRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -21084,6 +21151,237 @@ func schema_resource_metadata_apis_ui_v1alpha1_ResourceEditorSpec(ref common.Ref } } +func schema_resource_metadata_apis_ui_v1alpha1_ResourceOutlineFilter(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("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilterSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilterSpec"}, + } +} + +func schema_resource_metadata_apis_ui_v1alpha1_ResourceOutlineFilterList(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("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilter"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourceOutlineFilter"}, + } +} + +func schema_resource_metadata_apis_ui_v1alpha1_ResourceOutlineFilterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resource": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/client-go/api/v1.ResourceID"), + }, + }, + "header": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "tabBar": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "pages": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourcePageOutlineFilter"), + }, + }, + }, + }, + }, + "actions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplateGroupFilter"), + }, + }, + }, + }, + }, + }, + Required: []string{"resource", "header", "tabBar"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.ResourceID", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ActionTemplateGroupFilter", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ResourcePageOutlineFilter"}, + } +} + +func schema_resource_metadata_apis_ui_v1alpha1_ResourcePageOutlineFilter(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: "", + }, + }, + "sections": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.SectionOutlineFilter"), + }, + }, + }, + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.SectionOutlineFilter"}, + } +} + +func schema_resource_metadata_apis_ui_v1alpha1_SectionOutlineFilter(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "info": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "insight": { + SchemaProps: spec.SchemaProps{ + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + "blocks": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ItemFilter"), + }, + }, + }, + }, + }, + }, + Required: []string{"info", "insight"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ItemFilter"}, + } +} + func schema_resource_metadata_apis_ui_v1alpha1_UIParameters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/ui/v1alpha1/register.go b/apis/ui/v1alpha1/register.go index 1b25f7db9..e83830dea 100644 --- a/apis/ui/v1alpha1/register.go +++ b/apis/ui/v1alpha1/register.go @@ -59,6 +59,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ResourceDashboardList{}, &ResourceEditor{}, &ResourceEditorList{}, + &ResourceOutlineFilter{}, + &ResourceOutlineFilterList{}, ) scheme.AddKnownTypes(SchemeGroupVersion, diff --git a/apis/ui/v1alpha1/resourceoutlinefilter_types.go b/apis/ui/v1alpha1/resourceoutlinefilter_types.go new file mode 100644 index 000000000..abac97bb3 --- /dev/null +++ b/apis/ui/v1alpha1/resourceoutlinefilter_types.go @@ -0,0 +1,83 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + kmapi "kmodules.xyz/client-go/api/v1" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ResourceKindResourceOutlineFilter = "ResourceOutlineFilter" + ResourceResourceOutlineFilter = "resourceoutlinefilter" + ResourceResourceOutlineFilters = "resourceoutlinefilters" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:onlyVerbs=get +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=resourceoutlinefilters,singular=resourceoutlinefilter,scope=Cluster +type ResourceOutlineFilter struct { + metav1.TypeMeta `json:",inline"` + // +optional + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec ResourceOutlineFilterSpec `json:"spec,omitempty"` +} + +type ResourceOutlineFilterSpec struct { + Resource kmapi.ResourceID `json:"resource"` + Header bool `json:"header"` + TabBar bool `json:"tabBar"` + Pages []ResourcePageOutlineFilter `json:"pages,omitempty"` + // +optional + Actions []ActionTemplateGroupFilter `json:"actions,omitempty"` +} + +type ResourcePageOutlineFilter struct { + Name string `json:"name"` + Sections []SectionOutlineFilter `json:"sections,omitempty"` +} + +type ActionTemplateGroupFilter struct { + Name string `json:"name,omitempty"` + Items []ItemFilter `json:"items"` +} + +type SectionOutlineFilter struct { + Name string `json:"name,omitempty"` + Info bool `json:"info"` + Insight bool `json:"insight"` + Blocks []ItemFilter `json:"blocks,omitempty"` +} + +type ItemFilter struct { + Name string `json:"name,omitempty"` + Show bool `json:"show"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:object:root=true + +type ResourceOutlineFilterList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ResourceOutlineFilter `json:"items,omitempty"` +} diff --git a/apis/ui/v1alpha1/zz_generated.deepcopy.go b/apis/ui/v1alpha1/zz_generated.deepcopy.go index d00920bd5..1d88eeaa6 100644 --- a/apis/ui/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ui/v1alpha1/zz_generated.deepcopy.go @@ -82,6 +82,27 @@ func (in *ActionTemplateGroup) DeepCopy() *ActionTemplateGroup { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ActionTemplateGroupFilter) DeepCopyInto(out *ActionTemplateGroupFilter) { + *out = *in + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ItemFilter, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTemplateGroupFilter. +func (in *ActionTemplateGroupFilter) DeepCopy() *ActionTemplateGroupFilter { + if in == nil { + return nil + } + out := new(ActionTemplateGroupFilter) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ChartInfo) DeepCopyInto(out *ChartInfo) { *out = *in @@ -569,6 +590,22 @@ func (in Features) DeepCopy() Features { return *out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ItemFilter) DeepCopyInto(out *ItemFilter) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ItemFilter. +func (in *ItemFilter) DeepCopy() *ItemFilter { + if in == nil { + return nil + } + out := new(ItemFilter) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PanelLinkRequest) DeepCopyInto(out *PanelLinkRequest) { *out = *in @@ -817,6 +854,141 @@ func (in *ResourceEditorSpec) DeepCopy() *ResourceEditorSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceOutlineFilter) DeepCopyInto(out *ResourceOutlineFilter) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceOutlineFilter. +func (in *ResourceOutlineFilter) DeepCopy() *ResourceOutlineFilter { + if in == nil { + return nil + } + out := new(ResourceOutlineFilter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceOutlineFilter) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceOutlineFilterList) DeepCopyInto(out *ResourceOutlineFilterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ResourceOutlineFilter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceOutlineFilterList. +func (in *ResourceOutlineFilterList) DeepCopy() *ResourceOutlineFilterList { + if in == nil { + return nil + } + out := new(ResourceOutlineFilterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ResourceOutlineFilterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourceOutlineFilterSpec) DeepCopyInto(out *ResourceOutlineFilterSpec) { + *out = *in + out.Resource = in.Resource + if in.Pages != nil { + in, out := &in.Pages, &out.Pages + *out = make([]ResourcePageOutlineFilter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Actions != nil { + in, out := &in.Actions, &out.Actions + *out = make([]ActionTemplateGroupFilter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceOutlineFilterSpec. +func (in *ResourceOutlineFilterSpec) DeepCopy() *ResourceOutlineFilterSpec { + if in == nil { + return nil + } + out := new(ResourceOutlineFilterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ResourcePageOutlineFilter) DeepCopyInto(out *ResourcePageOutlineFilter) { + *out = *in + if in.Sections != nil { + in, out := &in.Sections, &out.Sections + *out = make([]SectionOutlineFilter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePageOutlineFilter. +func (in *ResourcePageOutlineFilter) DeepCopy() *ResourcePageOutlineFilter { + if in == nil { + return nil + } + out := new(ResourcePageOutlineFilter) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SectionOutlineFilter) DeepCopyInto(out *SectionOutlineFilter) { + *out = *in + if in.Blocks != nil { + in, out := &in.Blocks, &out.Blocks + *out = make([]ItemFilter, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SectionOutlineFilter. +func (in *SectionOutlineFilter) DeepCopy() *SectionOutlineFilter { + if in == nil { + return nil + } + out := new(SectionOutlineFilter) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UIParameters) DeepCopyInto(out *UIParameters) { *out = *in diff --git a/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_meta_client.go b/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_meta_client.go index 4afebab7c..60aff1563 100644 --- a/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_meta_client.go +++ b/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_meta_client.go @@ -88,6 +88,10 @@ func (c *FakeMetaV1alpha1) ResourceOutlines() v1alpha1.ResourceOutlineInterface return &FakeResourceOutlines{c} } +func (c *FakeMetaV1alpha1) ResourceOutlineFilters() v1alpha1.ResourceOutlineFilterInterface { + return &FakeResourceOutlineFilters{c} +} + func (c *FakeMetaV1alpha1) ResourceQueries() v1alpha1.ResourceQueryInterface { return &FakeResourceQueries{c} } diff --git a/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_resourceoutlinefilter.go b/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_resourceoutlinefilter.go new file mode 100644 index 000000000..97ee7f622 --- /dev/null +++ b/client/clientset/versioned/typed/meta/v1alpha1/fake/fake_resourceoutlinefilter.go @@ -0,0 +1,46 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + testing "k8s.io/client-go/testing" + v1alpha1 "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" +) + +// FakeResourceOutlineFilters implements ResourceOutlineFilterInterface +type FakeResourceOutlineFilters struct { + Fake *FakeMetaV1alpha1 +} + +var resourceoutlinefiltersResource = v1alpha1.SchemeGroupVersion.WithResource("resourceoutlinefilters") + +var resourceoutlinefiltersKind = v1alpha1.SchemeGroupVersion.WithKind("ResourceOutlineFilter") + +// Get takes name of the resourceOutlineFilter, and returns the corresponding resourceOutlineFilter object, and an error if there is any. +func (c *FakeResourceOutlineFilters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ResourceOutlineFilter, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootGetAction(resourceoutlinefiltersResource, name), &v1alpha1.ResourceOutlineFilter{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceOutlineFilter), err +} diff --git a/client/clientset/versioned/typed/meta/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/meta/v1alpha1/generated_expansion.go index 77cf4cbe9..fd16251b3 100644 --- a/client/clientset/versioned/typed/meta/v1alpha1/generated_expansion.go +++ b/client/clientset/versioned/typed/meta/v1alpha1/generated_expansion.go @@ -48,6 +48,8 @@ type ResourceLayoutExpansion interface{} type ResourceOutlineExpansion interface{} +type ResourceOutlineFilterExpansion interface{} + type ResourceQueryExpansion interface{} type ResourceTableDefinitionExpansion interface{} diff --git a/client/clientset/versioned/typed/meta/v1alpha1/meta_client.go b/client/clientset/versioned/typed/meta/v1alpha1/meta_client.go index a38a3582e..ef6a39ab9 100644 --- a/client/clientset/versioned/typed/meta/v1alpha1/meta_client.go +++ b/client/clientset/versioned/typed/meta/v1alpha1/meta_client.go @@ -43,6 +43,7 @@ type MetaV1alpha1Interface interface { ResourceGraphsGetter ResourceLayoutsGetter ResourceOutlinesGetter + ResourceOutlineFiltersGetter ResourceQueriesGetter ResourceTableDefinitionsGetter } @@ -112,6 +113,10 @@ func (c *MetaV1alpha1Client) ResourceOutlines() ResourceOutlineInterface { return newResourceOutlines(c) } +func (c *MetaV1alpha1Client) ResourceOutlineFilters() ResourceOutlineFilterInterface { + return newResourceOutlineFilters(c) +} + func (c *MetaV1alpha1Client) ResourceQueries() ResourceQueryInterface { return newResourceQueries(c) } diff --git a/client/clientset/versioned/typed/meta/v1alpha1/resourceoutlinefilter.go b/client/clientset/versioned/typed/meta/v1alpha1/resourceoutlinefilter.go new file mode 100644 index 000000000..45c4f9bc3 --- /dev/null +++ b/client/clientset/versioned/typed/meta/v1alpha1/resourceoutlinefilter.go @@ -0,0 +1,64 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + rest "k8s.io/client-go/rest" + v1alpha1 "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" + scheme "kmodules.xyz/resource-metadata/client/clientset/versioned/scheme" +) + +// ResourceOutlineFiltersGetter has a method to return a ResourceOutlineFilterInterface. +// A group's client should implement this interface. +type ResourceOutlineFiltersGetter interface { + ResourceOutlineFilters() ResourceOutlineFilterInterface +} + +// ResourceOutlineFilterInterface has methods to work with ResourceOutlineFilter resources. +type ResourceOutlineFilterInterface interface { + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ResourceOutlineFilter, error) + ResourceOutlineFilterExpansion +} + +// resourceOutlineFilters implements ResourceOutlineFilterInterface +type resourceOutlineFilters struct { + client rest.Interface +} + +// newResourceOutlineFilters returns a ResourceOutlineFilters +func newResourceOutlineFilters(c *MetaV1alpha1Client) *resourceOutlineFilters { + return &resourceOutlineFilters{ + client: c.RESTClient(), + } +} + +// Get takes name of the resourceOutlineFilter, and returns the corresponding resourceOutlineFilter object, and an error if there is any. +func (c *resourceOutlineFilters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ResourceOutlineFilter, err error) { + result = &v1alpha1.ResourceOutlineFilter{} + err = c.client.Get(). + Resource("resourceoutlinefilters"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} diff --git a/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_resourceoutlinefilter.go b/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_resourceoutlinefilter.go new file mode 100644 index 000000000..efbd2350f --- /dev/null +++ b/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_resourceoutlinefilter.go @@ -0,0 +1,46 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + testing "k8s.io/client-go/testing" + v1alpha1 "kmodules.xyz/resource-metadata/apis/ui/v1alpha1" +) + +// FakeResourceOutlineFilters implements ResourceOutlineFilterInterface +type FakeResourceOutlineFilters struct { + Fake *FakeUiV1alpha1 +} + +var resourceoutlinefiltersResource = v1alpha1.SchemeGroupVersion.WithResource("resourceoutlinefilters") + +var resourceoutlinefiltersKind = v1alpha1.SchemeGroupVersion.WithKind("ResourceOutlineFilter") + +// Get takes name of the resourceOutlineFilter, and returns the corresponding resourceOutlineFilter object, and an error if there is any. +func (c *FakeResourceOutlineFilters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ResourceOutlineFilter, err error) { + obj, err := c.Fake. + Invokes(testing.NewRootGetAction(resourceoutlinefiltersResource, name), &v1alpha1.ResourceOutlineFilter{}) + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.ResourceOutlineFilter), err +} diff --git a/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go b/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go index 0d397df6e..44a621e51 100644 --- a/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go +++ b/client/clientset/versioned/typed/ui/v1alpha1/fake/fake_ui_client.go @@ -48,6 +48,10 @@ func (c *FakeUiV1alpha1) ResourceEditors() v1alpha1.ResourceEditorInterface { return &FakeResourceEditors{c} } +func (c *FakeUiV1alpha1) ResourceOutlineFilters() v1alpha1.ResourceOutlineFilterInterface { + return &FakeResourceOutlineFilters{c} +} + // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. func (c *FakeUiV1alpha1) RESTClient() rest.Interface { diff --git a/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go b/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go index c39a86fe2..bf56d8f1e 100644 --- a/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go +++ b/client/clientset/versioned/typed/ui/v1alpha1/generated_expansion.go @@ -27,3 +27,5 @@ type FeatureSetExpansion interface{} type ResourceDashboardExpansion interface{} type ResourceEditorExpansion interface{} + +type ResourceOutlineFilterExpansion interface{} diff --git a/client/clientset/versioned/typed/ui/v1alpha1/resourceoutlinefilter.go b/client/clientset/versioned/typed/ui/v1alpha1/resourceoutlinefilter.go new file mode 100644 index 000000000..e1185378a --- /dev/null +++ b/client/clientset/versioned/typed/ui/v1alpha1/resourceoutlinefilter.go @@ -0,0 +1,64 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + rest "k8s.io/client-go/rest" + v1alpha1 "kmodules.xyz/resource-metadata/apis/ui/v1alpha1" + scheme "kmodules.xyz/resource-metadata/client/clientset/versioned/scheme" +) + +// ResourceOutlineFiltersGetter has a method to return a ResourceOutlineFilterInterface. +// A group's client should implement this interface. +type ResourceOutlineFiltersGetter interface { + ResourceOutlineFilters() ResourceOutlineFilterInterface +} + +// ResourceOutlineFilterInterface has methods to work with ResourceOutlineFilter resources. +type ResourceOutlineFilterInterface interface { + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ResourceOutlineFilter, error) + ResourceOutlineFilterExpansion +} + +// resourceOutlineFilters implements ResourceOutlineFilterInterface +type resourceOutlineFilters struct { + client rest.Interface +} + +// newResourceOutlineFilters returns a ResourceOutlineFilters +func newResourceOutlineFilters(c *UiV1alpha1Client) *resourceOutlineFilters { + return &resourceOutlineFilters{ + client: c.RESTClient(), + } +} + +// Get takes name of the resourceOutlineFilter, and returns the corresponding resourceOutlineFilter object, and an error if there is any. +func (c *resourceOutlineFilters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ResourceOutlineFilter, err error) { + result = &v1alpha1.ResourceOutlineFilter{} + err = c.client.Get(). + Resource("resourceoutlinefilters"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} diff --git a/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go b/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go index 42ad88ba3..1f856d417 100644 --- a/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go +++ b/client/clientset/versioned/typed/ui/v1alpha1/ui_client.go @@ -33,6 +33,7 @@ type UiV1alpha1Interface interface { FeatureSetsGetter ResourceDashboardsGetter ResourceEditorsGetter + ResourceOutlineFiltersGetter } // UiV1alpha1Client is used to interact with features provided by the ui.k8s.appscode.com group. @@ -60,6 +61,10 @@ func (c *UiV1alpha1Client) ResourceEditors() ResourceEditorInterface { return newResourceEditors(c) } +func (c *UiV1alpha1Client) ResourceOutlineFilters() ResourceOutlineFilterInterface { + return newResourceOutlineFilters(c) +} + // NewForConfig creates a new UiV1alpha1Client for the given config. // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), // where httpClient was generated with rest.HTTPClientFor(c). diff --git a/crds/meta.k8s.appscode.com_resourceoutlinefilters.yaml b/crds/meta.k8s.appscode.com_resourceoutlinefilters.yaml new file mode 100644 index 000000000..64e6db546 --- /dev/null +++ b/crds/meta.k8s.appscode.com_resourceoutlinefilters.yaml @@ -0,0 +1,123 @@ + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + name: resourceoutlinefilters.meta.k8s.appscode.com +spec: + group: meta.k8s.appscode.com + names: + kind: ResourceOutlineFilter + listKind: ResourceOutlineFilterList + plural: resourceoutlinefilters + singular: resourceoutlinefilter + scope: Cluster + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + actions: + items: + properties: + items: + items: + properties: + name: + type: string + show: + type: boolean + required: + - show + type: object + type: array + name: + type: string + required: + - items + type: object + type: array + header: + type: boolean + pages: + items: + properties: + name: + type: string + sections: + items: + properties: + blocks: + items: + properties: + name: + type: string + show: + type: boolean + required: + - show + type: object + type: array + info: + type: boolean + insight: + type: boolean + name: + type: string + required: + - info + - insight + type: object + type: array + required: + - name + type: object + type: array + resource: + description: ResourceID identifies a resource + properties: + group: + type: string + kind: + description: Kind is the serialized kind of the resource. It + is normally CamelCase and singular. + type: string + name: + description: 'Name is the plural name of the resource to serve. It + must match the name of the CustomResourceDefinition-registration + too: plural.group and it must be all lowercase.' + type: string + scope: + description: ResourceScope is an enum defining the different scopes + available to a custom resource + type: string + version: + type: string + required: + - group + type: object + tabBar: + type: boolean + required: + - header + - resource + - tabBar + type: object + type: object + served: true + storage: true diff --git a/crds/ui.k8s.appscode.com_resourceoutlinefilters.yaml b/crds/ui.k8s.appscode.com_resourceoutlinefilters.yaml new file mode 100644 index 000000000..b95df6018 --- /dev/null +++ b/crds/ui.k8s.appscode.com_resourceoutlinefilters.yaml @@ -0,0 +1,123 @@ + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + name: resourceoutlinefilters.ui.k8s.appscode.com +spec: + group: ui.k8s.appscode.com + names: + kind: ResourceOutlineFilter + listKind: ResourceOutlineFilterList + plural: resourceoutlinefilters + singular: resourceoutlinefilter + scope: Cluster + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + actions: + items: + properties: + items: + items: + properties: + name: + type: string + show: + type: boolean + required: + - show + type: object + type: array + name: + type: string + required: + - items + type: object + type: array + header: + type: boolean + pages: + items: + properties: + name: + type: string + sections: + items: + properties: + blocks: + items: + properties: + name: + type: string + show: + type: boolean + required: + - show + type: object + type: array + info: + type: boolean + insight: + type: boolean + name: + type: string + required: + - info + - insight + type: object + type: array + required: + - name + type: object + type: array + resource: + description: ResourceID identifies a resource + properties: + group: + type: string + kind: + description: Kind is the serialized kind of the resource. It + is normally CamelCase and singular. + type: string + name: + description: 'Name is the plural name of the resource to serve. It + must match the name of the CustomResourceDefinition-registration + too: plural.group and it must be all lowercase.' + type: string + scope: + description: ResourceScope is an enum defining the different scopes + available to a custom resource + type: string + version: + type: string + required: + - group + type: object + tabBar: + type: boolean + required: + - header + - resource + - tabBar + type: object + type: object + served: true + storage: true diff --git a/pkg/layouts/filter.go b/pkg/layouts/filter.go new file mode 100644 index 000000000..f639d60ba --- /dev/null +++ b/pkg/layouts/filter.go @@ -0,0 +1,174 @@ +/* +Copyright AppsCode Inc. and Contributors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package layouts + +import ( + "context" + "fmt" + + kmapi "kmodules.xyz/client-go/api/v1" + rsapi "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" + uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1" + blockdefs "kmodules.xyz/resource-metadata/hub/resourceblockdefinitions" + "kmodules.xyz/resource-metadata/hub/resourceeditors" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "sigs.k8s.io/controller-runtime/pkg/client" +) + +func GetDefaultResourceOutlineFilter(kc client.Client, outline *rsapi.ResourceOutline) (*uiapi.ResourceOutlineFilter, error) { + src := outline.Spec.Resource + + var result uiapi.ResourceOutlineFilter + result.TypeMeta = metav1.TypeMeta{ + Kind: uiapi.ResourceKindResourceOutlineFilter, + APIVersion: uiapi.SchemeGroupVersion.String(), + } + result.ObjectMeta = outline.ObjectMeta + result.Spec.Resource = outline.Spec.Resource + result.Spec.Header = outline.Spec.Header != nil + result.Spec.TabBar = outline.Spec.TabBar != nil + if ed, err := resourceeditors.LoadByGVR(kc, outline.Spec.Resource.GroupVersionResource()); err == nil { + if ed.Spec.UI != nil { + { + result.Spec.Actions = make([]uiapi.ActionTemplateGroupFilter, 0, len(ed.Spec.UI.Actions)) + for _, ag := range ed.Spec.UI.Actions { + ag2 := uiapi.ActionTemplateGroupFilter{ + Name: ag.Name, + Items: make([]uiapi.ItemFilter, 0, len(ag.Items)), + } + for _, a := range ag.Items { + a2 := uiapi.ItemFilter{ + Name: a.Name, + Show: true, + } + ag2.Items = append(ag2.Items, a2) + } + result.Spec.Actions = append(result.Spec.Actions, ag2) + } + } + } + } + + result.Spec.Pages = make([]uiapi.ResourcePageOutlineFilter, 0, len(outline.Spec.Pages)) + + pages := outline.Spec.Pages + if outline.Spec.DefaultLayout && (len(pages) == 0 || pages[0].Name != HomePage) { + pages = append([]rsapi.ResourcePageOutline{ + { + Name: HomePage, + Sections: nil, + }, + }, outline.Spec.Pages...) + } + + if len(pages) > 0 && pages[0].Name == HomePage { + if len(pages[0].Sections) == 0 { + pages[0].Sections = []rsapi.SectionOutline{ + { + Info: &rsapi.PageBlockOutline{ + Kind: rsapi.TableKindSelf, + DisplayMode: rsapi.DisplayModeField, + }, + }, + } + } else { + if pages[0].Sections[0].Info == nil { + pages[0].Sections[0].Info = &rsapi.PageBlockOutline{ + Kind: rsapi.TableKindSelf, + DisplayMode: rsapi.DisplayModeField, + } + } + } + } + + for _, pageOutline := range pages { + page := uiapi.ResourcePageOutlineFilter{ + Name: pageOutline.Name, + Sections: make([]uiapi.SectionOutlineFilter, 0, len(pageOutline.Sections)), + } + for _, sectionOutline := range pageOutline.Sections { + + section := uiapi.SectionOutlineFilter{ + Name: sectionOutline.Name, + Info: sectionOutline.Info != nil, + Insight: sectionOutline.Insight != nil, + } + + var tables []uiapi.ItemFilter + for _, block := range sectionOutline.Blocks { + blocks, err := FlattenPageBlockOutlineFilter(kc, src, block, rsapi.List) + if err != nil { + return nil, err + } + tables = append(tables, blocks...) + } + section.Blocks = tables + + page.Sections = append(page.Sections, section) + } + result.Spec.Pages = append(result.Spec.Pages, page) + } + + return &result, nil +} + +func FlattenPageBlockOutlineFilter( + kc client.Client, + src kmapi.ResourceID, + in rsapi.PageBlockOutline, + priority rsapi.Priority, +) ([]uiapi.ItemFilter, error) { + if in.Kind == rsapi.TableKindSubTable || + in.Kind == rsapi.TableKindConnection || + in.Kind == rsapi.TableKindCustom || + in.Kind == rsapi.TableKindSelf { + return []uiapi.ItemFilter{ + { + Name: in.Name, + Show: true, + }, + }, nil + } else if in.Kind != rsapi.TableKindBlock { + return nil, fmt.Errorf("unknown block kind %+v", in) + } + + obj, err := blockdefs.LoadByName(in.Name) + if err != nil { + return nil, err + } + var result []uiapi.ItemFilter + for _, block := range obj.Spec.Blocks { + out, err := FlattenPageBlockOutlineFilter(kc, src, block, priority) + if err != nil { + return nil, err + } + result = append(result, out...) + } + return result, nil +} + +func GetResourceOutlineFilter(kc client.Client, outline *rsapi.ResourceOutline) (*uiapi.ResourceOutlineFilter, error) { + var result uiapi.ResourceOutlineFilter + err := kc.Get(context.TODO(), client.ObjectKey{Name: outline.Name}, &result) + if err == nil { + return &result, nil + } else if client.IgnoreNotFound(err) != nil { + return nil, err + } + return GetDefaultResourceOutlineFilter(kc, outline) +} diff --git a/pkg/layouts/lib.go b/pkg/layouts/lib.go index 74b2b205f..645b0995e 100644 --- a/pkg/layouts/lib.go +++ b/pkg/layouts/lib.go @@ -21,7 +21,7 @@ import ( kmapi "kmodules.xyz/client-go/api/v1" meta_util "kmodules.xyz/client-go/meta" - "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" + rsapi "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" "kmodules.xyz/resource-metadata/apis/shared" "kmodules.xyz/resource-metadata/hub" blockdefs "kmodules.xyz/resource-metadata/hub/resourceblockdefinitions" @@ -42,7 +42,7 @@ const HomePage = "Overview" var reg = hub.NewRegistryOfKnownResources() -func LoadResourceLayoutForGVR(kc client.Client, gvr schema.GroupVersionResource) (*v1alpha1.ResourceLayout, error) { +func LoadResourceLayoutForGVR(kc client.Client, gvr schema.GroupVersionResource) (*rsapi.ResourceLayout, error) { outline, found := resourceoutlines.LoadDefaultByGVR(gvr) if found { return GetResourceLayout(kc, outline) @@ -70,13 +70,13 @@ func resourceIDForGVR(mapper meta.RESTMapper, gvr schema.GroupVersionResource) ( return nil, err } if rid == nil { - return nil, apierrors.NewNotFound(v1alpha1.Resource(v1alpha1.ResourceKindResourceOutline), gvr.String()) + return nil, apierrors.NewNotFound(rsapi.Resource(rsapi.ResourceKindResourceOutline), gvr.String()) } } return rid, nil } -func LoadResourceLayoutForGVK(kc client.Client, gvk schema.GroupVersionKind) (*v1alpha1.ResourceLayout, error) { +func LoadResourceLayoutForGVK(kc client.Client, gvk schema.GroupVersionKind) (*rsapi.ResourceLayout, error) { outline, found := resourceoutlines.LoadDefaultByGVK(gvk) if found { return GetResourceLayout(kc, outline) @@ -104,17 +104,17 @@ func resourceIDForGVK(kc client.Client, gvk schema.GroupVersionKind) (*kmapi.Res return nil, err } if rid == nil { - return nil, apierrors.NewNotFound(v1alpha1.Resource(v1alpha1.ResourceKindResourceOutline), gvk.String()) + return nil, apierrors.NewNotFound(rsapi.Resource(rsapi.ResourceKindResourceOutline), gvk.String()) } } return rid, nil } -func generateDefaultLayout(kc client.Client, rid kmapi.ResourceID) (*v1alpha1.ResourceLayout, error) { - outline := &v1alpha1.ResourceOutline{ +func generateDefaultLayout(kc client.Client, rid kmapi.ResourceID) (*rsapi.ResourceLayout, error) { + outline := &rsapi.ResourceOutline{ TypeMeta: metav1.TypeMeta{ - Kind: v1alpha1.ResourceKindResourceOutline, - APIVersion: v1alpha1.SchemeGroupVersion.String(), + Kind: rsapi.ResourceKindResourceOutline, + APIVersion: rsapi.SchemeGroupVersion.String(), }, ObjectMeta: metav1.ObjectMeta{ Name: resourceoutlines.DefaultLayoutName(rid.GroupVersionResource()), @@ -125,7 +125,7 @@ func generateDefaultLayout(kc client.Client, rid kmapi.ResourceID) (*v1alpha1.Re "k8s.io/kind": rid.Kind, }, }, - Spec: v1alpha1.ResourceOutlineSpec{ + Spec: rsapi.ResourceOutlineSpec{ Resource: rid, DefaultLayout: true, Header: nil, @@ -146,7 +146,7 @@ func generateDefaultLayout(kc client.Client, rid kmapi.ResourceID) (*v1alpha1.Re return GetResourceLayout(kc, outline) } -func LoadResourceLayout(kc client.Client, name string) (*v1alpha1.ResourceLayout, error) { +func LoadResourceLayout(kc client.Client, name string) (*rsapi.ResourceLayout, error) { outline, err := resourceoutlines.LoadByName(name) if apierrors.IsNotFound(err) { gvr, e2 := hub.ParseGVR(name) @@ -161,13 +161,13 @@ func LoadResourceLayout(kc client.Client, name string) (*v1alpha1.ResourceLayout return GetResourceLayout(kc, outline) } -func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1alpha1.ResourceLayout, error) { +func GetResourceLayout(kc client.Client, outline *rsapi.ResourceOutline) (*rsapi.ResourceLayout, error) { src := outline.Spec.Resource - var result v1alpha1.ResourceLayout + var result rsapi.ResourceLayout result.TypeMeta = metav1.TypeMeta{ - Kind: v1alpha1.ResourceKindResourceLayout, - APIVersion: v1alpha1.SchemeGroupVersion.String(), + Kind: rsapi.ResourceKindResourceLayout, + APIVersion: rsapi.SchemeGroupVersion.String(), } result.ObjectMeta = outline.ObjectMeta result.Spec.DefaultLayout = outline.Spec.DefaultLayout @@ -218,7 +218,7 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 } } if outline.Spec.Header != nil { - tables, err := FlattenPageBlockOutline(kc, src, *outline.Spec.Header, v1alpha1.Field) + tables, err := FlattenPageBlockOutline(kc, src, *outline.Spec.Header, rsapi.Field) if err != nil { return nil, err } @@ -228,7 +228,7 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 result.Spec.Header = &tables[0] } if outline.Spec.TabBar != nil { - tables, err := FlattenPageBlockOutline(kc, src, *outline.Spec.TabBar, v1alpha1.Field) + tables, err := FlattenPageBlockOutline(kc, src, *outline.Spec.TabBar, rsapi.Field) if err != nil { return nil, err } @@ -238,11 +238,11 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 result.Spec.TabBar = &tables[0] } - result.Spec.Pages = make([]v1alpha1.ResourcePageLayout, 0, len(outline.Spec.Pages)) + result.Spec.Pages = make([]rsapi.ResourcePageLayout, 0, len(outline.Spec.Pages)) pages := outline.Spec.Pages if outline.Spec.DefaultLayout && (len(pages) == 0 || pages[0].Name != HomePage) { - pages = append([]v1alpha1.ResourcePageOutline{ + pages = append([]rsapi.ResourcePageOutline{ { Name: HomePage, Sections: nil, @@ -252,33 +252,33 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 if len(pages) > 0 && pages[0].Name == HomePage { if len(pages[0].Sections) == 0 { - pages[0].Sections = []v1alpha1.SectionOutline{ + pages[0].Sections = []rsapi.SectionOutline{ { - Info: &v1alpha1.PageBlockOutline{ - Kind: v1alpha1.TableKindSelf, - DisplayMode: v1alpha1.DisplayModeField, + Info: &rsapi.PageBlockOutline{ + Kind: rsapi.TableKindSelf, + DisplayMode: rsapi.DisplayModeField, }, }, } } else { if pages[0].Sections[0].Info == nil { - pages[0].Sections[0].Info = &v1alpha1.PageBlockOutline{ - Kind: v1alpha1.TableKindSelf, - DisplayMode: v1alpha1.DisplayModeField, + pages[0].Sections[0].Info = &rsapi.PageBlockOutline{ + Kind: rsapi.TableKindSelf, + DisplayMode: rsapi.DisplayModeField, } } } } for _, pageOutline := range pages { - page := v1alpha1.ResourcePageLayout{ + page := rsapi.ResourcePageLayout{ Name: pageOutline.Name, RequiredFeatureSets: pageOutline.RequiredFeatureSets, - Sections: make([]v1alpha1.SectionLayout, 0, len(pageOutline.Sections)), + Sections: make([]rsapi.SectionLayout, 0, len(pageOutline.Sections)), } for _, sectionOutline := range pageOutline.Sections { - section := v1alpha1.SectionLayout{ + section := rsapi.SectionLayout{ Name: sectionOutline.Name, Icons: sectionOutline.Icons, Info: nil, @@ -286,7 +286,7 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 RequiredFeatureSets: sectionOutline.RequiredFeatureSets, } if sectionOutline.Info != nil { - tables, err := FlattenPageBlockOutline(kc, src, *sectionOutline.Info, v1alpha1.Field) + tables, err := FlattenPageBlockOutline(kc, src, *sectionOutline.Info, rsapi.Field) if err != nil { return nil, err } @@ -296,7 +296,7 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 section.Info = &tables[0] } if sectionOutline.Insight != nil { - tables, err := FlattenPageBlockOutline(kc, src, *sectionOutline.Insight, v1alpha1.Field) + tables, err := FlattenPageBlockOutline(kc, src, *sectionOutline.Insight, rsapi.Field) if err != nil { return nil, err } @@ -306,9 +306,9 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 section.Insight = &tables[0] } - var tables []v1alpha1.PageBlockLayout + var tables []rsapi.PageBlockLayout for _, block := range sectionOutline.Blocks { - blocks, err := FlattenPageBlockOutline(kc, src, block, v1alpha1.List) + blocks, err := FlattenPageBlockOutline(kc, src, block, rsapi.List) if err != nil { return nil, err } @@ -327,19 +327,19 @@ func GetResourceLayout(kc client.Client, outline *v1alpha1.ResourceOutline) (*v1 func FlattenPageBlockOutline( kc client.Client, src kmapi.ResourceID, - in v1alpha1.PageBlockOutline, - priority v1alpha1.Priority, -) ([]v1alpha1.PageBlockLayout, error) { - if in.Kind == v1alpha1.TableKindSubTable || - in.Kind == v1alpha1.TableKindConnection || - in.Kind == v1alpha1.TableKindCustom || - in.Kind == v1alpha1.TableKindSelf { + in rsapi.PageBlockOutline, + priority rsapi.Priority, +) ([]rsapi.PageBlockLayout, error) { + if in.Kind == rsapi.TableKindSubTable || + in.Kind == rsapi.TableKindConnection || + in.Kind == rsapi.TableKindCustom || + in.Kind == rsapi.TableKindSelf { out, err := Convert_PageBlockOutline_To_PageBlockLayout(kc, src, in, priority) if err != nil { return nil, err } - return []v1alpha1.PageBlockLayout{out}, nil - } else if in.Kind != v1alpha1.TableKindBlock { + return []rsapi.PageBlockLayout{out}, nil + } else if in.Kind != rsapi.TableKindBlock { return nil, fmt.Errorf("unknown block kind %+v", in) } @@ -347,7 +347,7 @@ func FlattenPageBlockOutline( if err != nil { return nil, err } - var result []v1alpha1.PageBlockLayout + var result []rsapi.PageBlockLayout for _, block := range obj.Spec.Blocks { out, err := FlattenPageBlockOutline(kc, src, block, priority) if err != nil { @@ -361,15 +361,15 @@ func FlattenPageBlockOutline( func Convert_PageBlockOutline_To_PageBlockLayout( kc client.Client, src kmapi.ResourceID, - in v1alpha1.PageBlockOutline, - priority v1alpha1.Priority, -) (v1alpha1.PageBlockLayout, error) { - var columns []v1alpha1.ResourceColumnDefinition + in rsapi.PageBlockOutline, + priority rsapi.Priority, +) (rsapi.PageBlockLayout, error) { + var columns []rsapi.ResourceColumnDefinition if in.View != nil { if in.View.Name != "" { obj, err := tabledefs.LoadByName(in.View.Name) if err != nil { - return v1alpha1.PageBlockLayout{}, err + return rsapi.PageBlockLayout{}, err } columns = obj.Spec.Columns } else { @@ -379,14 +379,14 @@ func Convert_PageBlockOutline_To_PageBlockLayout( columns, err := tabledefs.FlattenColumns(columns) if err != nil { - return v1alpha1.PageBlockLayout{}, err + return rsapi.PageBlockLayout{}, err } - if in.Kind == v1alpha1.TableKindSubTable && len(columns) == 0 { - return v1alpha1.PageBlockLayout{}, fmt.Errorf("missing columns for SubTable %s with fieldPath %s", in.Name, in.FieldPath) + if in.Kind == rsapi.TableKindSubTable && len(columns) == 0 { + return rsapi.PageBlockLayout{}, fmt.Errorf("missing columns for SubTable %s with fieldPath %s", in.Name, in.FieldPath) } - if in.Kind == v1alpha1.TableKindConnection && kc != nil { + if in.Kind == rsapi.TableKindConnection && kc != nil { mapping, err := kc.RESTMapper().RESTMapping(schema.GroupKind{Group: in.Ref.Group, Kind: in.Ref.Kind}) if meta.IsNoMatchError(err) { columns = tableconvertor.FilterColumnsWithDefaults(nil, schema.GroupVersionResource{} /*ignore*/, columns, priority) @@ -397,18 +397,18 @@ func Convert_PageBlockOutline_To_PageBlockLayout( } columns, err = tabledefs.FlattenColumns(columns) if err != nil { - return v1alpha1.PageBlockLayout{}, err + return rsapi.PageBlockLayout{}, err } } columns = tableconvertor.FilterColumnsWithDefaults(kc, mapping.Resource, columns, priority) } else { - return v1alpha1.PageBlockLayout{}, err + return rsapi.PageBlockLayout{}, err } - } else if in.Kind == v1alpha1.TableKindSelf { + } else if in.Kind == rsapi.TableKindSelf { columns = tableconvertor.FilterColumnsWithDefaults(kc, src.GroupVersionResource(), columns, priority) } - result := v1alpha1.PageBlockLayout{ + result := rsapi.PageBlockLayout{ Kind: in.Kind, Name: in.Name, Width: in.Width, @@ -420,7 +420,7 @@ func Convert_PageBlockOutline_To_PageBlockLayout( RequiredFeatureSets: in.RequiredFeatureSets, } if len(columns) > 0 { - result.View = &v1alpha1.PageBlockTableDefinition{ + result.View = &rsapi.PageBlockTableDefinition{ Columns: columns, } } diff --git a/pkg/tableconvertor/tableconvertor.go b/pkg/tableconvertor/tableconvertor.go index 4eb653834..c3be60ab3 100644 --- a/pkg/tableconvertor/tableconvertor.go +++ b/pkg/tableconvertor/tableconvertor.go @@ -27,7 +27,7 @@ import ( "text/template" meta_util "kmodules.xyz/client-go/meta" - "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" + rsapi "kmodules.xyz/resource-metadata/apis/meta/v1alpha1" "kmodules.xyz/resource-metadata/apis/shared" uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1" "kmodules.xyz/resource-metadata/pkg/tableconvertor/lib" @@ -52,12 +52,12 @@ var pool = sync.Pool{ } type TableConvertor interface { - ConvertToTable(ctx context.Context, object runtime.Object) (*v1alpha1.Table, error) + ConvertToTable(ctx context.Context, object runtime.Object) (*rsapi.Table, error) } // New creates a new table convertor for the provided CRD column definition. If the printer definition cannot be parsed, // error will be returned along with a default table convertor. -func New(fieldPath string, columns []v1alpha1.ResourceColumnDefinition, fnDashboard DashboardRendererFunc, fnExec ResourceExecFunc) (TableConvertor, error) { +func New(fieldPath string, columns []rsapi.ResourceColumnDefinition, fnDashboard DashboardRendererFunc, fnExec ResourceExecFunc) (TableConvertor, error) { c := &convertor{ fieldPath: fieldPath, } @@ -65,25 +65,25 @@ func New(fieldPath string, columns []v1alpha1.ResourceColumnDefinition, fnDashbo return c, err } -func NewForList(fieldPath string, columns []v1alpha1.ResourceColumnDefinition, fnDashboard DashboardRendererFunc, fnExec ResourceExecFunc) (TableConvertor, error) { +func NewForList(fieldPath string, columns []rsapi.ResourceColumnDefinition, fnDashboard DashboardRendererFunc, fnExec ResourceExecFunc) (TableConvertor, error) { c := &convertor{ fieldPath: fieldPath, } - err := c.init(filterColumns(columns, v1alpha1.List), fnDashboard, fnExec) + err := c.init(filterColumns(columns, rsapi.List), fnDashboard, fnExec) return c, err } type convertor struct { fieldPath string - headers []v1alpha1.ResourceColumnDefinition + headers []rsapi.ResourceColumnDefinition } -func filterColumns(columns []v1alpha1.ResourceColumnDefinition, priority v1alpha1.Priority) []v1alpha1.ResourceColumnDefinition { - out := make([]v1alpha1.ResourceColumnDefinition, 0, len(columns)) +func filterColumns(columns []rsapi.ResourceColumnDefinition, priority rsapi.Priority) []rsapi.ResourceColumnDefinition { + out := make([]rsapi.ResourceColumnDefinition, 0, len(columns)) for _, col := range columns { - if (col.Priority&int32(v1alpha1.Metadata)) == int32(v1alpha1.Metadata) || + if (col.Priority&int32(rsapi.Metadata)) == int32(rsapi.Metadata) || (col.Priority&int32(priority)) == int32(priority) || - (priority == v1alpha1.List && col.Priority == 0) { + (priority == rsapi.List && col.Priority == 0) { out = append(out, col) } } @@ -93,9 +93,9 @@ func filterColumns(columns []v1alpha1.ResourceColumnDefinition, priority v1alpha func FilterColumnsWithDefaults( kc client.Client, gvr schema.GroupVersionResource, - columns []v1alpha1.ResourceColumnDefinition, - priority v1alpha1.Priority, -) []v1alpha1.ResourceColumnDefinition { + columns []rsapi.ResourceColumnDefinition, + priority rsapi.Priority, +) []rsapi.ResourceColumnDefinition { // columns are specified in resource description, so use those. out := filterColumns(columns, priority) if len(out) > 0 { @@ -103,8 +103,8 @@ func FilterColumnsWithDefaults( } // generate column list by merging default columns + crd additional columns - var defaultColumns []v1alpha1.ResourceColumnDefinition - if priority == v1alpha1.List { + var defaultColumns []rsapi.ResourceColumnDefinition + if priority == rsapi.List { defaultColumns = DefaultListColumns() } else { defaultColumns = DefaultDetailsColumns() @@ -114,17 +114,17 @@ func FilterColumnsWithDefaults( defaultJsonPaths.Insert(col.Name) } - var additionalColumns []v1alpha1.ResourceColumnDefinition + var additionalColumns []rsapi.ResourceColumnDefinition if kc != nil { var crd crd_api.CustomResourceDefinition err := kc.Get(context.TODO(), client.ObjectKey{Name: fmt.Sprintf("%s.%s", gvr.Resource, gvr.Group)}, &crd) if err == nil { for _, version := range crd.Spec.Versions { if version.Name == gvr.Version && len(version.AdditionalPrinterColumns) > 0 { - additionalColumns = make([]v1alpha1.ResourceColumnDefinition, 0, len(version.AdditionalPrinterColumns)) + additionalColumns = make([]rsapi.ResourceColumnDefinition, 0, len(version.AdditionalPrinterColumns)) for _, col := range version.AdditionalPrinterColumns { if !defaultJsonPaths.Has(col.Name) { - def := v1alpha1.ResourceColumnDefinition{ + def := rsapi.ResourceColumnDefinition{ Name: col.Name, Type: col.Type, Format: col.Format, @@ -146,14 +146,14 @@ func FilterColumnsWithDefaults( return append(defaultColumns, additionalColumns...) } -func (c *convertor) init(columns []v1alpha1.ResourceColumnDefinition, fnDashboard DashboardRendererFunc, fnExec ResourceExecFunc) error { +func (c *convertor) init(columns []rsapi.ResourceColumnDefinition, fnDashboard DashboardRendererFunc, fnExec ResourceExecFunc) error { for i, c := range columns { if c.Dashboard != nil && c.Dashboard.Name != "" { if fnDashboard == nil { return errors.New("missing dashboard renderer") } if obj, url, err := fnDashboard(c.Dashboard.Name); err != nil { - c.Dashboard.Status = v1alpha1.RenderError + c.Dashboard.Status = rsapi.RenderError c.Dashboard.Message = err.Error() } else { c.Dashboard.Dashboard = func(in *uiapi.Dashboard) *shared.Dashboard { @@ -169,7 +169,7 @@ func (c *convertor) init(columns []v1alpha1.ResourceColumnDefinition, fnDashboar return &out }(&obj.Spec.Dashboards[0]) c.Dashboard.URL = url - c.Dashboard.Status = v1alpha1.RenderSuccess + c.Dashboard.Status = rsapi.RenderSuccess } } else if c.Exec != nil { if len(c.Exec.Command) == 0 { @@ -196,7 +196,7 @@ func (c *convertor) init(columns []v1alpha1.ResourceColumnDefinition, fnDashboar return nil } -func addTargetVars(in *v1alpha1.DashboardDefinition, data interface{}, buf *bytes.Buffer) (string, error) { +func addTargetVars(in *rsapi.DashboardDefinition, data interface{}, buf *bytes.Buffer) (string, error) { varname := func(s string) string { if strings.HasPrefix(s, "var-") { return s @@ -238,7 +238,7 @@ func addTargetVars(in *v1alpha1.DashboardDefinition, data interface{}, buf *byte return u.String(), nil } -func (c *convertor) rowFn(obj interface{}) ([]v1alpha1.TableCell, error) { +func (c *convertor) rowFn(obj interface{}) ([]rsapi.TableCell, error) { data := obj if o, ok := obj.(runtime.Unstructured); ok { data = o.UnstructuredContent() @@ -247,13 +247,13 @@ func (c *convertor) rowFn(obj interface{}) ([]v1alpha1.TableCell, error) { buf := pool.Get().(*bytes.Buffer) defer pool.Put(buf) - cells := make([]v1alpha1.TableCell, 0, len(c.headers)) + cells := make([]rsapi.TableCell, 0, len(c.headers)) for _, col := range c.headers { - var cell v1alpha1.TableCell + var cell rsapi.TableCell if col.Dashboard != nil { // if dashboard type column, set dashboard url as data for cell - if col.Dashboard.Status == v1alpha1.RenderSuccess { + if col.Dashboard.Status == rsapi.RenderSuccess { if u, err := addTargetVars(col.Dashboard, data, buf); err != nil { return nil, err } else { @@ -292,12 +292,12 @@ func (c *convertor) rowFn(obj interface{}) ([]v1alpha1.TableCell, error) { return nil, err } else { if col.Exec.Alias != "" { - var execs []v1alpha1.ResourceExec + var execs []rsapi.ResourceExec err = meta_util.DecodeObject(v, &execs) if err != nil { return nil, errors.Wrapf(err, "failed to decode cell value for col %s", col.Name) } - result := make([]v1alpha1.ResourceExec, 0, len(execs)) + result := make([]rsapi.ResourceExec, 0, len(execs)) for _, exec := range execs { if exec.Alias == col.Exec.Alias { result = append(result, exec) @@ -411,14 +411,14 @@ func renderTemplate(data interface{}, col columnOptions, buf *bytes.Buffer) (int return cellForJSONValue(col, strings.ReplaceAll(buf.String(), "", "")) } -func (c *convertor) ConvertToTable(_ context.Context, obj runtime.Object) (*v1alpha1.Table, error) { - table := &v1alpha1.Table{ - Columns: make([]v1alpha1.ResourceColumn, 0, len(c.headers)), - Rows: make([]v1alpha1.TableRow, 0), +func (c *convertor) ConvertToTable(_ context.Context, obj runtime.Object) (*rsapi.Table, error) { + table := &rsapi.Table{ + Columns: make([]rsapi.ResourceColumn, 0, len(c.headers)), + Rows: make([]rsapi.TableRow, 0), } for _, def := range c.headers { - table.Columns = append(table.Columns, v1alpha1.Convert_ResourceColumnDefinition_To_ResourceColumn(def)) + table.Columns = append(table.Columns, rsapi.Convert_ResourceColumnDefinition_To_ResourceColumn(def)) } if m, err := meta.ListAccessor(obj); err == nil { @@ -490,9 +490,9 @@ func cellForJSONValue(col columnOptions, value string) (interface{}, error) { // metaToTableRow converts a list or object into one or more table rows. The provided rowFn is invoked for // each accessed item, with name and age being passed to each. -func metaToTableRow(obj runtime.Object, fieldPath string, rowFn func(obj interface{}) ([]v1alpha1.TableCell, error)) ([]v1alpha1.TableRow, error) { +func metaToTableRow(obj runtime.Object, fieldPath string, rowFn func(obj interface{}) ([]rsapi.TableCell, error)) ([]rsapi.TableRow, error) { if meta.IsListType(obj) { - rows := make([]v1alpha1.TableRow, 0, 16) + rows := make([]rsapi.TableRow, 0, 16) err := meta.EachListItem(obj, func(obj runtime.Object) error { nestedRows, err := metaToTableRow(obj, fieldPath, rowFn) if err != nil { @@ -517,7 +517,7 @@ func metaToTableRow(obj runtime.Object, fieldPath string, rowFn func(obj interfa if a, err := meta.Accessor(obj); err == nil { ns = a.GetNamespace() } - return []v1alpha1.TableRow{ + return []rsapi.TableRow{ { Cells: cells, Namespace: ns, @@ -537,9 +537,9 @@ func metaToTableRow(obj runtime.Object, fieldPath string, rowFn func(obj interfa if !ok { return nil, nil } - rows := make([]v1alpha1.TableRow, 0, len(arr)) + rows := make([]rsapi.TableRow, 0, len(arr)) for _, item := range arr { - var row v1alpha1.TableRow + var row rsapi.TableRow row.Namespace = ns row.Cells, err = rowFn(item) if err != nil { @@ -550,19 +550,19 @@ func metaToTableRow(obj runtime.Object, fieldPath string, rowFn func(obj interfa return rows, nil } -func DefaultListColumns() []v1alpha1.ResourceColumnDefinition { - return []v1alpha1.ResourceColumnDefinition{ +func DefaultListColumns() []rsapi.ResourceColumnDefinition { + return []rsapi.ResourceColumnDefinition{ { Name: "Name", Type: "string", Format: "", - Priority: int32(v1alpha1.List), + Priority: int32(rsapi.List), PathTemplate: `{{ .metadata.name }}`, - Sort: &v1alpha1.SortDefinition{ + Sort: &rsapi.SortDefinition{ Enable: true, // Template: "", }, - Link: &v1alpha1.AttributeDefinition{ + Link: &rsapi.AttributeDefinition{ // Template: "", }, // Shape ShapeProperty `json:"shape,omitempty"` @@ -573,30 +573,30 @@ func DefaultListColumns() []v1alpha1.ResourceColumnDefinition { Name: "Namespace", Type: "string", Format: "", - Priority: int32(v1alpha1.List), + Priority: int32(rsapi.List), PathTemplate: `{{ .metadata.namespace }}`, }, { Name: "Labels", Type: "object", Format: "", - Priority: int32(v1alpha1.List), + Priority: int32(rsapi.List), PathTemplate: `{{ .metadata.labels | toRawJson }}`, }, { Name: "Annotations", Type: "object", Format: "", - Priority: int32(v1alpha1.List), + Priority: int32(rsapi.List), PathTemplate: `{{ .metadata.annotations | toRawJson }}`, }, { Name: "Age", Type: "date", Format: "", - Priority: int32(v1alpha1.List), + Priority: int32(rsapi.List), PathTemplate: `{{ .metadata.creationTimestamp }}`, - Sort: &v1alpha1.SortDefinition{ + Sort: &rsapi.SortDefinition{ Enable: true, Template: `{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}`, Type: "integer", @@ -605,19 +605,19 @@ func DefaultListColumns() []v1alpha1.ResourceColumnDefinition { } } -func DefaultDetailsColumns() []v1alpha1.ResourceColumnDefinition { - return []v1alpha1.ResourceColumnDefinition{ +func DefaultDetailsColumns() []rsapi.ResourceColumnDefinition { + return []rsapi.ResourceColumnDefinition{ { Name: "Name", Type: "string", Format: "", - Priority: int32(v1alpha1.Field | v1alpha1.List), + Priority: int32(rsapi.Field | rsapi.List), PathTemplate: `{{ .metadata.name }}`, - Sort: &v1alpha1.SortDefinition{ + Sort: &rsapi.SortDefinition{ Enable: true, // Template: "", }, - Link: &v1alpha1.AttributeDefinition{ + Link: &rsapi.AttributeDefinition{ // Template: "", }, // Shape ShapeProperty `json:"shape,omitempty"` @@ -628,30 +628,30 @@ func DefaultDetailsColumns() []v1alpha1.ResourceColumnDefinition { Name: "Namespace", Type: "string", Format: "", - Priority: int32(v1alpha1.Field | v1alpha1.List), + Priority: int32(rsapi.Field | rsapi.List), PathTemplate: `{{ .metadata.namespace }}`, }, { Name: "Labels", Type: "object", Format: "", - Priority: int32(v1alpha1.Field | v1alpha1.List), + Priority: int32(rsapi.Field | rsapi.List), PathTemplate: `{{ .metadata.labels | toRawJson }}`, }, { Name: "Annotations", Type: "object", Format: "", - Priority: int32(v1alpha1.Field | v1alpha1.List), + Priority: int32(rsapi.Field | rsapi.List), PathTemplate: `{{ .metadata.annotations | toRawJson }}`, }, { Name: "Age", Type: "date", Format: "", - Priority: int32(v1alpha1.Field | v1alpha1.List), + Priority: int32(rsapi.Field | rsapi.List), PathTemplate: `{{ .metadata.creationTimestamp }}`, - Sort: &v1alpha1.SortDefinition{ + Sort: &rsapi.SortDefinition{ Enable: true, Template: `{{ .metadata.creationTimestamp | toDate "2006-01-02T15:04:05Z07:00" | unixEpoch }}`, Type: "integer",