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

First attempt at CRD generation in Ruby failed #1

Open
kingdonb opened this issue Mar 23, 2022 · 0 comments
Open

First attempt at CRD generation in Ruby failed #1

kingdonb opened this issue Mar 23, 2022 · 0 comments

Comments

@kingdonb
Copy link
Owner

kingdonb commented Mar 23, 2022

https://gist.github.com/kingdonb/f9753f79d291f71caff3164082523da2

I have low aspirations here. I only want to create the CRD YAML without writing it in YAML. I do not care if it is generated from a type (but it would be pretty cool to build out type information in Sorbet, and get a matching CRD in response... I do not know enough about typing in Ruby to even approach this!)

Ref: for a bit of background on why this attempt failed, see

For now, I have settled that it is OK if the CRD is written in plain YAML, this is not controller-runtime in Ruby, it's just meant to get my idea off the ground, (and doing it in Ruby where I'm already more than comfortable processing CSV data, the object here... so let's get toward ingesting CSV straight away, and move on to reflecting the results back out into etcd / into k8s resource statuses data structures as fast as we possibly can!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant