Skip to content

Commit

Permalink
fix: schema for rclone sync with swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias-elastisys authored and lunkan93 committed Oct 1, 2024
1 parent 35a320c commit 8b6eafc
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions config/schemas/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,13 +1028,18 @@ allOf:
sync:
properties:
buckets:
items:
properties:
source:
pattern: '.*harbor.*'
not:
if:
contains:
properties:
destinationType: {}
source:
pattern: '.*harbor.*'
then:
contains:
properties:
source:
pattern: '.*harbor.*'
destinationType:
const: "swift"
- properties:
thanos:
properties:
Expand All @@ -1048,20 +1053,27 @@ allOf:
sync:
properties:
buckets:
items:
properties:
source:
pattern: '.*thanos.*'
not:
if:
contains:
properties:
source:
pattern: '.*thanos.*'
then:
contains:
properties:
destinationType: {}
source:
pattern: '.*thanos.*'
destinationType:
const: "swift"
- properties:
objectStorage:
properties:
sync:
properties:
buckets:
items:
contains:
required:
- destinationType
properties:
destinationType:
const: "swift"
Expand Down

0 comments on commit 8b6eafc

Please sign in to comment.