https://github.com/stuttgart-things/crossplane
crossplane configurations, apis and examples
https://github.com/stuttgart-things/crossplane
claims crossplane iac kubernetes managed-resources terraform xrds
Last synced: 4 months ago
JSON representation
crossplane configurations, apis and examples
- Host: GitHub
- URL: https://github.com/stuttgart-things/crossplane
- Owner: stuttgart-things
- Created: 2024-12-15T10:27:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-09T07:50:22.000Z (about 1 year ago)
- Last Synced: 2025-06-16T16:09:38.645Z (about 1 year ago)
- Topics: claims, crossplane, iac, kubernetes, managed-resources, terraform, xrds
- Language: Smarty
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stuttart-things/crossplane
crossplane configurations, apis and examples
## DEV KIND CLUSTER DEPLOYMENT & CONFIGURATION OF CROSSPLANE
CREATE KIND CLUSTER w/ DAGGER (DOCKER+KIND ARE REQUIRED)
```bash
export TASK_X_REMOTE_TASKFILES=1
task --taskfile https://raw.githubusercontent.com/stuttgart-things/tasks/refs/heads/main/kubernetes/kind.yaml create-kind-cluster
```
CREATE KIND CLUSTER w/ DAGGER+ANSIBLE
```bash
dagger call -m github.com/stuttgart-things/blueprints/vm \
execute-ansible \
--playbooks "sthings.baseos.setup,sthings.container.kind_xplane" \
--hosts "10.31.103.23" \
--ssh-user=env:SSH_USER \
--ssh-password=env:SSH_PASSWORD \
--requirements /tmp/requirements.yaml \
--progress plain -vv
```
DEPLOY CILIUM
```bash
export KUBECONFIG=/home/sthings/.kube/
task --taskfile https://raw.githubusercontent.com/stuttgart-things/tasks/refs/heads/main/kubernetes/crds.yaml kubectl-kustomize #apply+cilium
task --taskfile https://raw.githubusercontent.com/stuttgart-things/tasks/refs/heads/main/kubernetes/helm.yaml helmfile-operation #apply+cilium
```
CROSSPLANE DEPLOYMENT w/ DAGGER/HELMFILE
```bash
kubectl apply --server-side -k https://github.com/stuttgart-things/helm/cicd/crds/crossplane
# BY TASKFILE (IS USING GUM+DAGGER)
export TASK_X_REMOTE_TASKFILES=1
task --taskfile https://raw.githubusercontent.com/stuttgart-things/tasks/refs/heads/main/kubernetes/helm.yaml helmfile-operation #apply+crossplane
# OR BY DIRECT DAGGER CALL
dagger call -m github.com/stuttgart-things/dagger/helm@v0.57.0 helmfile-operation \
--helmfile-ref "git::https://github.com/stuttgart-things/helm.git@cicd/crossplane.yaml.gotmpl" \
--operation apply \
--state-values "version=2.1.3" \
--kube-config file:///home/sthings/.kube/config \
--progress plain -vv
```
CROSSPLANE DEPLOYMENT w/ DAGGER/HELMFILE
```bash
export KUBECONFIG=/home/sthings/.kube/
task --taskfile https://raw.githubusercontent.com/stuttgart-things/tasks/refs/heads/main/kubernetes/crds.yaml kubectl-kustomize #apply+cilium
task --taskfile https://raw.githubusercontent.com/stuttgart-things/tasks/refs/heads/main/kubernetes/helm.yaml helmfile-operation #apply+cilium
```
```bash
dagger call -m github.com/stuttgart-things/dagger/helm@v0.57.0 \
helmfile-operation \
--helmfile-ref "git::https://github.com/stuttgart-things/helm.git@infra/openebs.yaml.gotmpl" \
--operation apply \
--state-values "namespace=openebs-system,profile=localpv,openebs_volumesnapshots_enabled=false,openebs_csi_node_init_containers_enabled=false,openebs_local_lvm_enabled=false,openebs_local_zfs_enabled=false,openebs_replicated_mayastor_enabled=false" \
--kube-config file://~/.kube/config \
--progress plain -vv
```
```bash
# DEPLOY TEKTON w/ DAGGER
dagger call -m github.com/stuttgart-things/dagger/helm@v0.57.0 \
helmfile-operation \
--helmfile-ref "git::https://github.com/stuttgart-things/helm.git@cicd/tekton.yaml.gotmpl" \
--operation apply \
--state-values "namespace=tekton-operator,pipelineNamespace=tekton-pipelines,version=0.77.5" \
--kube-config file://~/.kube/config \
--progress plain -vv
```
ADD LOCAL CLUSTER AS KUBERNETES PROVIDER (FILEBASED)
```bash
dagger call -m github.com/stuttgart-things/blueprints/crossplane-configuration add-cluster \
--clusterName=in-cluster \
--kubeconfig-cluster file:///home/sthings/.kube/xplane \ --kubeconfig-crossplane-cluster file:///home/sthings/.kube/xplane \
--deploy-to-cluster=false \
--progress plain \
-vv export \
--path=/tmp/xplane
```
APPLY CROSSPLANE PACKAGES
```bash
# BY TASKFILE
export TASK_X_REMOTE_TASKFILES=1
task --taskfile https://raw.githubusercontent.com/stuttgart-things/crossplane/refs/heads/main/Taskfile.yaml apply-crossplane-packages
```
APPLY CROSSPLANE PACKAGES
```bash
# BY TASKFILE
export TASK_X_REMOTE_TASKFILES=1
task --taskfile https://raw.githubusercontent.com/stuttgart-things/crossplane/refs/heads/main/Taskfile.yaml apply-crossplane-packages
```
## CONFIGURATIONS
APPLY CROSSPLANE PACKAGES
```bash
export TASK_X_REMOTE_TASKFILES=1
task --taskfile https://raw.githubusercontent.com/stuttgart-things/crossplane/refs/heads/main/Taskfile.yaml create-new-configuration
```
## DEVELOPMENT
### Quick Start
```bash
# Setup standardized development environment
source .container-use/container-use.sh
cu-setup
# Access development environment
container-use checkout crossplane-development
# Test existing configurations
cu-test-vcluster
cu-test-ansible-run
cu-test-all
```
### Development Standards
This repository follows structured development specifications:
- 📋 **[Development Specification](.container-use/specs/crossplane-configuration-development.md)** - Complete development workflow
- 🛠️ **[Configuration Template](.container-use/specs/configuration-template.md)** - Standardized template for new configurations
- � **[Container-Use Workflow](docs/container-use-workflow.md)** - Environment merge and workflow automation
- �📚 **[Specifications Index](.container-use/specs/README.md)** - Overview of all specifications
### Workflow Automation
Standardized tasks for environment management:
```bash
# Interactive environment merge
task merge-environment
# Direct environment merge
task merge-environment-auto ENV_ID=your-env-id
# Pull request workflow
task merge-environment-pr
# View all available tasks
task do
```
- 🚀 **[Container-Use Setup](.container-use/README.md)** - Standardized development environment
### Quick Specification Access
```bash
# Load helper functions
source .container-use/container-use.sh
# View specifications
cu-spec # Show available specs
cu-new my-config apps # Create new config with guidance
```