Skip to content

Commit 67e8057

Browse files
committed
Set resource group id in status
1 parent 7246639 commit 67e8057

15 files changed

+219
-119
lines changed

api/v1beta1/zz_generated.conversion.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta2/ibmpowervscluster_types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type IBMPowerVSClusterSpec struct {
6262
// resourceGroup name under which the resources will be created.
6363
// when omitted default resource group of the account will be used.
6464
// +optional
65-
ResourceGroup *string `json:"resourceGroup,omitempty"`
65+
ResourceGroup *IBMPowerVSResourceReference `json:"resourceGroup,omitempty"`
6666

6767
// vpc contains information about IBM Cloud VPC resources.
6868
// +optional
@@ -107,6 +107,9 @@ type IBMPowerVSClusterStatus struct {
107107
// +kubebuilder:default=false
108108
Ready bool `json:"ready"`
109109

110+
// ResourceGroup is the reference to the Power VS resource group under which the resources will be created.
111+
ResourceGroup *ResourceReference `json:"resourceGroupID,omitempty"`
112+
110113
// serviceInstance is the reference to the Power VS service on which the server instance(VM) will be created.
111114
ServiceInstance *ResourceReference `json:"serviceInstance,omitempty"`
112115

api/v1beta2/types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ var (
8686
VPCLoadBalancerStateDeletePending = VPCLoadBalancerState("delete_pending")
8787
)
8888

89+
// DHCPServerState describes the state of the DHCP Server.
90+
type DHCPServerState string
91+
92+
var (
93+
DHCPServerStateActive = DHCPServerState("ACTIVE")
94+
)
95+
8996
// DeletePolicy defines the policy used to identify images to be preserved.
9097
type DeletePolicy string
9198

api/v1beta2/zz_generated.deepcopy.go

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)