backstage icon indicating copy to clipboard operation
backstage copied to clipboard

Profile framework that allows to map CRs to the proper K8s cluster

Open waldirmontoya25 opened this issue 3 years ago • 4 comments

🔖 Feature description

Implement a "profile" framework that allows mapping CRs to the proper K8s cluster

🎤 Context

A typical pattern in Kubernetes clusters is to have clusters for different purposes. Currently, the Kubernetes backend plugin allows to specify CRs at an individual level, but there is no notion of grouping.

✌️ Possible Implementation

We would like to introduce a Introduce a first-class notion of "profile" (or "archetype" as it has been discussed in the past)

kubernetes: customResourceProfiles: build: - group: 'argoproj.io' apiVersion: 'v1alpha1' plural: 'rollouts' run: - # knative, other CRDs that appear on run clusters, etc

...

clusterLocatorMethods:

  • type: config clusters:
    • name: build customResourceProfile: build

👀 Have you spent some time to check if this feature request has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

Yes I am willing to submit a PR!

waldirmontoya25 avatar Jan 26 '23 20:01 waldirmontoya25

/cc @jamieklassen @mclarke47

benjdlambert avatar Jan 30 '23 12:01 benjdlambert

Updating the status: We'll start working on this next week.

waldirmontoya25 avatar Mar 23 '23 16:03 waldirmontoya25

another usecase: migrating k8s versions seems to require having a second cluster (or set of clusters) specifically to give users some time to adjust to the new CRD versions

tplass-ias avatar Apr 03 '23 20:04 tplass-ias

Currently working out a solution for this.

RubenV-dev avatar Apr 04 '23 14:04 RubenV-dev