add versioning field for components (#906)

This commit is contained in:
Yaron Schneider 2020-11-12 10:16:26 -08:00 committed by GitHub
parent 17746373b1
commit 3509967baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
83 changed files with 109 additions and 0 deletions

View File

@ -31,6 +31,7 @@ metadata:
namespace: default
spec:
type: bindings.kafka
version: v1
metadata:
- name: brokers
value: localhost:9092

View File

@ -39,6 +39,7 @@ metadata:
namespace: default
spec:
type: bindings.kafka
version: v1
metadata:
- name: topics
value: topic1

View File

@ -56,6 +56,7 @@ metadata:
namespace: default
spec:
type: exporters.zipkin
version: v1
metadata:
- name: enabled
value: "true"

View File

@ -31,6 +31,7 @@ metadata:
name: pubsub
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: localhost:6379
@ -52,6 +53,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: localhost:6379

View File

@ -51,6 +51,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: "localhost:6379"
@ -97,6 +98,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: "localhost:6379"
@ -121,6 +123,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: "localhost:6379"

View File

@ -70,6 +70,7 @@ metadata:
name: autoscaling-pubsub
spec:
type: pubsub.kafka
version: v1
metadata:
- name: brokers
value: kafka-cp-kafka.kafka.svc.cluster.local:9092

View File

@ -18,6 +18,7 @@ metadata:
namespace: default
spec:
type: middleware.http.opa
version: v1
metadata:
# `includedHeaders` is a comma-seperated set of case-insensitive headers to include in the request input.
# Request headers are not passed to the policy by default. Include to recieve incoming request headers in

View File

@ -133,6 +133,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: <HOST e.g. redis-master.default.svc.cluster.local:6379>
@ -154,6 +155,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: <HOST e.g. redis-master.default.svc.cluster.local:6379>
@ -175,6 +177,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: <HOST>
@ -194,6 +197,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: <HOST>

View File

@ -23,6 +23,7 @@ metadata:
namespace: production
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: redis-master:6379
@ -71,6 +72,7 @@ metadata:
namespace: production
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: redis-master:6379

View File

@ -61,6 +61,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: localhost:6379
@ -78,6 +79,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: localhost:6379
@ -111,6 +113,7 @@ metadata:
namespace: default
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString
secretKeyRef:

View File

@ -16,6 +16,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.apns
version: v1
metadata:
- name: development
value: <true | false>

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.azure.blobstorage
version: v1
metadata:
- name: storageAccount
value: myStorageAccountName

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.azure.cosmosdb
version: v1
metadata:
- name: url
value: https://******.documents.azure.com:443/

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.cron
version: v1
metadata:
- name: schedule
value: "@every 15m" # valid cron schedule

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.aws.dynamodb
version: v1
metadata:
- name: region
value: us-west-2

View File

@ -16,6 +16,7 @@ metadata:
name: <name>
spec:
type: bindings.azure.eventgrid
version: v1
metadata:
# Required Input Binding Metadata
- name: tenantId

View File

@ -17,6 +17,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.azure.eventhubs
version: v1
metadata:
- name: connectionString # Azure EventHubs connection string
value: "Endpoint=sb://****"

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.gcp.bucket
version: v1
metadata:
- name: bucket
value: mybucket

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.gcp.pubsub
version: v1
metadata:
- name: topic
value: topic1

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.http
version: v1
metadata:
- name: url
value: http://something.com

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.influx
version: v1
metadata:
- name: url # Required
value: <INFLUX-DB-URL>

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.kafka
version: v1
metadata:
- name: topics # Optional. in use for input bindings
value: topic1,topic2

View File

@ -17,6 +17,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.aws.kinesis
version: v1
metadata:
- name: region
value: AWS_REGION #replace

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.kubernetes
version: v1
metadata:
- name: namespace
value: <NAMESPACE>

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.mqtt
version: v1
metadata:
- name: url
value: mqtt[s]://[username][:password]@host.domain[:port]

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.postgres
version: v1
metadata:
- name: url # Required
value: <CONNECTION_STRING>

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.rabbitmq
version: v1
metadata:
- name: queueName
value: queue1

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.redis
version: v1
metadata:
- name: redisHost
value: <address>:6379

View File

@ -23,6 +23,7 @@ metadata:
name: changes
spec:
type: bindings.rethinkdb.statechange
version: v1
metadata:
- name: address
value: <REPLACE-RETHINKDB-ADDRESS> # Required, e.g. 127.0.0.1:28015 or rethinkdb.default.svc.cluster.local:28015).

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.aws.s3
version: v1
metadata:
- name: region
value: us-west-2

View File

@ -15,6 +15,7 @@ metadata:
namespace: default
spec:
type: bindings.twilio.sendgrid
version: v1
metadata:
- name: emailFrom
value: "testapp@dapr.io" # optional

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.azure.servicebusqueues
version: v1
metadata:
- name: connectionString
value: "sb://************"

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.azure.signalr
version: v1
metadata:
- name: connectionString
value: Endpoint=https://<your-azure-signalr>.service.signalr.net;AccessKey=<your-access-key>;Version=1.0;

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.aws.sns
version: v1
metadata:
- name: region
value: us-west-2

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.aws.sqs
version: v1
metadata:
- name: region
value: us-west-2

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.azure.storagequeues
version: v1
metadata:
- name: storageAccount
value: "account1"

View File

@ -15,6 +15,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.twilio.sms
version: v1
metadata:
- name: toNumber # required.
value: 111-111-1111

View File

@ -17,6 +17,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.twitter
version: v1
metadata:
- name: consumerKey
value: "****" # twitter api consumer key, required

View File

@ -46,6 +46,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: "redisHost"
value: "redis-master.namespace-a.svc:6379"

View File

@ -21,6 +21,7 @@ metadata:
namespace: default
spec:
type: pubsub.<NAME>
version: v1
metadata:
- name: <KEY>
value: <VALUE>

View File

@ -33,6 +33,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.kafka
version: v1
metadata:
# Kafka broker connection setting
- name: brokers

View File

@ -24,6 +24,7 @@ metadata:
name: messagebus
spec:
type: pubsub.snssqs
version: v1
metadata:
- name: awsEndpoint
value: http://localhost:4566
@ -101,6 +102,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.snssqs
version: v1
metadata:
# ID of the AWS account with appropriate permissions to SNS and SQS
- name: awsAccountID

View File

@ -24,6 +24,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.azure.eventhubs
version: v1
metadata:
- name: connectionString
value: <REPLACE-WITH-CONNECTION-STRING> # Required. "Endpoint=sb://****"

View File

@ -23,6 +23,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.azure.servicebus
version: v1
metadata:
- name: connectionString
value: <REPLACE-WITH-CONNECTION-STRING> # Required.

View File

@ -23,6 +23,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.gcp.pubsub
version: v1
metadata:
- name: topic
value: <TOPIC_NAME>

View File

@ -39,6 +39,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.hazelcast
version: v1
metadata:
- name: hazelcastServers
value: <REPLACE-WITH-HOSTS> # Required. A comma delimited string of servers. Example: "hazelcast:3000,hazelcast2:3000"

View File

@ -89,6 +89,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.mqtt
version: v1
metadata:
- name: url
value: "tcp://[username][:password]@host.domain[:port]"

View File

@ -54,6 +54,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.natsstreaming
version: v1
metadata:
- name: natsURL
value: <REPLACE-WITH-NATS-SERVER-ADDRESS> # Required. example nats://localhost:4222

View File

@ -42,6 +42,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.pulsar
version: v1
metadata:
- name: host
value: <REPLACE WITH PULSAR URL> #default is localhost:6650

View File

@ -52,6 +52,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: pubsub.rabbitmq
version: v1
metadata:
- name: host
value: <REPLACE-WITH-HOST> # Required. Example: "amqp://rabbitmq.default.svc.cluster.local:5672", "amqp://localhost:5672"

View File

@ -78,6 +78,7 @@ metadata:
namespace: default
spec:
type: pubsub.redis
version: v1
metadata:
- name: redisHost
value: <HOST>

View File

@ -21,6 +21,7 @@ metadata:
namespace: default
spec:
type: secretstores.<NAME>
version: v1
metadata:
- name: <KEY>
value: <VALUE>

View File

@ -19,6 +19,7 @@ metadata:
namespace: default
spec:
type: secretstores.aws.secretmanager
version: v1
metadata:
- name: region
value: [aws_region] # Required.
@ -47,6 +48,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: "[redis]:6379"

View File

@ -134,6 +134,7 @@ In Kubernetes mode, you store the certificate for the service principal into the
namespace: default
spec:
type: secretstores.azure.keyvault
version: v1
metadata:
- name: vaultName
value: [your_keyvault_name]

View File

@ -102,6 +102,7 @@ Azure Managed Identity can be used for Azure Key Vault access on Kubernetes. Ins
namespace: default
spec:
type: secretstores.azure.keyvault
version: v1
metadata:
- name: vaultName
value: [your_keyvault_name]
@ -140,6 +141,7 @@ metadata:
namespace: default
spec:
type: secretstores.azure.keyvault
version: v1
metadata:
- name: vaultName
value: [your_keyvault_name]

View File

@ -24,6 +24,7 @@ metadata:
namespace: default
spec:
type: secretstores.local.env
version: v1
metadata:
```

View File

@ -32,6 +32,7 @@ metadata:
namespace: default
spec:
type: secretstores.local.file
version: v1
metadata:
- name: secretsFile
value: [path to the JSON file]

View File

@ -21,6 +21,7 @@ metadata:
namespace: default
spec:
type: secretstores.gcp.secretmanager
version: v1
metadata:
- name: type
value: service_account
@ -80,6 +81,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: "[redis]:6379"

View File

@ -30,6 +30,7 @@ metadata:
namespace: default
spec:
type: secretstores.hashicorp.vault
version: v1
metadata:
- name: vaultAddr
value: [vault_address] # Optional. Default: "https://127.0.0.1:8200"
@ -78,6 +79,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: "[redis]:6379"

View File

@ -20,6 +20,7 @@ metadata:
namespace: default
spec:
type: state.<DATABASE>
version: v1
metadata:
- name: <KEY>
value: <VALUE>

View File

@ -51,6 +51,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.Aerospike
version: v1
metadata:
- name: hosts
value: <REPLACE-WITH-HOSTS> # Required. A comma delimited string of hosts. Example: "aerospike:3000,aerospike2:3000"

View File

@ -30,6 +30,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.azure.blobstorage
version: v1
metadata:
- name: accountName
value: <REPLACE-WITH-ACCOUNT-NAME>
@ -55,6 +56,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.azure.blobstorage
version: v1
metadata:
- name: accountName
value: <REPLACE-WITH-ACCOUNT-NAME>

View File

@ -31,6 +31,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.azure.cosmosdb
version: v1
metadata:
- name: url
value: <REPLACE-WITH-URL>
@ -57,6 +58,7 @@ metadata:
name: statestore
spec:
type: state.azure.cosmosdb
version: v1
metadata:
- name: url
value: https://accountname.documents.azure.com:443
@ -77,6 +79,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.azure.cosmosdb
version: v1
metadata:
- name: url
value: <REPLACE-WITH-URL>

View File

@ -30,6 +30,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.azure.tablestorage
version: v1
metadata:
- name: accountName
value: <REPLACE-WITH-ACCOUNT-NAME>
@ -55,6 +56,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.azure.tablestorage
version: v1
metadata:
- name: accountName
value: <REPLACE-WITH-ACCOUNT-NAME>

View File

@ -51,6 +51,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.cassandra
version: v1
metadata:
- name: hosts
value: <REPLACE-WITH-COMMA-DELIMITED-HOSTS> # Required. Example: cassandra.cassandra.svc.cluster.local
@ -86,6 +87,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.cassandra
version: v1
metadata:
- name: hosts
value: <REPLACE-WITH-HOSTS>

View File

@ -36,6 +36,7 @@ metadata:
namespace: default
spec:
type: state.cloudstate
version: v1
metadata:
- name: host
value: "localhost:8013"

View File

@ -50,6 +50,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.consul
version: v1
metadata:
- name: datacenter
value: <REPLACE-WITH-DATA-CENTER> # Required. Example: dc1
@ -79,6 +80,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.consul
version: v1
metadata:
- name: datacenter
value: <REPLACE-WITH-DATACENTER>

View File

@ -45,6 +45,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.couchbase
version: v1
metadata:
- name: couchbaseURL
value: <REPLACE-WITH-URL> # Required. Example: "http://localhost:8091"

View File

@ -51,6 +51,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.etcd
version: v1
metadata:
- name: endpoints
value: <REPLACE-WITH-COMMA-DELIMITED-ENDPOINTS> # Required. Example: "etcd-etcd.default.svc.cluster.local:2379"

View File

@ -35,6 +35,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.gcp.firestore
version: v1
metadata:
- name: type
value: <REPLACE-WITH-CREDENTIALS-TYPE> # Required. Example: "serviceaccount"

View File

@ -39,6 +39,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.hazelcast
version: v1
metadata:
- name: hazelcastServers
value: <REPLACE-WITH-HOSTS> # Required. A comma delimited string of servers. Example: "hazelcast:3000,hazelcast2:3000"

View File

@ -50,6 +50,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.memcached
version: v1
metadata:
- name: hosts
value: <REPLACE-WITH-COMMA-DELIMITED-ENDPOINTS> # Required. Example: "memcached.default.svc.cluster.local:11211"

View File

@ -54,6 +54,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.mongodb
version: v1
metadata:
- name: host
value: <REPLACE-WITH-HOST> # Required. Example: "mongo-mongodb.default.svc.cluster.local:27017"
@ -89,6 +90,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.mondodb
version: v1
metadata:
- name: host
value: <REPLACE-WITH-HOST>

View File

@ -39,6 +39,7 @@ metadata:
name: statestore
spec:
type: state.postgresql
version: v1
metadata:
- name: connectionString
value: "<CONNECTION STRING>"

View File

@ -85,6 +85,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: <HOST>

View File

@ -33,6 +33,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.rethinkdb
version: v1
metadata:
- name: address
value: <REPLACE-RETHINKDB-ADDRESS> # Required, e.g. 127.0.0.1:28015 or rethinkdb.default.svc.cluster.local:28015).

View File

@ -41,6 +41,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.sqlserver
version: v1
metadata:
- name: connectionString
value: <REPLACE-WITH-CONNECTION-STRING>
@ -64,6 +65,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.sqlserver
version: v1
metadata:
- name: connectionString
secretKeyRef:

View File

@ -51,6 +51,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.zookeeper
version: v1
metadata:
- name: servers
value: <REPLACE-WITH-COMMA-DELIMITED-SERVERS> # Required. Example: "zookeeper.default.svc.cluster.local:2181"

View File

@ -23,6 +23,7 @@ metadata:
namespace: default
spec:
type: exporters.zipkin
version: v1
metadata:
- name: enabled
value: "true"
@ -90,6 +91,7 @@ metadata:
namespace: default
spec:
type: exporters.zipkin
version: v1
metadata:
- name: enabled
value: "true"

View File

@ -55,6 +55,7 @@ metadata:
namespace: default
spec:
type: middleware.http.oauth2
version: v1
metadata:
- name: clientId
value: "<your client ID>"
@ -101,6 +102,7 @@ metadata:
name: myComponent
spec:
type: middleware.http.oauth2clientcredentials
version: v1
metadata:
- name: clientId
value: "<your client ID>"

View File

@ -23,6 +23,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: bindings.<TYPE>
version: v1
metadata:
- name: <NAME>
value: <VALUE>
@ -58,6 +59,7 @@ metadata:
namespace: default
spec:
type: bindings.kafka
version: v1
metadata:
- name: brokers
value: "http://localhost:5050"

View File

@ -18,6 +18,7 @@ metadata:
namespace: <NAMESPACE>
spec:
type: state.<TYPE>
version: v1
metadata:
- name:<KEY>
value:<VALUE>
@ -387,6 +388,7 @@ metadata:
namespace: default
spec:
type: state.redis
version: v1
metadata:
- name: redisHost
value: <redis host>

View File

@ -14,6 +14,7 @@ metadata:
namespace: default
spec:
type: exporters.native
version: v1
metadata:
- name: enabled
value: "true"