Core-Zero Import (#5288)

* initial core-zero import implementation

* Update /config/import openapi description and use PUT instead of POST

* update import ui tests

* Add 413 as a possible response for /config/import

* Options/Settings type conversion tests and related bugfixes

* Fixes for proto type conversion and tests

* Update core-zero import client

* Update core-zero import client

* Update import api and environment detection

* update go.mod

* remove old testdata

* Remove usage of deleted setting after merge

* remove extra newline from --version output
This commit is contained in:
Joe Kralicky 2024-10-09 18:51:56 -04:00 committed by GitHub
parent 5b4fe8969d
commit 0e13248685
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 3193 additions and 700 deletions

View file

@ -100,6 +100,12 @@ type GetBundlesResponse struct {
Bundles []Bundle `json:"bundles"`
}
// ImportResponse defines model for ImportResponse.
type ImportResponse struct {
Messages *[]string `json:"messages,omitempty"`
Warnings *[]string `json:"warnings,omitempty"`
}
// ReportUsageRequest defines model for ReportUsageRequest.
type ReportUsageRequest struct {
Users []ReportUsageUser `json:"users"`
@ -115,6 +121,11 @@ type ReportUsageUser struct {
// BundleId defines model for bundleId.
type BundleId = string
// ImportConfigurationParams defines parameters for ImportConfiguration.
type ImportConfigurationParams struct {
XImportHints *[]string `json:"X-Import-Hints,omitempty"`
}
// ReportClusterResourceBundleStatusJSONRequestBody defines body for ReportClusterResourceBundleStatus for application/json ContentType.
type ReportClusterResourceBundleStatusJSONRequestBody = BundleStatus