| name | phase1-crossplane-setup |
| description | Automates Crossplane provider installation, validation, and initial setup for Phase 1 migration. Use when setting up a new Crossplane control plane or validating provider health. Handles provider installation, health checks, XRD validation, test resource creation, GitOps integration, and orchestrator preparation. |
| license | AGPLv3 |
| metadata | {"author":"agentic-reconciliation-engine","version":"1.0","category":"crossplane","risk_level":"medium","autonomy":"conditional","layer":"gitops","human_gate":"Requires PR approval for provider installation in production clusters"} |
| compatibility | Requires Python 3.8+, kubectl configured with cluster admin access, and Kubernetes cluster with Crossplane not yet installed OR needing validation. Flux CLI optional for GitOps setup. |
| allowed-tools | Bash Read Write Grep |
Phase 1 Crossplane Setup Skill
This skill automates the complete Phase 1 Crossplane migration implementation as documented in docs/migration/PHASE1-IMPLEMENTATION-PLAN.md.
When to Use
Use this skill when:
- Setting up Crossplane for the first time on a new cluster
- Validating that all providers (AWS, Azure, GCP, Kubernetes) are installed and healthy
- Needing to create test managed resources to verify provider functionality
- Setting up GitOps (Flux CD) to manage Crossplane configurations
- Preparing the environment for Phase 2+ migrations
What It Does
The automation script (core/ai/skills/phase1-crossplane-setup/scripts/phase1_setup.py) performs:
- Prerequisites Check: Validates kubectl availability and cluster connectivity
- Provider Installation: Applies provider definitions from
core/operators/control-plane/crossplane/providers/
- Health Validation: Waits for all providers to reach Healthy status
- ProviderConfig Verification: Confirms credentials/configs are properly set
- XRD Validation: Checks that core XRDs (XNetwork, XCluster, XDatabase) are registered
- Test Resource Creation (optional): Creates an S3 bucket to verify AWS provider
- GitOps Setup (optional): Installs Flux and configures GitRepository/Kustomization
- Orchestrator Check: Verifies CrossplaneProvider integration status
Usage
Via Agent
/phase1-crossplane-setup
/phase1-crossplane-setup --dry-run
/phase1-crossplane-setup --skip-providers
/phase1-crossplane-setup --skip-gitops
/phase1-crossplane-setup --test-resource
Manual Execution
cd core/ai/skills/phase1-crossplane-setup/scripts
python3 phase1_setup.py [options]
Required Permissions
The skill requires:
- K8s cluster-admin role to install providers and create resources
- Flux CLI installed if using GitOps feature
- Internet access to download provider packages from xpkg.upbound.io
- AWS credentials configured if creating test S3 bucket
Success Criteria
Rollback
If installation fails:
- Provider failures: Check logs with
kubectl logs -n crossplane-system deployment/provider-aws -c provider
- Credential issues: Verify ProviderConfig has correct secret references
- Network issues: Ensure cluster has outbound internet access for xpkg downloads
- Cleanup:
kubectl delete -k core/operators/control-plane/crossplane/providers
Risk Mitigation
- Medium risk: Installations modify cluster state but are reversible
- Always use
--dry-run first in non-production environments
- Requires PR approval for production clusters (set via
human_gate)
- Monitor costs: Test resources incur cloud provider charges
- Keep credentials secure: Do not commit ProviderConfig secrets; use external secrets operator
References