Skip to content

Commit

Permalink
fix some mistakes of the original PR (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit authored May 6, 2020
1 parent ca3a942 commit 656c413
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
10 changes: 9 additions & 1 deletion spec/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,14 @@ definitions:
description: Maximum number of nodes in the pool
type: integer

V5SetClusterLabelsRequest:
type: object
description: Cluster labels
additionalProperties: false
properties:
labels:
$ref: "./definitions.yaml#/definitions/V5ClusterLabels"

# cluster labels response
V5ClusterLabelsResponse:
type: object
Expand All @@ -1233,7 +1241,7 @@ definitions:
title: Labels
description: Key value pairs representing the labels attached to the cluster

V5ListClustersByLabel:
V5ListClustersByLabelRequest:
type: object
required:
- labels
Expand Down
10 changes: 8 additions & 2 deletions spec/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3993,6 +3993,9 @@ paths:
description: |
Returns the labels that this cluster is labelled with
parameters:
- $ref: './parameters.yaml#/parameters/XRequestIDHeader'
- $ref: './parameters.yaml#/parameters/XGiantSwarmActivityHeader'
- $ref: './parameters.yaml#/parameters/XGiantSwarmCmdLineHeader'
- $ref: "./parameters.yaml#/parameters/ClusterIdPathParameter"
responses:
"200":
Expand Down Expand Up @@ -4035,13 +4038,16 @@ paths:
changes to label `release.giantswarm.io/version`
will be validated against available Giant Swarm releases.
parameters:
- $ref: './parameters.yaml#/parameters/XRequestIDHeader'
- $ref: './parameters.yaml#/parameters/XGiantSwarmActivityHeader'
- $ref: './parameters.yaml#/parameters/XGiantSwarmCmdLineHeader'
- $ref: "./parameters.yaml#/parameters/ClusterIdPathParameter"
- name: body
in: body
required: true
description: Labels to attach to this cluster.
schema:
$ref: "./definitions.yaml#/definitions/V5ClusterLabelsResponse"
$ref: "./definitions.yaml#/definitions/V5SetClusterLabelsRequest"
x-examples:
application/json:
{
Expand Down Expand Up @@ -4107,7 +4113,7 @@ paths:
required: true
description: Label selector
schema:
$ref: "./definitions.yaml#/definitions/V5ListClustersByLabel"
$ref: "./definitions.yaml#/definitions/V5ListClustersByLabelRequest"
x-examples:
application/json:
{
Expand Down

0 comments on commit 656c413

Please sign in to comment.