From b74b5ecc5763506abf2f85239723ed51794499b5 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Tue, 3 Sep 2024 17:39:06 +0200 Subject: [PATCH] feat(COR-1018): add the service 'selector' field in the port object --- openapi.yaml | 169 +++++++++++++++++++++++++++++++++------------------ 1 file changed, 110 insertions(+), 59 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index bb42e82b..bb4c102c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15787,38 +15787,67 @@ components: ports: type: array items: - type: object - required: - - id - - internal_port - - 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 - service_selectors: - type: array - items: - $ref: '#/components/schemas/KubernetesSelector' - namespace: - type: string - protocol: - $ref: '#/components/schemas/HelmPortProtocolEnum' - is_default: - type: boolean - description: is the default port to use for domain + oneOf: + - type: object + required: + - id + - internal_port + - protocol + - service_name + 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 + - type: object + required: + - id + - internal_port + - protocol + - service_selectors + 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_selectors: + type: array + items: + $ref: '#/components/schemas/KubernetesSelector' + namespace: + type: string + protocol: + $ref: '#/components/schemas/HelmPortProtocolEnum' + is_default: + type: boolean + description: is the default port to use for domain source: nullable: false oneOf: @@ -16033,33 +16062,55 @@ components: ports: type: array items: - 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. - service_name: - type: string - service_selectors: - type: array - items: - $ref: '#/components/schemas/KubernetesSelector' - namespace: - type: string - protocol: - $ref: '#/components/schemas/HelmPortProtocolEnum' - is_default: - type: boolean - description: is the default port to use for domain + oneOf: + - 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. + 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 + - 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. + service_selectors: + type: array + items: + $ref: '#/components/schemas/KubernetesSelector' + namespace: + type: string + protocol: + $ref: '#/components/schemas/HelmPortProtocolEnum' + is_default: + type: boolean + description: is the default port to use for domain HelmForceEvent: type: string enum: