A Grant represents the declarative state of a PostgreSQL grant.
Type
CRD
Group
postgresql.sql.crossplane.io
Version
v1alpha1
apiVersion: postgresql.sql.crossplane.io/v1alpha1
kind: Grant
A GrantSpec defines the desired state of a Grant.
GrantParameters define the desired state of a PostgreSQL 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.
MemberOfRef references the Role that this grant makes Role a member of.
Policies for referencing.
MemberOfSelector selects a reference to a Role that this grant makes Role a member of.
Policies for selection.
Privileges to be granted. See https://www.postgresql.org/docs/current/sql-grant.html for available privileges.
RoleRef references the role object this grant is for.
Policies for referencing.
RoleSelector selects a reference to a Role 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.
Conditions of the resource.
example-grant-role-2-on-database
apiVersion: postgresql.sql.crossplane.io/v1alpha1
kind: Grant
metadata:
name: example-grant-role-2-on-database
spec:
forProvider:
databaseRef:
name: example
privileges:
- CONNECT
- TEMPORARY
roleRef:
name: example-role
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.