Skip to content

Commit

Permalink
fix(docs): use namespace as company.team for all examples (#4088)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutimantri authored Jun 21, 2024
1 parent 45ee3d2 commit c94e23a
Show file tree
Hide file tree
Showing 33 changed files with 86 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
code = {
"- conditions:",
" - type: io.kestra.plugin.core.condition.ExecutionFlowCondition",
" namespace: io.kestra.tests",
" namespace: company.team",
" flowId: my-current-flow"
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
code = {
"- conditions:",
" - type: io.kestra.plugin.core.condition.ExecutionNamespaceCondition",
" namespace: io.kestra.tests",
" namespace: company.team",
" comparison: PREFIX"
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
code = {
"- conditions:",
" - type: io.kestra.plugin.core.condition.FlowCondition",
" namespace: io.kestra.tests",
" namespace: company.team",
" flowId: my-current-flow"
}
)
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/kestra/plugin/core/execution/Count.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
full = true,
code = {
"id: executions-count",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: counts",
" type: io.kestra.plugin.core.execution.Counts",
" expression: \"{{ count == 0 }}\"",
" flows:",
" - namespace: io.kestra.tests",
" - namespace: company.team",
" flowId: logs",
" startDate: \"{{ now() | dateAdd(-1, 'DAYS') }}\"",
" - id: each_parallel",
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/kestra/plugin/core/execution/Fail.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
full = true,
code = {
"id: fail-on-switch\n" +
"namespace: io.kestra.tests\n" +
"namespace: company.team\n" +
"\n" +
"inputs:\n" +
" - id: param\n" +
Expand Down Expand Up @@ -66,7 +66,7 @@
full = true,
code = {
"id: fail-on-condition\n" +
"namespace: io.kestra.tests\n" +
"namespace: company.team\n" +
"\n" +
"inputs:\n" +
" - name: param\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
full = true,
code = {
"id: webhook-based-labels",
"namespace: com.company",
"namespace: company.team",
"tasks:",
" - id: update-labels-with-map",
" type: io.kestra.plugin.core.execution.Labels",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
full = true,
code = {
"id: allow-failure",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: sequential",
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/flow/Dag.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
full = true,
code = """
id: dag-flow
namespace: io.kestra.tests
namespace: company.team
tasks:
- id: dag
type: io.kestra.plugin.core.flow.Dag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
full = true,
code = {
"id: each-parallel",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: each-parallel",
Expand All @@ -64,7 +64,7 @@
full = true,
code = {
"id: each-parallel",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: each-parallel",
Expand All @@ -84,7 +84,7 @@
full = true,
code = {
"id: each-parallel",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: each-parallel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
title = "The taskrun.value from the `each_sequential` task is available only to immediate child tasks such as the `before_if` and the `if` tasks. To access the taskrun value in child tasks of the `if` task (such as in the `after_if` task), you need to use the syntax `{{ parent.taskrun.value }}` as this allows you to access the taskrun value of the parent task `each_sequential`.",
code = """
id: loop_example
namespace: dev
namespace: company.team
tasks:
- id: each_sequential
Expand All @@ -73,7 +73,7 @@
title = "This task shows that the value can be a bullet-style list. The task iterates over the list of values and executes the `each-value` child task for each value.",
code = {
"id: each_sequential",
"namespace: dev",
"namespace: company.team",
"",
"tasks:",
" - id: each-sequential",
Expand Down
18 changes: 9 additions & 9 deletions core/src/main/java/io/kestra/plugin/core/flow/ForEachItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
Execute a subflow for each batch of items. The subflow `orders` is called from the parent flow `orders_parallel` using the `ForEachItem` task in order to start one subflow execution for each batch of items.
```yaml
id: orders
namespace: prod
namespace: company.team
inputs:
- id: order
Expand All @@ -87,7 +87,7 @@
full = true,
code = """
id: orders_parallel
namespace: prod
namespace: company.team
tasks:
- id: extract
Expand All @@ -104,7 +104,7 @@
items: "{{ outputs.extract.uri }}"
batch:
rows: 1
namespace: prod
namespace: company.team
flowId: orders
wait: true # wait for the subflow execution
transmitFailed: true # fail the task run if the subflow execution fails
Expand All @@ -122,7 +122,7 @@
```yaml
id: mysubflow
namespace: dev
namespace: company.team
inputs:
- id: json
Expand All @@ -137,7 +137,7 @@
full = true,
code = """
id: iterate_over_json
namespace: dev
namespace: company.team
tasks:
- id: download
Expand All @@ -163,7 +163,7 @@
items: "{{ outputs.ion_to_jsonl.uri }}"
batch:
rows: 1
namespace: dev
namespace: company.team
flowId: mysubflow
wait: true
transmitFailed: true
Expand All @@ -176,7 +176,7 @@
```yaml
id: process_batch
namespace: dev
namespace: company.team
inputs:
- id: data
Expand All @@ -191,7 +191,7 @@
full = true,
code = """
id: process_files
namespace: dev
namespace: company.team
tasks:
- id: loop_over_files
Expand All @@ -204,7 +204,7 @@
batch:
rows: 1
flowId: process_batch
namespace: dev
namespace: company.team
wait: true
transmitFailed: true
inputs:
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/flow/If.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
full = true,
code = {
"id: if",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"inputs:",
" - id: string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
full = true,
code = {
"id: parallel",
"namespace: io.kestra.tests\n" +
"namespace: company.team\n" +
"",
"tasks:\n" +
" - id: parallel\n" +
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/kestra/plugin/core/flow/Pause.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
full = true,
code = """
id: human_in_the_loop
namespace: dev
namespace: company.team
tasks:
- id: before_approval
Expand All @@ -74,7 +74,7 @@
full = true,
code = """
id: vacation_approval_process
namespace: dev
namespace: company.team
inputs:
- id: request.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
full = true,
code = {
"id: sequential",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: sequential",
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/flow/Subflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
@Example(
title = "Run a subflow with custom inputs.",
code = {
"namespace: dev",
"namespace: company.team",
"flowId: subflow",
"inputs:",
" user: \"Rick Astley\"",
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/flow/Switch.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
full = true,
code = {
"id: switch",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"inputs:",
" - id: string",
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/kestra/plugin/core/flow/Template.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
full = true,
code = {
"id: template",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"inputs:",
" - id: with-string",
Expand All @@ -72,7 +72,7 @@
" format: \"{{ task.id }} > {{ taskrun.startDate }}\"",
" - id: 2-template",
" type: io.kestra.plugin.core.flow.Template",
" namespace: io.kestra.tests",
" namespace: company.team",
" templateId: template",
" args:",
" my-forward: \"{{ inputs.with-string }}\"",
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/flow/WaitFor.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
title = "Run a task until it returns a specific value. Note how you don't need to take care of incrementing the iteration count. The task will loop and keep track of the iteration outputs behind the scenes — you only need to specify the exit condition for the loop.",
code = """
id: example
namespace: myteam
namespace: company.team
tasks:
- id: loop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
title = "Clone a Git repository into the Working Directory and run a Python script in a Docker container.",
code = """
id: gitPython
namespace: dev
namespace: company.team
tasks:
- id: wdir
Expand All @@ -89,7 +89,7 @@
title = "Add input and output files within a Working Directory to use them in a Python script.",
code = """
id: apiJSONtoMongoDB
namespace: dev
namespace: company.team
tasks:
- id: wdir
Expand Down Expand Up @@ -138,7 +138,7 @@ with open('output.json', 'w') as output_file:
full = true,
code = {
"id: working-directory",
"namespace: io.kestra.tests",
"namespace: company.team",
"",
"tasks:",
" - id: working-directory",
Expand All @@ -160,7 +160,7 @@ with open('output.json', 'w') as output_file:
title = "A working directory with a cache of the node_modules directory.",
code = """
id: node-with-cache
namespace: dev
namespace: company.team
tasks:
- id: working-dir
type: io.kestra.plugin.core.flow.WorkingDirectory
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/http/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
full = true,
code = """
id: api_call
namespace: dev
namespace: company.team
tasks:
- id: basic_auth_api
type: io.kestra.plugin.core.http.Request
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/io/kestra/plugin/core/http/Trigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
code = {
"""
id: http_price_alert
namespace: dev
namespace: company.team
tasks:
- id: send_slack_alert
Expand Down Expand Up @@ -63,7 +63,7 @@
code = {
"""
id: http-trigger
namespace: dev
namespace: company.team
triggers:
- id: http
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/plugin/core/log/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
full = true,
code = """
id: hello_world
namespace: dev
namespace: company.team
tasks:
- id: greeting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
code = {
"""
id: delete_files
namespace: dev
namespace: company.team
tasks:
- id: delete
type: io.kestra.plugin.core.namespace.DeleteFiles
Expand All @@ -53,7 +53,7 @@
code = {
"""
id: delete_all_files
namespace: dev
namespace: company.team
tasks:
- id: delete
type: io.kestra.plugin.core.namespace.DeleteFiles
Expand Down
Loading

0 comments on commit c94e23a

Please sign in to comment.