Skip to content

Commit 7b54585

Browse files
aanchal22akhandelwal
andauthored
Chargeback - Swagger docs (#175)
* chargedBack field added * Removing chargeback fields as required * updating cluster_types * make swagger --------- Co-authored-by: akhandelwal <[email protected]>
1 parent c887957 commit 7b54585

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

pkg/apiserver/docs/docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ const docTemplate = `{
546546
]
547547
},
548548
"chargebackBusinessUnit": {
549-
"description": "The BU responsible for paying for the cluster.\n+kubebuilder:validation:Required",
549+
"description": "The BU responsible for paying for the cluster.",
550550
"type": "string"
551551
},
552552
"chargedBack": {
553-
"description": "Whether the cluster is charged back to the chargebackBusinessUnit\n+kubebuilder:validation:Required",
553+
"description": "Whether the cluster is charged back to the chargebackBusinessUnit",
554554
"type": "boolean"
555555
},
556556
"cloudProviderRegion": {

pkg/apiserver/docs/swagger.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,11 @@
544544
]
545545
},
546546
"chargebackBusinessUnit": {
547-
"description": "The BU responsible for paying for the cluster.\n+kubebuilder:validation:Required",
547+
"description": "The BU responsible for paying for the cluster.",
548548
"type": "string"
549549
},
550550
"chargedBack": {
551-
"description": "Whether the cluster is charged back to the chargebackBusinessUnit\n+kubebuilder:validation:Required",
551+
"description": "Whether the cluster is charged back to the chargebackBusinessUnit",
552552
"type": "boolean"
553553
},
554554
"cloudProviderRegion": {

pkg/apiserver/docs/swagger.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,10 @@ definitions:
8989
- $ref: '#/definitions/github_com_adobe_cluster-registry_pkg_api_registry_v1.Capacity'
9090
description: Capacity cluster information
9191
chargebackBusinessUnit:
92-
description: |-
93-
The BU responsible for paying for the cluster.
94-
+kubebuilder:validation:Required
92+
description: The BU responsible for paying for the cluster.
9593
type: string
9694
chargedBack:
97-
description: |-
98-
Whether the cluster is charged back to the chargebackBusinessUnit
99-
+kubebuilder:validation:Required
95+
description: Whether the cluster is charged back to the chargebackBusinessUnit
10096
type: boolean
10197
cloudProviderRegion:
10298
description: |-
@@ -242,7 +238,7 @@ definitions:
242238
type: object
243239
type: array
244240
namespaceProfileInfraType:
245-
description: Profile Infrastructure Type
241+
description: Namespace Profile Infrastructure Type
246242
type: string
247243
nfsInfo:
248244
description: NFS information

0 commit comments

Comments
 (0)