Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mzottola committed Oct 11, 2023
1 parent 82864f0 commit 4b52106
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-clients.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
include:
- language: go
version: 6.0.1
version: 7.0.1
target-branch: master
deploy-ssh-key: SSH_DEPLOY_KEY_GO
deploy-ssh-key-ws: SSH_DEPLOY_KEY_WS_GO
Expand Down
12 changes: 1 addition & 11 deletions src/schemas/ContainerResponse.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
allOf:
- $ref: './BaseResponse.yaml'
- $ref: './ServiceStorageResponse.yaml'
- $ref: './ContainerSource.yaml'
- type: object
required:
- environment
- registry
- name
- image_name
- tag
- auto_preview
- cpu
- memory
Expand All @@ -19,8 +17,6 @@ allOf:
properties:
environment:
$ref: './ReferenceObject.yaml'
registry:
$ref: './ContainerRegistryProviderDetailsResponse.yaml'
maximum_cpu:
type: integer
description: Maximum cpu that can be allocated to the container based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu
Expand All @@ -35,12 +31,6 @@ allOf:
description:
type: string
description: give a description to this container
image_name:
type: string
description: name of the image container
tag:
type: string
description: tag of the image container
arguments:
type: array
items:
Expand Down
22 changes: 22 additions & 0 deletions src/schemas/ContainerSource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
required:
- image_name
- tag
- registry
properties:
image_name:
type: string
description: |
The image name pattern differs according to chosen container registry provider:
* `ECR`: `repository`
* `SCALEWAY_CR`: `namespace/image`
* `DOCKER_HUB`: `image` or `repository/image`
* `PUBLIC_ECR`: `registry_alias/repository`
tag:
type: string
description: tag of the image container
registry_id:
type: string
description: tag of the image container
registry:
$ref: "./ContainerRegistryProviderDetailsResponse.yaml"
6 changes: 6 additions & 0 deletions src/schemas/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,12 @@ GitRepositoryBranchResponseList:
$ref: ./GitRepositoryBranchResponseList.yaml
GitRepositoryResponseList:
$ref: ./GitRepositoryResponseList.yaml
SourceDocker:
$ref: ./job/SourceDocker.yaml
ContainerSource:
$ref: ./ContainerSource.yaml
SourceImage:
$ref: ./job/SourceImage.yaml
Healthcheck:
$ref: ./Healthcheck.yaml
Instance:
Expand Down
42 changes: 5 additions & 37 deletions src/schemas/job/JobResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ allOf:
- maximum_cpu
- maximum_memory
- healthchecks
- source
properties:
environment:
$ref: '../ReferenceObject.yaml'
Expand Down Expand Up @@ -61,43 +62,10 @@ allOf:
description: Port where to run readiness and liveliness probes checks. The port will not be exposed externally
default: null
source:
type: object
properties:
image:
type: object
nullable: true
required:
- image_name
- tag
- registry_id
- registry
properties:
image_name:
type: string
description: |
The image name pattern differs according to chosen container registry provider:
* `ECR`: `repository`
* `SCALEWAY_CR`: `namespace/image`
* `DOCKER_HUB`: `image` or `repository/image`
* `PUBLIC_ECR`: `registry_alias/repository`
tag:
type: string
description: tag of the image container
registry_id:
type: string
description: tag of the image container
registry:
$ref: '../ContainerRegistryProviderDetailsResponse.yaml'
docker:
type: object
nullable: true
properties:
dockerfile_path:
type: string
description: The path of the associated Dockerfile. Only if you are using build_mode = DOCKER
nullable: true
git_repository:
$ref: '../ApplicationGitRepositoryResponse.yaml'
oneOf:
- $ref: './SourceImage.yaml'
- $ref: './SourceDocker.yaml'
nullable: false
healthchecks:
$ref: '../Healthcheck.yaml'
schedule:
Expand Down
11 changes: 11 additions & 0 deletions src/schemas/job/SourceDocker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type: object
properties:
docker:
type: object
properties:
dockerfile_path:
type: string
description: The path of the associated Dockerfile. Only if you are using build_mode = DOCKER
nullable: true
git_repository:
$ref: '../ApplicationGitRepositoryResponse.yaml'
4 changes: 4 additions & 0 deletions src/schemas/job/SourceImage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: object
properties:
image:
$ref: '../ContainerSource.yaml'

0 comments on commit 4b52106

Please sign in to comment.