The API server for managing Adhar control plane.
The adhar-control-plane
project provides a comprehensive API server for managing control plane resources. It leverages Upbound's Crossplane to manage cloud infrastructure and services declaratively. This README provides instructions for setting up, running, and managing your control plane using the up
CLI tool.
Before getting started, ensure you have the following prerequisites installed:
- Up CLI (v0.4.0 or later)
- Docker (for running local development environments)
- kubectl (for interacting with your Kubernetes cluster)
- kcl-cli (for running KCL scripts)
- kcl language server (for KCL language support in your IDE)
Add the necessary dependencies to your project using the up
CLI:
# Provider
up dependency add xpkg.upbound.io/upbound/provider-aws-s3:v1.16.0
# Configuration
up dependency add xpkg.upbound.io/upbound/platform-ref-aws:v1.2.0
# Function
up dependency add xpkg.upbound.io/crossplane-contrib/function-status-transformer:v0.4.0
up example generate
up xrd generate examples/bucket/example.yaml
up function generate xcluster
up composition generate apis/xbuckets/definition.yaml
up function generate --language=kcl test-function apis/xbuckets/composition.yaml
up login
up ctx
up project run
up project build
up project push
up dependency update-cache
up dependency clean-cache