Skip to content

Commit

Permalink
feat(docs): add --label docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Leszczynski authored and karol-kokoszka committed Aug 9, 2024
1 parent 4e50161 commit 6d56256
Show file tree
Hide file tree
Showing 15 changed files with 146 additions and 11 deletions.
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ options:
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: location
shorthand: L
default_value: '[]'
Expand All @@ -80,7 +89,7 @@ options:
The 'bucket' parameter is a bucket name, it must be an alphanumeric string and **may contain a dash and or a dot, but other characters are forbidden**.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_backup_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ options:
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: location
shorthand: L
default_value: '[]'
Expand All @@ -81,7 +90,7 @@ options:
The 'bucket' parameter is a bucket name, it must be an alphanumeric string and **may contain a dash and or a dot, but other characters are forbidden**.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_backup_validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ options:
The task run date is aligned with '--start date' value.
For example, if you select '--interval 7d' task would run weekly at the '--start-date' time.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: location
shorthand: L
default_value: '[]'
Expand All @@ -54,7 +63,7 @@ options:
The 'bucket' parameter is a bucket name, it must be an alphanumeric string and **may contain a dash and or a dot, but other characters are forbidden**.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_backup_validate_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ options:
The task run date is aligned with '--start date' value.
For example, if you select '--interval 7d' task would run weekly at the '--start-date' time.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: location
shorthand: L
default_value: '[]'
Expand All @@ -51,7 +60,7 @@ options:
The 'bucket' parameter is a bucket name, it must be an alphanumeric string and **may contain a dash and or a dot, but other characters are forbidden**.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
9 changes: 9 additions & 0 deletions docs/source/sctool/partials/sctool_cluster_add.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ options:
shorthand: i
usage: |
Explicitly specify cluster ID, when not provided random `UUID` will be generated.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: name
shorthand: "n"
usage: |
Expand Down
9 changes: 9 additions & 0 deletions docs/source/sctool/partials/sctool_cluster_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ options:
Hostname or `IP` of the node that will be used to discover other nodes belonging to the cluster.
Note that this will be persisted and used every time Scylla Manager starts.
You can use either an IPv4 or IPv6 address.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: name
shorthand: "n"
usage: |
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_repair.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,18 @@ options:
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_repair_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,18 @@ options:
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ options:
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: location
shorthand: L
default_value: '[]'
Expand All @@ -81,7 +90,7 @@ options:
The `<bucket>` parameter is a bucket name, it must be an alphanumeric string and **may contain a dash and or a dot, but other characters are forbidden**.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_restore_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ options:
Patterns are evaluated from left to right.
If a pattern starts with '!' it unselects items that were selected by previous patterns i.e. 'a?,!aa' selects *ab* but not *aa*.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: location
shorthand: L
default_value: '[]'
Expand All @@ -79,7 +88,7 @@ options:
The `<bucket>` parameter is a bucket name, it must be an alphanumeric string and **may contain a dash and or a dot, but other characters are forbidden**.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_suspend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,18 @@ options:
The task run date is aligned with '--start date' value.
For example, if you select '--interval 7d' task would run weekly at the '--start-date' time.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
11 changes: 10 additions & 1 deletion docs/source/sctool/partials/sctool_suspend_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,18 @@ options:
The task run date is aligned with '--start date' value.
For example, if you select '--interval 7d' task would run weekly at the '--start-date' time.
- name: label
usage: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, '--label k1=v1,k2-' will set the label 'k1' to 'v1' and will also remove label 'k2'.
- name: name
usage: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
- name: num-retries
shorthand: r
default_value: "3"
Expand Down
9 changes: 9 additions & 0 deletions pkg/command/cluster/clusteradd/res.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ name: |
Use this parameter to identify the cluster by an alias name which is more meaningful.
This `alias` name can be used with all commands that accept --cluster parameter.
label: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, ``--label k1=v1,k2-`` will set the label 'k1' to 'v1' and will also remove label 'k2'.
host: |
Hostname or `IP` of the node that will be used to discover other nodes belonging to the cluster.
Note that this will be persisted and used every time Scylla Manager starts.
Expand Down
9 changes: 9 additions & 0 deletions pkg/command/cluster/clusterupdate/res.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ name: |
Use this parameter to identify the cluster by an alias name which is more meaningful.
This `alias` name can be used with all commands that accept --cluster parameter.
label: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, ``--label k1=v1,k2-`` will set the label 'k1' to 'v1' and will also remove label 'k2'.
host: |
Hostname or `IP` of the node that will be used to discover other nodes belonging to the cluster.
Note that this will be persisted and used every time Scylla Manager starts.
Expand Down
11 changes: 10 additions & 1 deletion pkg/command/flag/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ enabled: |
Not enabled tasks are not executed and are hidden from the task list.
name: |
Task name that can be used insead of ID.
Task name that can be used instead of ID.
label: |
A comma-separated list of label modifications. Labels are represented as a key-value store.
Character '=' has a special meaning and cannot be a part of label's key nor value.
A single modification takes form of:
* '<key>=<value>' - sets the label <key> to <value>
* '<key>-' - removes the label
For example, ``--label k1=v1,k2-`` will set the label 'k1' to 'v1' and will also remove label 'k2'.
cron: |
Task schedule as a cron `expression`.
Expand Down

0 comments on commit 6d56256

Please sign in to comment.