Skip to content

Commit

Permalink
Chargeback - Swagger docs (#175)
Browse files Browse the repository at this point in the history
* chargedBack field added

* Removing chargeback fields as required

* updating cluster_types

* make swagger

---------

Co-authored-by: akhandelwal <akhandelwal@adobe.com>
  • Loading branch information
aanchal22 and akhandelwal committed Jun 13, 2024
1 parent c887957 commit 7b54585
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pkg/apiserver/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ const docTemplate = `{
]
},
"chargebackBusinessUnit": {
"description": "The BU responsible for paying for the cluster.\n+kubebuilder:validation:Required",
"description": "The BU responsible for paying for the cluster.",
"type": "string"
},
"chargedBack": {
"description": "Whether the cluster is charged back to the chargebackBusinessUnit\n+kubebuilder:validation:Required",
"description": "Whether the cluster is charged back to the chargebackBusinessUnit",
"type": "boolean"
},
"cloudProviderRegion": {
Expand Down
4 changes: 2 additions & 2 deletions pkg/apiserver/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,11 @@
]
},
"chargebackBusinessUnit": {
"description": "The BU responsible for paying for the cluster.\n+kubebuilder:validation:Required",
"description": "The BU responsible for paying for the cluster.",
"type": "string"
},
"chargedBack": {
"description": "Whether the cluster is charged back to the chargebackBusinessUnit\n+kubebuilder:validation:Required",
"description": "Whether the cluster is charged back to the chargebackBusinessUnit",
"type": "boolean"
},
"cloudProviderRegion": {
Expand Down
10 changes: 3 additions & 7 deletions pkg/apiserver/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,10 @@ definitions:
- $ref: '#/definitions/github_com_adobe_cluster-registry_pkg_api_registry_v1.Capacity'
description: Capacity cluster information
chargebackBusinessUnit:
description: |-
The BU responsible for paying for the cluster.
+kubebuilder:validation:Required
description: The BU responsible for paying for the cluster.
type: string
chargedBack:
description: |-
Whether the cluster is charged back to the chargebackBusinessUnit
+kubebuilder:validation:Required
description: Whether the cluster is charged back to the chargebackBusinessUnit
type: boolean
cloudProviderRegion:
description: |-
Expand Down Expand Up @@ -242,7 +238,7 @@ definitions:
type: object
type: array
namespaceProfileInfraType:
description: Profile Infrastructure Type
description: Namespace Profile Infrastructure Type
type: string
nfsInfo:
description: NFS information
Expand Down

0 comments on commit 7b54585

Please sign in to comment.