Skip to content

Commit

Permalink
add oneof for source in HelmRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
pggb25 committed Nov 21, 2023
1 parent 711724c commit 60db08d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/schemas/HelmGitRepositoryRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
type: object
nullable: true
required:
- provider
- owner
Expand Down
38 changes: 20 additions & 18 deletions src/schemas/helm/HelmRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,27 @@ allOf:
description: |
Specify if the helm will be automatically updated after receiving a new image tag or a new commit according to the source type.
source:
type: object
properties:
git_repository:
$ref: '../HelmGitRepositoryRequest.yaml'
helm_repository:
type: object
nullable: true
oneOf:
- type: object
properties:
repository:
type: string
format: UUID
description: The id of the helm repository
nullable: true
chart_name:
type: string
description: The name of the chart in the repository
chart_version:
type: string
description: The version of the chart to use
git_repository:
$ref: '../HelmGitRepositoryRequest.yaml'
- type: object
properties:
helm_repository:
type: object
properties:
repository:
type: string
format: UUID
description: The id of the helm repository
nullable: true
chart_name:
type: string
description: The name of the chart in the repository
chart_version:
type: string
description: The version of the chart to use
arguments:
type: array
description: The extra arguments to pass to helm
Expand Down

0 comments on commit 60db08d

Please sign in to comment.