TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A Kubernetes Controller that installs CRDs

3 pointsby skarlsoalmost 2 years ago
Hello everyone. :)<p>I&#x27;m not sure anyone is interested in such a thing, but I saw a request earlier this year for something like this, so I wrote one. :)<p>It&#x27;s a controller that can reconcile CRDs. You can point to a ConfigMap containing CRDs or a GitHub repository in which the release contains a manifest containing CRDs.<p>A single Bootstrap object can have multiple CRDs. Optionally it will delete them once the object is removed.<p>It also reconciles versions. You set a semver that is a constraint like `&gt;v1`, and it will install that version if it finds something greater than already installed. It cannot go back to prevent accidental or intentional rollback when an upstream version is deleted.<p>It will also validate the CRD against a template to prevent installing CRDs that would break existing objects.<p>And that&#x27;s about it. I&#x27;m adding a URL to the mix, which you&#x27;ll point at a URL that is a yaml content of CRDs, and it will create a Digest for it and install it any time the digest changes.<p>That&#x27;s it. Maybe it&#x27;s useless, but it was a fun thing to create. :)<p>Cheers!

1 comment

praveen_mishraalmost 2 years ago
This CRD Controller you whipped up sounds pretty neat! Managing CRDs can definitely be a headache.
评论 #36895406 未加载