diff --git a/.config/api-rules/violation_exceptions.list b/.config/api-rules/violation_exceptions.list index 04e5a4a69..84d38880e 100644 --- a/.config/api-rules/violation_exceptions.list +++ b/.config/api-rules/violation_exceptions.list @@ -43,6 +43,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,Dashboard,Panels API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,Dashboard,Vars API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,RegistryInfo,ImagePullSecrets +API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,SelfhostPresets,Versions API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,UIParameterTemplate,Actions API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,UIParameterTemplate,InstanceLabelPaths API rule violation: list_type_missing,kmodules.xyz/resource-metadata/apis/shared,UIParameters,Actions diff --git a/apis/core/v1alpha1/openapi_generated.go b/apis/core/v1alpha1/openapi_generated.go index 6fe628351..0a56ce586 100644 --- a/apis/core/v1alpha1/openapi_generated.go +++ b/apis/core/v1alpha1/openapi_generated.go @@ -421,6 +421,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -21810,12 +21812,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -22350,6 +22357,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/editor/v1alpha1/openapi_generated.go b/apis/editor/v1alpha1/openapi_generated.go index f932bd35a..034eb43e4 100644 --- a/apis/editor/v1alpha1/openapi_generated.go +++ b/apis/editor/v1alpha1/openapi_generated.go @@ -393,6 +393,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -20105,12 +20107,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -20645,6 +20652,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/identity/v1alpha1/openapi_generated.go b/apis/identity/v1alpha1/openapi_generated.go index f5c96ed6f..376e598b1 100644 --- a/apis/identity/v1alpha1/openapi_generated.go +++ b/apis/identity/v1alpha1/openapi_generated.go @@ -410,6 +410,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -20947,12 +20949,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -21487,6 +21494,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/management/v1alpha1/openapi_generated.go b/apis/management/v1alpha1/openapi_generated.go index 24e04212c..e4f2302ac 100644 --- a/apis/management/v1alpha1/openapi_generated.go +++ b/apis/management/v1alpha1/openapi_generated.go @@ -395,6 +395,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -20226,12 +20228,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -20766,6 +20773,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/meta/v1alpha1/openapi_generated.go b/apis/meta/v1alpha1/openapi_generated.go index c500d376e..6cd49ecd1 100644 --- a/apis/meta/v1alpha1/openapi_generated.go +++ b/apis/meta/v1alpha1/openapi_generated.go @@ -493,6 +493,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -24914,12 +24916,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -25454,6 +25461,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/node/v1alpha1/openapi_generated.go b/apis/node/v1alpha1/openapi_generated.go index a36f4f80e..8a1833f9c 100644 --- a/apis/node/v1alpha1/openapi_generated.go +++ b/apis/node/v1alpha1/openapi_generated.go @@ -394,6 +394,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -20190,12 +20192,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -20730,6 +20737,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/shared/helm.go b/apis/shared/helm.go index 4068b0a91..bfdbe744b 100644 --- a/apis/shared/helm.go +++ b/apis/shared/helm.go @@ -27,6 +27,22 @@ type BootstrapPresets struct { Image ImageRegistrySpec `json:"image"` Registry RegistryInfo `json:"registry"` Helm HelmInfo `json:"helm"` + // +optional + Selfhost *SelfhostPresets `json:"selfhost,omitempty"` +} + +type SelfhostPresets struct { + // Older ace-installer versions that can still be rendered; the latest is helm.releases["ace-installer"]. + // +optional + Versions []SelfhostVersion `json:"versions,omitempty"` +} + +type SelfhostVersion struct { + Version string `json:"version"` + Image string `json:"image"` + // Snapshot of the bootstrap helm presets that shipped with this version. + // +optional + Helm HelmInfo `json:"helm,omitempty"` } type ImageRegistrySpec struct { diff --git a/apis/shared/openapi_generated.go b/apis/shared/openapi_generated.go index 1af3f833a..e4eb68037 100644 --- a/apis/shared/openapi_generated.go +++ b/apis/shared/openapi_generated.go @@ -47,6 +47,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -362,12 +364,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -902,6 +909,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/shared/zz_generated.deepcopy.go b/apis/shared/zz_generated.deepcopy.go index 3633fcece..fc6b13a96 100644 --- a/apis/shared/zz_generated.deepcopy.go +++ b/apis/shared/zz_generated.deepcopy.go @@ -152,6 +152,11 @@ func (in *BootstrapPresets) DeepCopyInto(out *BootstrapPresets) { out.Image = in.Image in.Registry.DeepCopyInto(&out.Registry) in.Helm.DeepCopyInto(&out.Helm) + if in.Selfhost != nil { + in, out := &in.Selfhost, &out.Selfhost + *out = new(SelfhostPresets) + (*in).DeepCopyInto(*out) + } return } @@ -465,6 +470,46 @@ func (in *ResourceQuery) DeepCopy() *ResourceQuery { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfhostPresets) DeepCopyInto(out *SelfhostPresets) { + *out = *in + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = make([]SelfhostVersion, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfhostPresets. +func (in *SelfhostPresets) DeepCopy() *SelfhostPresets { + if in == nil { + return nil + } + out := new(SelfhostPresets) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SelfhostVersion) DeepCopyInto(out *SelfhostVersion) { + *out = *in + in.Helm.DeepCopyInto(&out.Helm) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfhostVersion. +func (in *SelfhostVersion) DeepCopy() *SelfhostVersion { + if in == nil { + return nil + } + out := new(SelfhostVersion) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SourceLocator) DeepCopyInto(out *SourceLocator) { *out = *in diff --git a/apis/ui/v1alpha1/openapi_generated.go b/apis/ui/v1alpha1/openapi_generated.go index 9db2c4ff9..0569d0443 100644 --- a/apis/ui/v1alpha1/openapi_generated.go +++ b/apis/ui/v1alpha1/openapi_generated.go @@ -389,6 +389,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "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.SelfhostPresets": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref), + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion": schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(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), @@ -19997,12 +19999,17 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_BootstrapPresets(ref commo Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), }, }, + "selfhost": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"), + }, + }, }, Required: []string{"image", "registry", "helm"}, }, }, Dependencies: []string{ - "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo"}, + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo", "kmodules.xyz/resource-metadata/apis/shared.ImageRegistrySpec", "kmodules.xyz/resource-metadata/apis/shared.RegistryInfo", "kmodules.xyz/resource-metadata/apis/shared.SelfhostPresets"}, } } @@ -20537,6 +20544,70 @@ func schema_kmodulesxyz_resource_metadata_apis_shared_ResourceQuery(ref common.R } } +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostPresets(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Older ace-installer versions that can still be rendered; the latest is helm.releases[\"ace-installer\"].", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.SelfhostVersion"}, + } +} + +func schema_kmodulesxyz_resource_metadata_apis_shared_SelfhostVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "version": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "Snapshot of the bootstrap helm presets that shipped with this version.", + Default: map[string]interface{}{}, + Ref: ref("kmodules.xyz/resource-metadata/apis/shared.HelmInfo"), + }, + }, + }, + Required: []string{"version", "image"}, + }, + }, + Dependencies: []string{ + "kmodules.xyz/resource-metadata/apis/shared.HelmInfo"}, + } +} + func schema_kmodulesxyz_resource_metadata_apis_shared_SourceLocator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{