diff --git a/docs/examples/workflows/complex_expr.md b/docs/examples/workflows/misc/complex_expr.md similarity index 100% rename from docs/examples/workflows/complex_expr.md rename to docs/examples/workflows/misc/complex_expr.md diff --git a/docs/examples/workflows/container.md b/docs/examples/workflows/misc/container.md similarity index 100% rename from docs/examples/workflows/container.md rename to docs/examples/workflows/misc/container.md diff --git a/docs/examples/workflows/container_set_with_env.md b/docs/examples/workflows/misc/container_set_with_env.md similarity index 100% rename from docs/examples/workflows/container_set_with_env.md rename to docs/examples/workflows/misc/container_set_with_env.md diff --git a/docs/examples/workflows/container_with_resources.md b/docs/examples/workflows/misc/container_with_resources.md similarity index 100% rename from docs/examples/workflows/container_with_resources.md rename to docs/examples/workflows/misc/container_with_resources.md diff --git a/docs/examples/workflows/daemon.md b/docs/examples/workflows/misc/daemon.md similarity index 100% rename from docs/examples/workflows/daemon.md rename to docs/examples/workflows/misc/daemon.md diff --git a/docs/examples/workflows/data.md b/docs/examples/workflows/misc/data.md similarity index 100% rename from docs/examples/workflows/data.md rename to docs/examples/workflows/misc/data.md diff --git a/docs/examples/workflows/dynamic_resources.md b/docs/examples/workflows/misc/dynamic_resources.md similarity index 100% rename from docs/examples/workflows/dynamic_resources.md rename to docs/examples/workflows/misc/dynamic_resources.md diff --git a/docs/examples/workflows/dynamic_volumes.md b/docs/examples/workflows/misc/dynamic_volumes.md similarity index 100% rename from docs/examples/workflows/dynamic_volumes.md rename to docs/examples/workflows/misc/dynamic_volumes.md diff --git a/docs/examples/workflows/env.md b/docs/examples/workflows/misc/env.md similarity index 100% rename from docs/examples/workflows/env.md rename to docs/examples/workflows/misc/env.md diff --git a/docs/examples/workflows/env_from.md b/docs/examples/workflows/misc/env_from.md similarity index 100% rename from docs/examples/workflows/env_from.md rename to docs/examples/workflows/misc/env_from.md diff --git a/docs/examples/workflows/global_config.md b/docs/examples/workflows/misc/global_config.md similarity index 100% rename from docs/examples/workflows/global_config.md rename to docs/examples/workflows/misc/global_config.md diff --git a/docs/examples/workflows/hello_world.md b/docs/examples/workflows/misc/hello_world.md similarity index 100% rename from docs/examples/workflows/hello_world.md rename to docs/examples/workflows/misc/hello_world.md diff --git a/docs/examples/workflows/http.md b/docs/examples/workflows/misc/http.md similarity index 100% rename from docs/examples/workflows/http.md rename to docs/examples/workflows/misc/http.md diff --git a/docs/examples/workflows/multi_env.md b/docs/examples/workflows/misc/multi_env.md similarity index 100% rename from docs/examples/workflows/multi_env.md rename to docs/examples/workflows/misc/multi_env.md diff --git a/docs/examples/workflows/resource_flags.md b/docs/examples/workflows/misc/resource_flags.md similarity index 100% rename from docs/examples/workflows/resource_flags.md rename to docs/examples/workflows/misc/resource_flags.md diff --git a/docs/examples/workflows/suspend.md b/docs/examples/workflows/misc/suspend.md similarity index 100% rename from docs/examples/workflows/suspend.md rename to docs/examples/workflows/misc/suspend.md diff --git a/docs/examples/workflows/suspend_input_duration.md b/docs/examples/workflows/misc/suspend_input_duration.md similarity index 100% rename from docs/examples/workflows/suspend_input_duration.md rename to docs/examples/workflows/misc/suspend_input_duration.md diff --git a/docs/examples/workflows/template_level_volume.md b/docs/examples/workflows/misc/template_level_volume.md similarity index 100% rename from docs/examples/workflows/template_level_volume.md rename to docs/examples/workflows/misc/template_level_volume.md diff --git a/docs/examples/workflows/user_container.md b/docs/examples/workflows/misc/user_container.md similarity index 100% rename from docs/examples/workflows/user_container.md rename to docs/examples/workflows/misc/user_container.md diff --git a/docs/examples/workflows/volume_mount.md b/docs/examples/workflows/misc/volume_mount.md similarity index 100% rename from docs/examples/workflows/volume_mount.md rename to docs/examples/workflows/misc/volume_mount.md diff --git a/docs/examples/workflows/volume_mounts.md b/docs/examples/workflows/misc/volume_mounts.md similarity index 100% rename from docs/examples/workflows/volume_mounts.md rename to docs/examples/workflows/misc/volume_mounts.md diff --git a/docs/examples/workflows/volume_mounts_nfs.md b/docs/examples/workflows/misc/volume_mounts_nfs.md similarity index 100% rename from docs/examples/workflows/volume_mounts_nfs.md rename to docs/examples/workflows/misc/volume_mounts_nfs.md diff --git a/docs/examples/workflows/volume_mounts_wt.md b/docs/examples/workflows/misc/volume_mounts_wt.md similarity index 100% rename from docs/examples/workflows/volume_mounts_wt.md rename to docs/examples/workflows/misc/volume_mounts_wt.md diff --git a/docs/examples/workflows/workflow_on_exit.md b/docs/examples/workflows/misc/workflow_on_exit.md similarity index 100% rename from docs/examples/workflows/workflow_on_exit.md rename to docs/examples/workflows/misc/workflow_on_exit.md diff --git a/docs/examples/workflows/workflow_with_global_params.md b/docs/examples/workflows/misc/workflow_with_global_params.md similarity index 100% rename from docs/examples/workflows/workflow_with_global_params.md rename to docs/examples/workflows/misc/workflow_with_global_params.md diff --git a/examples/workflows/__init__.py b/examples/workflows/misc/__init__.py similarity index 100% rename from examples/workflows/__init__.py rename to examples/workflows/misc/__init__.py diff --git a/examples/workflows/complex-expr.yaml b/examples/workflows/misc/complex-expr.yaml similarity index 100% rename from examples/workflows/complex-expr.yaml rename to examples/workflows/misc/complex-expr.yaml diff --git a/examples/workflows/complex_expr.py b/examples/workflows/misc/complex_expr.py similarity index 100% rename from examples/workflows/complex_expr.py rename to examples/workflows/misc/complex_expr.py diff --git a/examples/workflows/container-set-with-env.yaml b/examples/workflows/misc/container-set-with-env.yaml similarity index 100% rename from examples/workflows/container-set-with-env.yaml rename to examples/workflows/misc/container-set-with-env.yaml diff --git a/examples/workflows/container-with-resources.yaml b/examples/workflows/misc/container-with-resources.yaml similarity index 100% rename from examples/workflows/container-with-resources.yaml rename to examples/workflows/misc/container-with-resources.yaml diff --git a/examples/workflows/container.py b/examples/workflows/misc/container.py similarity index 100% rename from examples/workflows/container.py rename to examples/workflows/misc/container.py diff --git a/examples/workflows/container.yaml b/examples/workflows/misc/container.yaml similarity index 100% rename from examples/workflows/container.yaml rename to examples/workflows/misc/container.yaml diff --git a/examples/workflows/container_set_with_env.py b/examples/workflows/misc/container_set_with_env.py similarity index 100% rename from examples/workflows/container_set_with_env.py rename to examples/workflows/misc/container_set_with_env.py diff --git a/examples/workflows/container_with_resources.py b/examples/workflows/misc/container_with_resources.py similarity index 100% rename from examples/workflows/container_with_resources.py rename to examples/workflows/misc/container_with_resources.py diff --git a/examples/workflows/daemon.py b/examples/workflows/misc/daemon.py similarity index 100% rename from examples/workflows/daemon.py rename to examples/workflows/misc/daemon.py diff --git a/examples/workflows/daemon.yaml b/examples/workflows/misc/daemon.yaml similarity index 100% rename from examples/workflows/daemon.yaml rename to examples/workflows/misc/daemon.yaml diff --git a/examples/workflows/data.py b/examples/workflows/misc/data.py similarity index 100% rename from examples/workflows/data.py rename to examples/workflows/misc/data.py diff --git a/examples/workflows/data.yaml b/examples/workflows/misc/data.yaml similarity index 100% rename from examples/workflows/data.yaml rename to examples/workflows/misc/data.yaml diff --git a/examples/workflows/dynamic-resources.yaml b/examples/workflows/misc/dynamic-resources.yaml similarity index 100% rename from examples/workflows/dynamic-resources.yaml rename to examples/workflows/misc/dynamic-resources.yaml diff --git a/examples/workflows/dynamic-volumes.yaml b/examples/workflows/misc/dynamic-volumes.yaml similarity index 100% rename from examples/workflows/dynamic-volumes.yaml rename to examples/workflows/misc/dynamic-volumes.yaml diff --git a/examples/workflows/dynamic_resources.py b/examples/workflows/misc/dynamic_resources.py similarity index 100% rename from examples/workflows/dynamic_resources.py rename to examples/workflows/misc/dynamic_resources.py diff --git a/examples/workflows/dynamic_volumes.py b/examples/workflows/misc/dynamic_volumes.py similarity index 100% rename from examples/workflows/dynamic_volumes.py rename to examples/workflows/misc/dynamic_volumes.py diff --git a/examples/workflows/env-from.yaml b/examples/workflows/misc/env-from.yaml similarity index 100% rename from examples/workflows/env-from.yaml rename to examples/workflows/misc/env-from.yaml diff --git a/examples/workflows/env.py b/examples/workflows/misc/env.py similarity index 100% rename from examples/workflows/env.py rename to examples/workflows/misc/env.py diff --git a/examples/workflows/env.yaml b/examples/workflows/misc/env.yaml similarity index 100% rename from examples/workflows/env.yaml rename to examples/workflows/misc/env.yaml diff --git a/examples/workflows/env_from.py b/examples/workflows/misc/env_from.py similarity index 100% rename from examples/workflows/env_from.py rename to examples/workflows/misc/env_from.py diff --git a/examples/workflows/global-config.yaml b/examples/workflows/misc/global-config.yaml similarity index 100% rename from examples/workflows/global-config.yaml rename to examples/workflows/misc/global-config.yaml diff --git a/examples/workflows/global_config.py b/examples/workflows/misc/global_config.py similarity index 100% rename from examples/workflows/global_config.py rename to examples/workflows/misc/global_config.py diff --git a/examples/workflows/hello-world.yaml b/examples/workflows/misc/hello-world.yaml similarity index 100% rename from examples/workflows/hello-world.yaml rename to examples/workflows/misc/hello-world.yaml diff --git a/examples/workflows/hello_world.py b/examples/workflows/misc/hello_world.py similarity index 100% rename from examples/workflows/hello_world.py rename to examples/workflows/misc/hello_world.py diff --git a/examples/workflows/http.py b/examples/workflows/misc/http.py similarity index 100% rename from examples/workflows/http.py rename to examples/workflows/misc/http.py diff --git a/examples/workflows/http.yaml b/examples/workflows/misc/http.yaml similarity index 100% rename from examples/workflows/http.yaml rename to examples/workflows/misc/http.yaml diff --git a/examples/workflows/multi-env.yaml b/examples/workflows/misc/multi-env.yaml similarity index 100% rename from examples/workflows/multi-env.yaml rename to examples/workflows/misc/multi-env.yaml diff --git a/examples/workflows/multi_env.py b/examples/workflows/misc/multi_env.py similarity index 100% rename from examples/workflows/multi_env.py rename to examples/workflows/misc/multi_env.py diff --git a/examples/workflows/resource-flags.yaml b/examples/workflows/misc/resource-flags.yaml similarity index 100% rename from examples/workflows/resource-flags.yaml rename to examples/workflows/misc/resource-flags.yaml diff --git a/examples/workflows/resource_flags.py b/examples/workflows/misc/resource_flags.py similarity index 100% rename from examples/workflows/resource_flags.py rename to examples/workflows/misc/resource_flags.py diff --git a/examples/workflows/suspend-input-duration.yaml b/examples/workflows/misc/suspend-input-duration.yaml similarity index 100% rename from examples/workflows/suspend-input-duration.yaml rename to examples/workflows/misc/suspend-input-duration.yaml diff --git a/examples/workflows/suspend.py b/examples/workflows/misc/suspend.py similarity index 100% rename from examples/workflows/suspend.py rename to examples/workflows/misc/suspend.py diff --git a/examples/workflows/suspend.yaml b/examples/workflows/misc/suspend.yaml similarity index 100% rename from examples/workflows/suspend.yaml rename to examples/workflows/misc/suspend.yaml diff --git a/examples/workflows/suspend_input_duration.py b/examples/workflows/misc/suspend_input_duration.py similarity index 100% rename from examples/workflows/suspend_input_duration.py rename to examples/workflows/misc/suspend_input_duration.py diff --git a/examples/workflows/template-level-volume.yaml b/examples/workflows/misc/template-level-volume.yaml similarity index 100% rename from examples/workflows/template-level-volume.yaml rename to examples/workflows/misc/template-level-volume.yaml diff --git a/examples/workflows/template_level_volume.py b/examples/workflows/misc/template_level_volume.py similarity index 100% rename from examples/workflows/template_level_volume.py rename to examples/workflows/misc/template_level_volume.py diff --git a/examples/workflows/user-container.yaml b/examples/workflows/misc/user-container.yaml similarity index 100% rename from examples/workflows/user-container.yaml rename to examples/workflows/misc/user-container.yaml diff --git a/examples/workflows/user_container.py b/examples/workflows/misc/user_container.py similarity index 100% rename from examples/workflows/user_container.py rename to examples/workflows/misc/user_container.py diff --git a/examples/workflows/volume-mount.yaml b/examples/workflows/misc/volume-mount.yaml similarity index 100% rename from examples/workflows/volume-mount.yaml rename to examples/workflows/misc/volume-mount.yaml diff --git a/examples/workflows/volume-mounts-nfs.yaml b/examples/workflows/misc/volume-mounts-nfs.yaml similarity index 100% rename from examples/workflows/volume-mounts-nfs.yaml rename to examples/workflows/misc/volume-mounts-nfs.yaml diff --git a/examples/workflows/volume-mounts-wt.yaml b/examples/workflows/misc/volume-mounts-wt.yaml similarity index 100% rename from examples/workflows/volume-mounts-wt.yaml rename to examples/workflows/misc/volume-mounts-wt.yaml diff --git a/examples/workflows/volume-mounts.yaml b/examples/workflows/misc/volume-mounts.yaml similarity index 100% rename from examples/workflows/volume-mounts.yaml rename to examples/workflows/misc/volume-mounts.yaml diff --git a/examples/workflows/volume_mount.py b/examples/workflows/misc/volume_mount.py similarity index 100% rename from examples/workflows/volume_mount.py rename to examples/workflows/misc/volume_mount.py diff --git a/examples/workflows/volume_mounts.py b/examples/workflows/misc/volume_mounts.py similarity index 100% rename from examples/workflows/volume_mounts.py rename to examples/workflows/misc/volume_mounts.py diff --git a/examples/workflows/volume_mounts_nfs.py b/examples/workflows/misc/volume_mounts_nfs.py similarity index 100% rename from examples/workflows/volume_mounts_nfs.py rename to examples/workflows/misc/volume_mounts_nfs.py diff --git a/examples/workflows/volume_mounts_wt.py b/examples/workflows/misc/volume_mounts_wt.py similarity index 100% rename from examples/workflows/volume_mounts_wt.py rename to examples/workflows/misc/volume_mounts_wt.py diff --git a/examples/workflows/workflow-on-exit.yaml b/examples/workflows/misc/workflow-on-exit.yaml similarity index 100% rename from examples/workflows/workflow-on-exit.yaml rename to examples/workflows/misc/workflow-on-exit.yaml diff --git a/examples/workflows/workflow-with-global-params.yaml b/examples/workflows/misc/workflow-with-global-params.yaml similarity index 100% rename from examples/workflows/workflow-with-global-params.yaml rename to examples/workflows/misc/workflow-with-global-params.yaml diff --git a/examples/workflows/workflow_on_exit.py b/examples/workflows/misc/workflow_on_exit.py similarity index 100% rename from examples/workflows/workflow_on_exit.py rename to examples/workflows/misc/workflow_on_exit.py diff --git a/examples/workflows/workflow_with_global_params.py b/examples/workflows/misc/workflow_with_global_params.py similarity index 100% rename from examples/workflows/workflow_with_global_params.py rename to examples/workflows/misc/workflow_with_global_params.py diff --git a/examples/workflows/upstream/workflow-count-resourcequota.upstream.yaml b/examples/workflows/upstream/workflow-count-resourcequota.upstream.yaml index 827e6e6f0..d138dc0b4 100644 --- a/examples/workflows/upstream/workflow-count-resourcequota.upstream.yaml +++ b/examples/workflows/upstream/workflow-count-resourcequota.upstream.yaml @@ -17,7 +17,7 @@ metadata: <= v3.1 you can configure a global limit to the total number of running workflows in the cluster. This is suitable for single-tenancy set-up. - For multi-tenancy set-up, where each tenant own a single namespace, then in >= v3.1 you can globaly configure a + For multi-tenancy set-up, where each tenant owns a single namespace, then in >= v3.1 you can globally configure a limit for the total number of running workflows within each namespace. spec: hard: diff --git a/tests/test_unit/test_workflow.py b/tests/test_unit/test_workflow.py index 2c1b0037e..63f6cef8f 100644 --- a/tests/test_unit/test_workflow.py +++ b/tests/test_unit/test_workflow.py @@ -52,7 +52,7 @@ def test_workflow_create(): def test_workflow_to_file(tmp_path: Path): # GIVEN - workflow = importlib.import_module("examples.workflows.hello_world").w + workflow = importlib.import_module("examples.workflows.misc.hello_world").w # WHEN yaml_path = workflow.to_file(tmp_path) @@ -64,7 +64,7 @@ def test_workflow_to_file(tmp_path: Path): def test_workflow_from_yaml(): # GIVEN - workflow = importlib.import_module("examples.workflows.hello_world").w + workflow = importlib.import_module("examples.workflows.misc.hello_world").w # THEN assert workflow == Workflow.from_yaml(workflow.to_yaml())