Database is the Schema for the Databases API. A Cloud Spanner Database which is hosted on a Spanner instance.
Type
CRD
Group
spanner.gcp.upbound.io
Version
v1beta1
apiVersion: spanner.gcp.upbound.io/v1beta1
kind: Database
DatabaseSpec defines the desired state of Database
No description provided.
An optional list of DDL statements to run inside the newly created database. Statements can create tables, indexes, etc. These statements execute atomically with the creation of the database: if there is an error in any statement, the database is not created.
Encryption configuration for the database Structure is documented below.
Reference to a Instance in spanner to populate instance.
Policies for referencing.
Selector for a Instance in spanner to populate instance.
Policies for selection.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
DatabaseStatus defines the observed state of Database.
Conditions of the resource.
database
apiVersion: spanner.gcp.upbound.io/v1beta1
kind: Database
metadata:
annotations:
meta.upbound.io/example-id: spanner/v1beta1/databaseiammember
labels:
testing.upbound.io/example-name: database
name: database
spec:
forProvider:
ddl:
- CREATE TABLE t1 (t1 INT64 NOT NULL,) PRIMARY KEY(t1)
- CREATE TABLE t2 (t2 INT64 NOT NULL,) PRIMARY KEY(t2)
deletionProtection: false
instanceSelector:
matchLabels:
testing.upbound.io/example-name: main
database
apiVersion: spanner.gcp.upbound.io/v1beta1
kind: Database
metadata:
annotations:
meta.upbound.io/example-id: spanner/v1beta1/database
labels:
testing.upbound.io/example-name: database
name: database
spec:
forProvider:
ddl:
- CREATE TABLE t1 (t1 INT64 NOT NULL,) PRIMARY KEY(t1)
- CREATE TABLE t2 (t2 INT64 NOT NULL,) PRIMARY KEY(t2)
deletionProtection: false
instanceSelector:
matchLabels:
testing.upbound.io/example-name: main
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.