You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom resource namespace. Default value will be current custom resource namespace.
String
false
PostgresqlPublicationStatus
Field
Description
Scheme
Required
phase
Current phase of the operator
String
true
message
Human-readable message indicating details about current operator phase or error
String
false
ready
True if all resources are in a ready state and all work is done by operator
Boolean
false
name
Publication created name
String
false
allTables
Flag to save if publication was created for all tables
*Boolean
false
hash
Resource spec hash for internal needs
String
false
Example
Here is an example of Custom Resource:
apiVersion: postgresql.easymile.com/v1alpha1kind: PostgresqlPublicationmetadata:
name: fullspec:
# Database custom resource referencedatabase:
name: postgresqldatabase-sample# Publication name in PostgreSQLname: my-publication# Drop on deletedropOnDelete: false# Enable publication for all tables in databaseallTables: false# Tables in schema to select for publicationtablesInSchema:
[]# - table1# - table2# Table selection for publicationtables:
- # Table nametableName: table1# Columns to select (Empty array will select all of them)columns:
- id
- created_at# - updated_at
- number1# WHERE clause on selected tableadditionalWhere: number1 > 5# Publication with parameterswithParameters:
# Publish param# See here: https://www.postgresql.org/docs/current/sql-createpublication.html#SQL-CREATEPUBLICATION-PARAMS-WITH-PUBLISH# publish: 'TRUNCATE'# Publish via partition root param# See here: https://www.postgresql.org/docs/current/sql-createpublication.html#SQL-CREATEPUBLICATION-PARAMS-WITH-PUBLISHpublishViaPartitionRoot: false