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

[feature proposal] custom translation profiles or templates for CRDs #35

Open
astromechza opened this issue Sep 12, 2024 · 0 comments
Open
Assignees

Comments

@astromechza
Copy link
Member

astromechza commented Sep 12, 2024

Currently, score-k8s converts to the workload into either a Deployment or a Statefulset + a Service object. This behavior is hard coded.

However, some folks want to convert to ArgoCDRollouts, VMs, or other CRDs or inject specific translation logic that is not common to all score consumers.

We want to support these kinds of workloads in Score too through a "workload templates" concept.

This must be a template of some kind that can validate and convert the input workload. Validation is needed because while Score spec provides some base validations according to the Score spec, the particular CRD may enforce stricter requirements - for example, only 1 container allowed. Or, no ordered containers, or no memory limits higher than X.

While Go templates are possible here, it may be better to go for Kustomize, KCL, Rego, or something that understands the context better 🤔

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

1 participant