Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(COR-1018): add the service 'selector' field in the port object #703

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 91 additions & 53 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15787,35 +15787,14 @@ components:
ports:
type: array
items:
type: object
required:
- id
- internal_port
- service_name
- protocol
properties:
id:
type: string
format: uuid
name:
type: string
internal_port:
type: integer
example: 8080
description: The listening port of your service.
external_port:
type: integer
example: 8080
description: The exposed port for your service. This is optional. If not set a default port will be used.
service_name:
type: string
namespace:
type: string
protocol:
$ref: '#/components/schemas/HelmPortProtocolEnum'
is_default:
type: boolean
description: is the default port to use for domain
oneOf:
- $ref: '#/components/schemas/HelmPortResponseWithServiceName'
- $ref: '#/components/schemas/HelmPortResponseWithServiceSelectors'
discriminator:
propertyName: port_type
mapping:
SERVICE_NAME: '#/components/schemas/HelmPortResponseWithServiceName'
SERVICE_SELECTORS: '#/components/schemas/HelmPortResponseWithServiceSelectors'
source:
nullable: false
oneOf:
Expand Down Expand Up @@ -15899,6 +15878,56 @@ components:
description: Icon URI representing the helm service.
x-stoplight:
id: i2pvbugqsldhe
HelmPortResponseBase:
type: object
required:
- id
- internal_port
- protocol
- port_type
properties:
id:
type: string
format: uuid
port_type:
type: string
name:
type: string
internal_port:
type: integer
example: 8080
description: The listening port of your service.
external_port:
type: integer
example: 8080
description: The exposed port for your service. This is optional. If not set a default port will be used.
namespace:
type: string
protocol:
$ref: '#/components/schemas/HelmPortProtocolEnum'
is_default:
type: boolean
description: is the default port to use for domain
HelmPortResponseWithServiceName:
allOf:
- $ref: '#/components/schemas/HelmPortResponseBase'
- type: object
required:
- service_name
properties:
service_name:
type: string
HelmPortResponseWithServiceSelectors:
allOf:
- $ref: '#/components/schemas/HelmPortResponseBase'
- type: object
required:
- service_selectors
properties:
service_selectors:
type: array
items:
$ref: '#/components/schemas/KubernetesSelector'
HelmResponseList:
type: object
properties:
Expand Down Expand Up @@ -16030,30 +16059,39 @@ components:
ports:
type: array
items:
type: object
required:
- service_name
- internal_port
properties:
name:
type: string
internal_port:
type: integer
example: 8080
description: The listening port of your service.
external_port:
type: integer
example: 8080
description: The exposed port for your service. This is optional. If not set a default port will be used.
service_name:
type: string
namespace:
type: string
protocol:
$ref: '#/components/schemas/HelmPortProtocolEnum'
is_default:
type: boolean
description: is the default port to use for domain
allOf:
- type: object
required:
- internal_port
properties:
name:
type: string
internal_port:
type: integer
example: 8080
description: The listening port of your service.
external_port:
type: integer
example: 8080
description: The exposed port for your service. This is optional. If not set a default port will be used.
namespace:
type: string
protocol:
$ref: '#/components/schemas/HelmPortProtocolEnum'
is_default:
type: boolean
description: is the default port to use for domain
- oneOf:
- type: object
properties:
service_selectors:
type: array
items:
$ref: '#/components/schemas/KubernetesSelector'
- type: object
properties:
service_name:
type: string
HelmForceEvent:
type: string
enum:
Expand Down
2 changes: 1 addition & 1 deletion openapitools.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.0.1"
"version": "7.6.0"
}
}
Loading