Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Select Stage Dependencies with Selectors #2922

Open
3 tasks done
Bourne-ID opened this issue Nov 13, 2024 · 3 comments
Open
3 tasks done

Select Stage Dependencies with Selectors #2922

Bourne-ID opened this issue Nov 13, 2024 · 3 comments

Comments

@Bourne-ID
Copy link

Bourne-ID commented Nov 13, 2024

Checklist

  • I've searched the issue queue to verify this is not a duplicate feature request.
  • I've pasted the output of kargo version, if applicable.
  • I've pasted logs, if applicable.

Proposed Feature

Allow Stage dependencies (spec.requestedFreight[].sources.stages) to be selected by selector (labels or something similar) allowing for dynamic stage dependency mapping.

Motivation

I aim to replace my usage of AppSet Progressive Syncs with Kargo to manage and maintain our cluster addons. To achieve this simplistically, each cluster is either marked as dev, stage or prod. These clusters are automatically generated as a Kargo Stages through an AppSet with Cluster generator (pending #339). My clusters are dynamic and may change, but I want to enforce my stage dependencies automatically.

Right now my stage dependencies are set manually as this is a static list of known stages.

Suggested Implementation

Being able to use a labelSelector (or similar) allows me to label stages with the environment and have them automatically map the dependencies. Whilst #339 states dependency mappings, I feel this is a smaller change and something that could provide value whilst the full StageSet implementation is designed out.

@Bourne-ID
Copy link
Author

cc @jessesuen in relation to our chat at Kubecon - thank you for your time!

@jessesuen
Copy link
Member

jessesuen commented Nov 14, 2024

Today, we support explicit references:

  requestedFreight:
    - origin:
        kind: Warehouse
        name: guestbook
      sources:
        direct: false
        stages:
          - ab-test-a
          - ab-test-b

The proposal is to support something like:

  requestedFreight:
    - origin:
        kind: Warehouse
        name: guestbook
      sources:
        direct: false
        stageSelector:
          matchLabels:
            env: preprod

Copy link

This issue has been automatically marked as stale because it had no activity for 90 days. It will be closed if no activity occurs in the next 30 days but can be reopened if it becomes relevant again.

@github-actions github-actions bot added the stale label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants