Skip to content

Commit

Permalink
Merge pull request #874 from Ankit152/addons-mgmt-api-patch
Browse files Browse the repository at this point in the history
chore: updating ocm-api-model with addon, addonversion openapi changes
  • Loading branch information
ciaranRoche authored Nov 29, 2023
2 parents 90f121a + 297c261 commit 951860e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 3 additions & 0 deletions model/addons_mgmt/v1/addon_installation_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class AddonInstallation {
// Version of the operator installed by the add-on.
OperatorVersion String

// Version of the next scheduled upgrade
DesiredVersion String

// Current CSV installed on cluster
CsvName String

Expand Down
21 changes: 21 additions & 0 deletions model/addons_mgmt/v1/addon_parameters_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
Copyright (c) 2023 Red Hat, Inc.

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.
*/

// Representation of AddonParameters
struct AddonParameters {
// List of addon parameters
Items []AddonParameter
}
2 changes: 1 addition & 1 deletion model/addons_mgmt/v1/addon_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Addon {
HasExternalResources Boolean

// List of parameters for this addon.
Parameters []AddonParameter
Parameters AddonParameters

// List of requirements for this addon.
Requirements []AddonRequirement
Expand Down
8 changes: 7 additions & 1 deletion model/addons_mgmt/v1/addon_version_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ class AddonVersion {
// Additional catalog sources associated with this addon version
AdditionalCatalogSources []AdditionalCatalogSource

// The url for the package image
PackageImage String

// Indicates if upgrade plans have been created for this addon version
UpgradePlansCreated Boolean

// List of parameters for this addon version.
Parameters []AddonParameter
Parameters AddonParameters

// List of requirements for this addon version.
Requirements []AddonRequirement
Expand Down

0 comments on commit 951860e

Please sign in to comment.