crossplane-contrib/provider-sql
crossplane-contrib/provider-sql has 156 GitHub stars and 125 forks. Star changes are not measured yet. Last checked 2026-11-10 01:09 UTC. Last push 2026-11-05.
An SQL provider for @crossplane
实测星标增长
- 24小时
- 更新延迟
- 7天
- 更新延迟
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Crossplane Provider for SQL
A Crossplane provider for SQL.
A Crossplane provider for RDBMS schema management/manipulation. Note that
provider-sql orchestrates relational database servers by creating databases,
users, etc. It does not create server instances themselves. provider-sql can
be used in conjunction with other providers (e.g. provider-azure) to define a
composite resource that creates both an RDBMS server and a new database schema.
To reduce load on the managed databases and increase responsiveness with many managed resources, this provider reconciles its managed resources every 10 minutes.
It currently supports MySQL, PostgreSQL and MSSQL.
Install
Install the provider by using the following command after changing the image tag to the latest release:
cat << EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-sql
spec:
package: xpkg.upbound.io/crossplane-contrib/provider-sql:v0.9.0
EOF
Alternatively, you can use Crossplane CLI:
up ctp provider install xpkg.upbound.io/crossplane-contrib/provider-sql:v0.9.0
Check the example:
Usage
Create a connection secret:
To create provider-sql managed resources, you will first need a K8s secret with the connection details to an existing SQL server.
This secret could either be created automatically by provisioning an SQL server with a Crossplane provider (e.g. a CloudSQLInstance with provider-gcp) or you can create for an existing server as follows:
kubectl create secret generic db-conn \ --from-literal=username=admin \ --from-literal=password='t0ps3cr3t' \ --from-literal=endpoint=my.sql-server.com \ --from-literal=port=3306Create managed resources for your SQL server flavor:
- MySQL:
Database,Grant,User(See the examples) - PostgreSQL:
Database,Grant,DefaultPrivileges,Extension,Role(See the examples) - MSSQL:
Database,Grant,User(See the examples)
- MySQL:
Contributing
- Fork the project and clone locally.
- Create a branch with the changes.
- Install go version 1.18.
- Run
maketo initialize the "build". Make submodules used for CI/CD. - Run
make reviewableto run code generation, linters, and tests. - Commit, push, and PR.
Developing locally
Pre-requisite: A Kubernetes cluster with Crossplane installed
To run the provider-helm controller against your existing local cluster,
simply run:
make run
Since the controller is running outside of the local cluster, you need to make the API server accessible (on a separate terminal):
sudo kubectl proxy --port=8081
Then we must prepare a ProviderConfig for the local cluster (assuming you are
using kind for local development):
KUBECONFIG=$(kind get kubeconfig | sed -e 's|server:\s*.*$|server: http://localhost:8081|g')
kubectl -n crossplane-system create secret generic cluster-config --from-literal=kubeconfig="${KUBECONFIG}"
kubectl apply -f examples/provider-config/provider-config-with-secret.yaml
Now you can create Release resources with this ProviderConfig, for example
sample release.yaml.
kubectl create -f examples/sample/release.yaml
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,830 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,395 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,473 星标