Skip to content

Commit

Permalink
Make chargeback fields as optional (#167)
Browse files Browse the repository at this point in the history
* chargedBack field added

* Removing chargeback fields as required

* updating cluster_types

---------

Co-authored-by: akhandelwal <[email protected]>
  • Loading branch information
aanchal22 and akhandelwal authored Jun 10, 2024
1 parent e305a8e commit 7bd200b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions config/crd/bases/registry.ethos.adobe.com_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ spec:
- apiServer
- argoInstance
- businessUnit
- chargebackBusinessUnit
- chargedBack
- cloudProviderRegion
- cloudType
- environment
Expand Down
2 changes: 0 additions & 2 deletions pkg/api/registry/v1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ type ClusterSpec struct {
BusinessUnit string `json:"businessUnit"`

// The BU responsible for paying for the cluster.
// +kubebuilder:validation:Required
ChargebackBusinessUnit string `json:"chargebackBusinessUnit"`

// Whether the cluster is charged back to the chargebackBusinessUnit
// +kubebuilder:validation:Required
ChargedBack bool `json:"chargedBack"`

// The Org that is responsible for the cluster operations
Expand Down

0 comments on commit 7bd200b

Please sign in to comment.