Skip to content

Commit

Permalink
add none storage option to OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sancyx committed Aug 30, 2021
1 parent a0cceb3 commit 3abc6ce
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gen/pipeline/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18886,11 +18886,13 @@ components:
mapping:
ebs: '#/components/schemas/EKSNodePoolVolumeEBS'
instance-store: '#/components/schemas/EKSNodePoolVolumeInstanceStore'
none: EKSNodePoolVolumeInstanceNone
propertyName: storage
nullable: true
oneOf:
- $ref: '#/components/schemas/EKSNodePoolVolumeEBS'
- $ref: '#/components/schemas/EKSNodePoolVolumeInstanceStore'
- $ref: '#/components/schemas/EKSNodePoolVolumeInstanceNone'
EKSNodePoolVolumes:
description: An associative collection of EKS node pool node instance volume
configuration objects keyed by their semantical volume names (example instanceRoot,
Expand Down Expand Up @@ -18973,6 +18975,23 @@ components:
required:
- storage
type: object
EKSNodePoolVolumeNone:
description: We need this struct to be able to remove a volume in case of an
update for example.
example: |
{
"storage": "none"
}
properties:
storage:
description: Type of the mounted volume's storage on the node instances
of the node pool.
enum:
- instance-store
type: string
required:
- storage
type: object
EKSNodePoolVolumeEncryption:
description: Encryption details of the instance volumes in an EKS node pool
(default null -> control plane configuration -> AWS account default).
Expand Down
18 changes: 18 additions & 0 deletions .gen/pipeline/pipeline/model_eks_node_pool_volume_none.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Pipeline API
*
* Pipeline is a feature rich application platform, built for containers on top of Kubernetes to automate the DevOps experience, continuous application development and the lifecycle of deployments.
*
* API version: latest
* Contact: [email protected]
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package pipeline

// EksNodePoolVolumeNone - We need this struct to be able to remove a volume in case of an update for example.
type EksNodePoolVolumeNone struct {

// Type of the mounted volume's storage on the node instances of the node pool.
Storage string `json:"storage"`
}
20 changes: 20 additions & 0 deletions apis/pipeline/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4639,10 +4639,12 @@ components:
mapping:
ebs: '#/components/schemas/EKSNodePoolVolumeEBS'
instance-store: '#/components/schemas/EKSNodePoolVolumeInstanceStore'
none: 'EKSNodePoolVolumeInstanceNone'
nullable: true
oneOf:
- $ref: '#/components/schemas/EKSNodePoolVolumeEBS'
- $ref: '#/components/schemas/EKSNodePoolVolumeInstanceStore'
- $ref: '#/components/schemas/EKSNodePoolVolumeInstanceNone'

EKSNodePoolVolumes:
description: An associative collection of EKS node pool node
Expand Down Expand Up @@ -4762,6 +4764,24 @@ components:
- storage
type: object

EKSNodePoolVolumeNone:
description: We need this struct to be able to remove a volume in case of an update for example.

example: |
{
"storage": "none"
}
properties:
storage:
description: Type of the mounted volume's storage on the
node instances of the node pool.
type: string
enum:
- instance-store
required:
- storage
type: object

EKSNodePoolVolumeEncryption:
description: Encryption details of the instance volumes in an EKS
node pool (default null -> control plane configuration -> AWS
Expand Down

0 comments on commit 3abc6ce

Please sign in to comment.