Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard-include tasks from a dir #1678

Open
pentago opened this issue Jun 1, 2024 · 1 comment
Open

Wildcard-include tasks from a dir #1678

pentago opened this issue Jun 1, 2024 · 1 comment
Labels
state: needs triage Waiting to be triaged by a maintainer.

Comments

@pentago
Copy link

pentago commented Jun 1, 2024

I was thinking about a possibility of having a directory full of individual task files and just including the entire directory of tasks without having to specify all of them one by one.

This way, one would be able to make compositions from predefined tasks suitable for a need.
For example, in large teams working on various projects, one person might have different needs than the other (e.g. OS or tooling-wise).

My proposal is mostly aimed at working in an environment with multiple people to be able to share tasks.

For example, consider this definition:

version: '3'

includes_dir:
  - dir: tasks/*
  - dir: os/mac/*

tasks:
  setup-mac-infra:
    cmds:
      - task: setup-cluster
      - task: setup-metrics-server
      - task: setup-cilium
      - task: setup-coredns
      - task: setup-cert-manager
      - task: setup-gateway-api
      - task: setup-workload
      - task: setup-netpols
      - task: run-hubble

  mac-cleanup:
    cmds:
      - task: cleanup

Or something along those lines - just being able to include all (we have hundreds) of tasks and be able to share across the teams.

Thoughts?

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Jun 1, 2024
@gedw99
Copy link

gedw99 commented Aug 17, 2024

relatively easy to implement too.

I have a large collection of reusable tasks and this would make it so much easier to load them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs triage Waiting to be triaged by a maintainer.
Projects
None yet
Development

No branches or pull requests

3 participants