diff --git a/go.mod b/go.mod index 52a1b3fc..fa857416 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 kmodules.xyz/client-go v0.30.27 kmodules.xyz/fake-apiserver v0.0.4 - kmodules.xyz/resource-metadata v0.19.0 + kmodules.xyz/resource-metadata v0.19.1-0.20241016073336-1307639922b4 kubepack.dev/lib-app v0.0.23-0.20241009153800-31c7b82c96b3 kubepack.dev/lib-helm v0.29.12 open-cluster-management.io/api v0.14.0 diff --git a/go.sum b/go.sum index 16938bd1..45071c77 100644 --- a/go.sum +++ b/go.sum @@ -1064,8 +1064,8 @@ kmodules.xyz/go-containerregistry v0.0.12 h1:Tl32QGmSqRVm9PUEb/f3dgDeu9zW5fVzt3q kmodules.xyz/go-containerregistry v0.0.12/go.mod h1:KgeNg0hDsgeda+qc0NzWk0iVRdF0+ZIg/oRzGoYh78I= kmodules.xyz/offshoot-api v0.30.1 h1:TrulAYO+oBsXe9sZZGTmNWIuI8qD2izMpgcTSPvgAmI= kmodules.xyz/offshoot-api v0.30.1/go.mod h1:T3mpjR6fui0QzOcmQvIuANytW48fe9ytmy/1cgx6D4g= -kmodules.xyz/resource-metadata v0.19.0 h1:fr4GzHmeUj/25awK4TnNLWHwjfTIsTMdm4yUP22ACkU= -kmodules.xyz/resource-metadata v0.19.0/go.mod h1:+oaGJj871hYXqUWDFgqf4Tc8Lz5F8rBco+Bq34DqLus= +kmodules.xyz/resource-metadata v0.19.1-0.20241016073336-1307639922b4 h1:k8JQX4XDUU/ULvscjx5ENBb4qNJdWFMcf2V79c+LIcI= +kmodules.xyz/resource-metadata v0.19.1-0.20241016073336-1307639922b4/go.mod h1:ZVjgAj622Fp+8bdmAgHv6PNQHkXXqhR6aQpJg3lO8Bo= kmodules.xyz/resource-metrics v0.30.4 h1:8HBPtYmo9ETY91gsc55JE8Z986+3ZuRq57M0wZ9npqI= kmodules.xyz/resource-metrics v0.30.4/go.mod h1:w9+rz7/s/kGP1GWzYSuRdCn+l7EwpesmESSEHkLBnIQ= kubepack.dev/kubepack v0.29.2-0.20240914155715-3a591859b705 h1:fFn0CdYpDKTUFA4t6AV9DSVJLMwLZy8Q6RKPhNgLO+g= diff --git a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/openapi_generated.go index 00643b0e..ab313206 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/openapi_generated.go @@ -357,9 +357,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/offshoot-api/api/v1.VolumeSource": schema_kmodulesxyz_offshoot_api_api_v1_VolumeSource(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.AttributeDefinition": schema_resource_metadata_apis_meta_v1alpha1_AttributeDefinition(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ChartPresetQuery": schema_resource_metadata_apis_meta_v1alpha1_ChartPresetQuery(ref), - "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterProfile": schema_resource_metadata_apis_meta_v1alpha1_ClusterProfile(ref), - "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterProfileList": schema_resource_metadata_apis_meta_v1alpha1_ClusterProfileList(ref), - "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterProfileSpec": schema_resource_metadata_apis_meta_v1alpha1_ClusterProfileSpec(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterStatus": schema_resource_metadata_apis_meta_v1alpha1_ClusterStatus(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterStatusResponse": schema_resource_metadata_apis_meta_v1alpha1_ClusterStatusResponse(ref), "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ColorDefinition": schema_resource_metadata_apis_meta_v1alpha1_ColorDefinition(ref), @@ -16306,7 +16303,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -16422,8 +16419,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -18891,151 +18887,6 @@ func schema_resource_metadata_apis_meta_v1alpha1_ChartPresetQuery(ref common.Ref } } -func schema_resource_metadata_apis_meta_v1alpha1_ClusterProfile(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/meta/v1alpha1.ClusterProfileSpec"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterProfileSpec"}, - } -} - -func schema_resource_metadata_apis_meta_v1alpha1_ClusterProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterProfileList contains a list of ClusterProfile", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be 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.ClusterProfile"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kmodules.xyz/resource-metadata/apis/meta/v1alpha1.ClusterProfile"}, - } -} - -func schema_resource_metadata_apis_meta_v1alpha1_ClusterProfileSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterProfileSpec defines the desired state of ClusterProfile", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "title": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "provider": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "requiredFeatureSets": { - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, - }, - }, - }, - Required: []string{"title", "description"}, - }, - }, - } -} - func schema_resource_metadata_apis_meta_v1alpha1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/register.go b/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/register.go index 30a8cb7a..1141f71e 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/register.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/register.go @@ -50,8 +50,6 @@ func Resource(resource string) schema.GroupResource { func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &ChartPresetQuery{}, - &ClusterProfile{}, - &ClusterProfileList{}, &ClusterStatus{}, &ResourceCalculator{}, &ResourceDescriptor{}, diff --git a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/zz_generated.deepcopy.go index 61c6504a..25268f16 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/zz_generated.deepcopy.go @@ -89,97 +89,6 @@ func (in *ChartPresetQuery) DeepCopyObject() runtime.Object { return nil } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterProfile) DeepCopyInto(out *ClusterProfile) { - *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 ClusterProfile. -func (in *ClusterProfile) DeepCopy() *ClusterProfile { - if in == nil { - return nil - } - out := new(ClusterProfile) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterProfile) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterProfileList) DeepCopyInto(out *ClusterProfileList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterProfile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProfileList. -func (in *ClusterProfileList) DeepCopy() *ClusterProfileList { - if in == nil { - return nil - } - out := new(ClusterProfileList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterProfileList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterProfileSpec) DeepCopyInto(out *ClusterProfileSpec) { - *out = *in - if in.RequiredFeatureSets != nil { - in, out := &in.RequiredFeatureSets, &out.RequiredFeatureSets - *out = make(map[string]FeatureList, len(*in)) - for key, val := range *in { - var outVal []string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make(FeatureList, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProfileSpec. -func (in *ClusterProfileSpec) DeepCopy() *ClusterProfileSpec { - if in == nil { - return nil - } - out := new(ClusterProfileSpec) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { *out = *in diff --git a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/clusterprofile_types.go b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/clusterprofile_types.go similarity index 86% rename from vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/clusterprofile_types.go rename to vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/clusterprofile_types.go index c2796ef5..a687c7b8 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/meta/v1alpha1/clusterprofile_types.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/clusterprofile_types.go @@ -28,12 +28,14 @@ const ( // ClusterProfileSpec defines the desired state of ClusterProfile type ClusterProfileSpec struct { - Title string `json:"title"` - Description string `json:"description"` - Provider string `json:"provider,omitempty"` - RequiredFeatureSets map[string]FeatureList `json:"requiredFeatureSets,omitempty"` + Title string `json:"title"` + Description string `json:"description"` + Provider string `json:"provider,omitempty"` + RequiredFeatureSets map[string]Features `json:"requiredFeatureSets,omitempty"` } +type Features []string + // ClusterProfile is the Schema for the clusterprofiles API // +genclient diff --git a/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/openapi_generated.go index f927d1af..d1ebb30d 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/openapi_generated.go @@ -379,6 +379,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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), @@ -16238,7 +16241,7 @@ func schema_kmodulesxyz_client_go_api_v1_CertificateSpec(ref common.ReferenceCal }, "renewBefore": { SchemaProps: spec.SchemaProps{ - Description: "Certificate renew before expiration duration", + Description: "Certificate renew before expiration duration\n\nDeprecated use `ReconfigureTLS` type OpsRequest instead.", Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"), }, }, @@ -16354,8 +16357,7 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterInfo(ref common.ReferenceCallbac }, "capi": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), + Ref: ref("kmodules.xyz/client-go/api/v1.CAPIClusterInfo"), }, }, }, @@ -19834,6 +19836,151 @@ func schema_resource_metadata_apis_ui_v1alpha1_ChartInfo(ref common.ReferenceCal } } +func schema_resource_metadata_apis_ui_v1alpha1_ClusterProfile(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.ClusterProfileSpec"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfileSpec"}, + } +} + +func schema_resource_metadata_apis_ui_v1alpha1_ClusterProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterProfileList contains a list of ClusterProfile", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be 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.ClusterProfile"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kmodules.xyz/resource-metadata/apis/ui/v1alpha1.ClusterProfile"}, + } +} + +func schema_resource_metadata_apis_ui_v1alpha1_ClusterProfileSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterProfileSpec defines the desired state of ClusterProfile", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "title": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "requiredFeatureSets": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + }, + Required: []string{"title", "description"}, + }, + }, + } +} + func schema_resource_metadata_apis_ui_v1alpha1_ComponentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/register.go b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/register.go index 8c42fe15..1b25f7db 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/register.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/register.go @@ -49,14 +49,16 @@ func Resource(resource string) schema.GroupResource { // Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &ResourceEditor{}, - &ResourceEditorList{}, - &ResourceDashboard{}, - &ResourceDashboardList{}, + &ClusterProfile{}, + &ClusterProfileList{}, &Feature{}, &FeatureList{}, - &FeatureSet{}, &FeatureSetList{}, + &FeatureSet{}, + &ResourceDashboard{}, + &ResourceDashboardList{}, + &ResourceEditor{}, + &ResourceEditorList{}, ) scheme.AddKnownTypes(SchemeGroupVersion, diff --git a/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/zz_generated.deepcopy.go index dcbc3708..d00920bd 100644 --- a/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/resource-metadata/apis/ui/v1alpha1/zz_generated.deepcopy.go @@ -104,6 +104,97 @@ func (in *ChartInfo) DeepCopy() *ChartInfo { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterProfile) DeepCopyInto(out *ClusterProfile) { + *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 ClusterProfile. +func (in *ClusterProfile) DeepCopy() *ClusterProfile { + if in == nil { + return nil + } + out := new(ClusterProfile) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterProfile) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterProfileList) DeepCopyInto(out *ClusterProfileList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterProfile, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProfileList. +func (in *ClusterProfileList) DeepCopy() *ClusterProfileList { + if in == nil { + return nil + } + out := new(ClusterProfileList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterProfileList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterProfileSpec) DeepCopyInto(out *ClusterProfileSpec) { + *out = *in + if in.RequiredFeatureSets != nil { + in, out := &in.RequiredFeatureSets, &out.RequiredFeatureSets + *out = make(map[string]Features, len(*in)) + for key, val := range *in { + var outVal []string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make(Features, len(*in)) + copy(*out, *in) + } + (*out)[key] = outVal + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProfileSpec. +func (in *ClusterProfileSpec) DeepCopy() *ClusterProfileSpec { + if in == nil { + return nil + } + out := new(ClusterProfileSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus) { *out = *in @@ -458,6 +549,26 @@ func (in *FeatureStatus) DeepCopy() *FeatureStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in Features) DeepCopyInto(out *Features) { + { + in := &in + *out = make(Features, len(*in)) + copy(*out, *in) + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Features. +func (in Features) DeepCopy() Features { + if in == nil { + return nil + } + out := new(Features) + 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 diff --git a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml index 9e66496c..42224dcf 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresources.yaml @@ -119,18 +119,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml index 70c8746e..47a77c59 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_genericresourceservices.yaml @@ -71,18 +71,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml index e9b5b731..6bd8b36a 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/core.k8s.appscode.com_resourcesummaries.yaml @@ -119,18 +119,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml index 8315c19e..c591f0c4 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_clusteridentitys.yaml @@ -53,18 +53,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml index 5415cf5b..80f1faa4 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/identity.k8s.appscode.com_siteinfos.yaml @@ -50,18 +50,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/crds/meta.k8s.appscode.com_clusterprofiles.yaml b/vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml similarity index 96% rename from vendor/kmodules.xyz/resource-metadata/crds/meta.k8s.appscode.com_clusterprofiles.yaml rename to vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml index ce427e85..aee0a38e 100644 --- a/vendor/kmodules.xyz/resource-metadata/crds/meta.k8s.appscode.com_clusterprofiles.yaml +++ b/vendor/kmodules.xyz/resource-metadata/crds/ui.k8s.appscode.com_clusterprofiles.yaml @@ -4,9 +4,9 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: creationTimestamp: null - name: clusterprofiles.meta.k8s.appscode.com + name: clusterprofiles.ui.k8s.appscode.com spec: - group: meta.k8s.appscode.com + group: ui.k8s.appscode.com names: kind: ClusterProfile listKind: ClusterProfileList diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresources.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresources.yaml index cf9f96f2..b391a1ed 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresources.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresources.yaml @@ -148,18 +148,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresourceservices.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresourceservices.yaml index e2957c57..577b1d08 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresourceservices.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/genericresourceservices.yaml @@ -102,18 +102,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/resourcesummaries.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/resourcesummaries.yaml index eefab8db..e4c5da00 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/resourcesummaries.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/core.k8s.appscode.com/v1alpha1/resourcesummaries.yaml @@ -148,18 +148,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/identity.k8s.appscode.com/v1alpha1/siteinfos.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/identity.k8s.appscode.com/v1alpha1/siteinfos.yaml index d91b103a..b9282b0f 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/identity.k8s.appscode.com/v1alpha1/siteinfos.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/identity.k8s.appscode.com/v1alpha1/siteinfos.yaml @@ -46,18 +46,17 @@ spec: type: string provider: enum: - - Aws - - Azure + - AKS - DigitalOcean - - GoogleCloud + - EKS + - Exoscale + - Generic + - GKE - Linode - Packet + - Rancher - Scaleway - Vultr - - BareMetal - - KIND - - Generic - - Private type: string uid: type: string diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/meta.k8s.appscode.com/v1alpha1/clusterprofiles.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/ui.k8s.appscode.com/v1alpha1/clusterprofiles.yaml similarity index 96% rename from vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/meta.k8s.appscode.com/v1alpha1/clusterprofiles.yaml rename to vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/ui.k8s.appscode.com/v1alpha1/clusterprofiles.yaml index dd12d7dd..7cebe6ff 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/meta.k8s.appscode.com/v1alpha1/clusterprofiles.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/ui.k8s.appscode.com/v1alpha1/clusterprofiles.yaml @@ -3,14 +3,14 @@ kind: ResourceDescriptor metadata: creationTimestamp: null labels: - k8s.io/group: meta.k8s.appscode.com + k8s.io/group: ui.k8s.appscode.com k8s.io/kind: ClusterProfile k8s.io/resource: clusterprofiles k8s.io/version: v1alpha1 - name: meta.k8s.appscode.com-v1alpha1-clusterprofiles + name: ui.k8s.appscode.com-v1alpha1-clusterprofiles spec: resource: - group: meta.k8s.appscode.com + group: ui.k8s.appscode.com kind: ClusterProfile name: clusterprofiles scope: Cluster diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceeditors/meta.k8s.appscode.com/v1alpha1/clusterprofiles.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceeditors/meta.k8s.appscode.com/v1alpha1/clusterprofiles.yaml deleted file mode 100644 index ab2ca89f..00000000 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourceeditors/meta.k8s.appscode.com/v1alpha1/clusterprofiles.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: ui.k8s.appscode.com/v1alpha1 -kind: ResourceEditor -metadata: - creationTimestamp: null - labels: - k8s.io/group: meta.k8s.appscode.com - k8s.io/kind: ClusterProfile - k8s.io/resource: clusterprofiles - k8s.io/version: v1alpha1 - name: meta.k8s.appscode.com-v1alpha1-clusterprofiles -spec: - resource: - group: meta.k8s.appscode.com - kind: ClusterProfile - name: clusterprofiles - scope: Cluster - version: v1alpha1 - ui: - editor: - name: metak8sappscodecom-clusterprofile-editor - sourceRef: - apiGroup: source.toolkit.fluxcd.io - kind: HelmRepository - name: appscode-charts-oci - version: v0.7.0 - enforceQuota: false diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceeditors/ui.k8s.appscode.com/v1alpha1/clusterprofiles.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceeditors/ui.k8s.appscode.com/v1alpha1/clusterprofiles.yaml new file mode 100644 index 00000000..c4d9348c --- /dev/null +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourceeditors/ui.k8s.appscode.com/v1alpha1/clusterprofiles.yaml @@ -0,0 +1,17 @@ +apiVersion: ui.k8s.appscode.com/v1alpha1 +kind: ResourceEditor +metadata: + creationTimestamp: null + labels: + k8s.io/group: ui.k8s.appscode.com + k8s.io/kind: ClusterProfile + k8s.io/resource: clusterprofiles + k8s.io/version: v1alpha1 + name: ui.k8s.appscode.com-v1alpha1-clusterprofiles +spec: + resource: + group: ui.k8s.appscode.com + kind: ClusterProfile + name: clusterprofiles + scope: Cluster + version: v1alpha1 diff --git a/vendor/modules.txt b/vendor/modules.txt index 7f51b297..6bcd07e5 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1932,7 +1932,7 @@ kmodules.xyz/go-containerregistry/name ## explicit; go 1.22.0 kmodules.xyz/offshoot-api/api/v1 kmodules.xyz/offshoot-api/api/v2 -# kmodules.xyz/resource-metadata v0.19.0 +# kmodules.xyz/resource-metadata v0.19.1-0.20241016073336-1307639922b4 ## explicit; go 1.22.1 kmodules.xyz/resource-metadata/apis/meta kmodules.xyz/resource-metadata/apis/meta/v1alpha1