A Grant represents the declarative state of a MySQL grant.
Type
CRD
Group
mysql.sql.crossplane.io
Version
v1alpha1
apiVersion: mysql.sql.crossplane.io/v1alpha1
kind: Grant
A GrantSpec defines the desired state of a Grant.
GrantParameters define the desired state of a MySQL grant instance.
DatabaseRef references the database object this grant it for.
Policies for referencing.
DatabaseSelector selects a reference to a Database this grant is for.
Policies for selection.
Privileges to be granted. See https://mariadb.com/kb/en/grant/#database-privileges for available privileges.
UserRef references the user object this grant is for.
Policies for referencing.
UserSelector selects a reference to a User this grant is for.
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.
A GrantStatus represents the observed state of a Grant.
A GrantObservation represents the observed state of a MySQL grant.
Privileges represents the applied privileges
Conditions of the resource.
example-grant-table
apiVersion: mysql.sql.crossplane.io/v1alpha1
kind: Grant
metadata:
name: example-grant-table
spec:
forProvider:
databaseRef:
name: example-db
privileges:
- DROP
- INSERT
- SELECT
table: example-table
userRef:
name: example-user
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.