Skip to content

Feature Request: a way to only deploy to targets in the fleet yaml #3255

@dbones

Description

@dbones

Is your feature request related to a problem?

no

Solution you'd like

in the gitRepo it has a targets which represents all possible servers a git repository is allowed to deploy to

it would be helpful, in the fleet.yaml to be able to specify only the targets it requires to deploy to (and no other target will be deployed to)

Image

this will allow for promotion/targeting to chosen clusters only

Alternatives you've considered

this works, as the other clusters have "nothing" deployed to them, however its not obvious, goes against current fleet, and the dashboards in the Rancher UI shjows a lot of things being deployed which have nothing actually being deployed (its very counter-intuitive)

# defuault is to deploy nothing
helm:
  chart: empty
  repo: https://dbones-labs.github.io/maps
  version: 1.0.0

targetCustomizations:
- name: dev
  clusterSelector:
    matchLabels:
      mycloud/env: dev
  helm:
    chart: kuma
    repo: https://kumahq.github.io/charts
    version: 2.9.3

- name: qa
  clusterSelector:
    matchLabels:
      mycloud/env: qa
  helm:
    chart: kuma
    repo: https://kumahq.github.io/charts
    version: 2.9.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    Status

    To Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions