Skip to content

Commit

Permalink
OCM-9353 | feat: update Version and MachineType
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce committed Jul 5, 2024
1 parent 92a8595 commit 89d7bb5
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 1 deletion.
3 changes: 3 additions & 0 deletions model/clusters_mgmt/v1/machine_type_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ class MachineType {

// 'true' if the instance type is supported only for CCS clusters, 'false' otherwise.
CCSOnly Boolean

// The architecture of the machine type.
Architecture ProcessorType
}
24 changes: 24 additions & 0 deletions model/clusters_mgmt/v1/processor_type_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Copyright (c) 2024 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.
*/

// Processor type category.
enum ProcessorType {
// Amd64
AMD64

// Arm64
ARM64
}
23 changes: 23 additions & 0 deletions model/clusters_mgmt/v1/release_image_details_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Copyright (c) 2024 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.
*/

struct ReleaseImageDetails {
// ReleaseImage contains the URI of Openshift release image.
ReleaseImage String

// AvailableUpgrades is the list of versions this version can be upgraded to.
AvailableUpgrades []String
}
23 changes: 23 additions & 0 deletions model/clusters_mgmt/v1/release_images_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Copyright (c) 2024 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.
*/

struct ReleaseImages {
// Arm64 will contain the reference for the arm64 image which will be used for cluster deployments
ARM64 ReleaseImageDetails

// Multi will contain the reference for the multi image which will be used for cluster deployments
Multi ReleaseImageDetails
}
5 changes: 4 additions & 1 deletion model/clusters_mgmt/v1/version_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ class Version {
// format defined in https://www.ietf.org/rfc/rfc3339.txt[RC3339].
EndOfLifeTimestamp Date

// ReleaseImage contains the URI of Openshift release image.
// ReleaseImage contains the URI of Openshift release image for amd64 architecture.
ReleaseImage String

// ImageOverrides contains the lists of images per cloud provider.
ImageOverrides ImageOverrides

// GCPMarketplaceEnabled indicates if this version can be used to create GCP Marketplace clusters.
GCPMarketplaceEnabled Boolean

// ReleaseImages contains the URI of OpenShift release images for arm64 and multi architectures.
ReleaseImages ReleaseImages
}

0 comments on commit 89d7bb5

Please sign in to comment.