Skip to content

Commit a80ff58

Browse files
committed
First pass at adding availability zone field
1 parent a097592 commit a80ff58

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

src/main/java/com/redhat/labs/lodestar/hosting/model/HostingEnvironment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public class HostingEnvironment extends PanacheEntityBase {
7474
private String ocpCloudProviderName;
7575
@JsonProperty("ocp_cloud_provider_region")
7676
private String ocpCloudProviderRegion;
77+
@JsonProperty("ocp_cloud_provider_availability_zone")
78+
private String ocpCloudProviderAvailabilityZone;
7779
@JsonProperty("ocp_persistent_storage_size")
7880
private String ocpPersistentStorageSize;
7981
@JsonProperty("ocp_sub_domain")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE
2+
HostingEnvironment
3+
ADD COLUMN ocpCloudProviderAvailabilityZone varchar(255);

src/test/resources/gitlab-file-hosting-13065.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"additional_details" : "Will probably also need to build out an OSP tenant.",
2121
"ocp_cloud_provider_name" : "other",
2222
"ocp_cloud_provider_region" : "other",
23+
"ocp_cloud_provider_availability_zone" : "one",
2324
"ocp_persistent_storage_size" : "5000G",
2425
"ocp_sub_domain" : "red-1",
2526
"ocp_version" : "4.7.16",

src/test/resources/gitlab-file-hosting-20962.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"additional_details" : "Will probably also need to build out an OSP tenant2.",
2121
"ocp_cloud_provider_name" : "aws",
2222
"ocp_cloud_provider_region" : "us-west",
23+
"ocp_cloud_provider_availability_zone" : "one",
2324
"ocp_persistent_storage_size" : "1G",
2425
"ocp_sub_domain" : "red-2",
2526
"ocp_version" : "4.9.16",

src/test/resources/hosting-env.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"environment_name": "env1",
55
"ocp_cloud_provider_name": "ec2",
66
"ocp_cloud_provider_region": "eu-north-3",
7+
"ocp_cloud_provider_availability_zone" : "one",
78
"ocp_cluster_size": "small",
89
"ocp_persistent_storage_size": "50G",
910
"ocp_sub_domain": "test",

0 commit comments

Comments
 (0)