Skip to content

Commit

Permalink
Add omitempty for ClusterRequest Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
irinamihai committed Sep 10, 2024
1 parent 0b7d344 commit c9b0237
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/clusterrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type ClusterRequestSpec struct {

ClusterTemplateInput ClusterTemplateInput `json:"clusterTemplateInput"`

Timeout Timeout `json:"timeout"`
Timeout Timeout `json:"timeout,omitempty"`
}

// ClusterTemplateInput provides the input data that follows the schema defined in the referenced ClusterTemplate.
Expand Down
1 change: 0 additions & 1 deletion bundle/manifests/oran.openshift.io_clusterrequests.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion config/crd/bases/oran.openshift.io_clusterrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ spec:
- clusterTemplateInput
- clusterTemplateRef
- site
- timeout
type: object
status:
description: ClusterRequestStatus defines the observed state of ClusterRequest
Expand Down
4 changes: 4 additions & 0 deletions config/samples/oran.openshift.io_v1alpha1_clusterrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
app.kubernetes.io/created-by: oran-o2ims
name: clusterrequest-sample
spec:
timeout:
clusterProvisioning: 80
configuration: 40
hardwareProvisioning: 60
clusterTemplateRef: clustertemplate-sample
clusterTemplateInput:
clusterInstanceInput:
Expand Down

0 comments on commit c9b0237

Please sign in to comment.