mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
updated crossplane charts, README, and db workload template
This commit is contained in:
@@ -55,7 +55,7 @@ Also the examples are based on Alibaba Cloud settings
|
||||
* Add cloud provider: `kubectl crossplane install provider crossplane/provider-alibaba:v0.3.0`
|
||||
* Create provider secret: `kubectl create secret generic alibaba-creds --from-literal=accessKeyId=<change here> --from-literal=accessKeySecret=<change here> -n crossplane-system`
|
||||
* Configure the provider: `kubectl apply -f script/provider.yaml`
|
||||
* Configure infrastructure: `kubectl crossplane install configuration crossplane/getting-started-with-alibaba:master`
|
||||
* Configure infrastructure: `kubectl crossplane install configuration crossplane/getting-started-with-alibaba:v0.13`
|
||||
|
||||
### Import the database workload definition
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
apiVersion: v1
|
||||
appVersion: 0.14.0-rc.18.g99c02be
|
||||
appVersion: 0.13.0
|
||||
description: Crossplane is an open source Kubernetes add-on that extends any cluster
|
||||
with the ability to provision and manage cloud infrastructure, services, and applications
|
||||
using kubectl, GitOps, or any tool that works with the Kubernetes API.
|
||||
@@ -33,4 +33,4 @@ maintainers:
|
||||
- email: info@crossplane.io
|
||||
name: Crossplane Maintainers
|
||||
name: crossplane
|
||||
version: 0.14.0-rc.18.g99c02be
|
||||
version: 0.13.0
|
||||
|
||||
-6
@@ -9,12 +9,6 @@ metadata:
|
||||
name: compositeresourcedefinitions.apiextensions.crossplane.io
|
||||
spec:
|
||||
additionalPrinterColumns:
|
||||
- JSONPath: .status.conditions[?(@.type=='Established')].status
|
||||
name: ESTABLISHED
|
||||
type: string
|
||||
- JSONPath: .status.conditions[?(@.type=='Offered')].status
|
||||
name: OFFERED
|
||||
type: string
|
||||
- JSONPath: .metadata.creationTimestamp
|
||||
name: AGE
|
||||
type: date
|
||||
|
||||
@@ -3,4 +3,4 @@ dependencies:
|
||||
repository: https://charts.crossplane.io/alpha
|
||||
version: 0.2.2
|
||||
digest: sha256:c719dbcb1845241851f2b55ada9975b862885c1cecd5bae19e6b5339291fc81b
|
||||
generated: "2020-10-15T18:06:57.634676207Z"
|
||||
generated: "2020-10-10T01:47:45.31055709Z"
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
dependencies:
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ deploymentStrategy: RollingUpdate
|
||||
|
||||
image:
|
||||
repository: crossplane/crossplane
|
||||
tag: v0.14.0-rc.18.g99c02be
|
||||
tag: v0.13.0
|
||||
pullPolicy: Always
|
||||
|
||||
args: {}
|
||||
|
||||
@@ -1,39 +1,35 @@
|
||||
---
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
kind: WorkloadDefinition
|
||||
metadata:
|
||||
name: postgresqlinstances
|
||||
name: rds
|
||||
annotations:
|
||||
definition.oam.dev/apiVersion: "database.example.org/v1alpha1"
|
||||
definition.oam.dev/kind: "PostgreSQLInstance"
|
||||
definition.oam.dev/description: "Ali Cloud RDS resource"
|
||||
definition.oam.dev/description: "RDS on Ali Cloud"
|
||||
spec:
|
||||
definitionRef:
|
||||
name: postgresqlinstances
|
||||
extension:
|
||||
name: rds.apps
|
||||
extension:
|
||||
template: |
|
||||
output: {
|
||||
apiVersion: "database.example.org/v1alpha1"
|
||||
kind: "PostgreSQLInstance"
|
||||
metadata:
|
||||
name: "app-postgresql"
|
||||
spec: {
|
||||
apiVersion: "database.example.org/v1alpha1"
|
||||
kind: "PostgreSQLInstance"
|
||||
metadata:
|
||||
name: context.name
|
||||
spec: {
|
||||
parameters:
|
||||
storageGB: 20
|
||||
compositionSelector: {
|
||||
matchLabels:
|
||||
provider: "alibaba"
|
||||
provider: parameter.provider
|
||||
}
|
||||
writeConnectionSecretToRef:
|
||||
name: "db-conn"
|
||||
|
||||
name: parameter.secretname
|
||||
}
|
||||
}
|
||||
#rds: {
|
||||
env: [...{
|
||||
name: string
|
||||
value: string
|
||||
}]
|
||||
|
||||
parameter: {
|
||||
secretname: *"db-conn" | string
|
||||
provider: *"alibaba" | string
|
||||
}
|
||||
parameter: #rds
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user