Writing Crossplane Providers with Code Generation
summary
Builds a real Crossplane provider for PlanetScale using the Crossplane Runtime and the provider-template scaffold, writing two CRDs (Database and Password), auto-generating deepcopy and resolver code with the codegen tools, and wiring a PlanetScale Go client for create/observe/delete. Creates connection secrets and a Composition that provisions database + password + Helm release to install WordPress; controller runs locally and successfully provisions resources (with minor demo hiccups). Code is destined for crossplane-contrib.
AI-written summary · about
chapters (15)
- 0:00Start
- 13:31Code Generation
- 18:19Provider Template
- 27:17Register Our Controllers
- 30:23Find a Go Client
- 32:21Optional Types in Crossplane
- 33:58Connect Method
- 36:09Authenticate to Api
- 44:18Create a Provider Config
- 50:39Delete Method
- 1:00:54Publish the Connection Details
- 1:19:08Abstraction Api
- 1:21:42Create the Provider Configs
- 1:26:45Terrajet
- 1:31:37Importing Already Existing Resources
related talks
05mExpanding Crossplane’s Reach - Providers, Bridges, and Exten...
30mGetting to Know Crossplane
21mThe How & Why for Building Crossplane Providers - Krish Chowdhary, Red Hat
23mIntroduction to Crossplane and Simplifying Cloud Native Infrastructure Management
17mCrossplane: Deploy Your Cloud Components from Your K8S Cluster
30mExtending Kubernetes Scheduler for Multi-Cluster and Multi-Cloud Workloads
35mBuilding and Enabling APIs with Crossplane 1
25mCrossplane: Build and Manage Infrastructure using Kubernetes
