Skip to content

Commit 566d244

Browse files
committed
Add cluster status to aro_hcp service
Signed-off-by: Alba Hita Catala <ahitacat@redhat.com>
1 parent 3399215 commit 566d244

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

model/aro_hcp/v1alpha1/cluster_resource.model

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ resource Cluster {
3434
// BestEffort flag is used to check if the cluster deletion should be best-effort mode or not.
3535
in BestEffort Boolean = false
3636
}
37+
38+
locator Status {
39+
target ClusterStatus
40+
}
3741
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
Copyright (c) 2025 Red Hat, Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// Provides detailed information about the status of an specific cluster.
18+
resource ClusterStatus {
19+
method Get {
20+
out Body ClusterStatus
21+
}
22+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
Copyright (c) 2025 Red Hat, Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
@ref(path = "/clusters_mgmt/v1/cluster_status")
18+
class ClusterStatus {
19+
}

0 commit comments

Comments
 (0)