Skip to content

Commit

Permalink
chore: add CRD examples for OLM build
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriele Quaresima <[email protected]>
  • Loading branch information
gabriele-wolfox committed Oct 10, 2024
1 parent a435207 commit a0e8f4c
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ spec:
specDescriptors:
- path: databaseReclaimPolicy
displayName: Database reclaim policy
description: Database reclame policy
description: Database reclaim policy
- path: cluster
displayName: Cluster requested to create the database
description: Cluster requested to create the database
Expand All @@ -696,3 +696,50 @@ spec:
- path: owner
displayName: Database Owner
description: Database Owner
- kind: Publication
name: publications.postgresql.cnpg.io
displayName: Publication
description: Declarative publication
version: v1
resources:
- kind: Cluster
name: ''
version: v1
specDescriptors:
- path: name
displayName: Publication name
description: Publication name
- path: dbname
displayName: Database name
description: Database name
- path: cluster
displayName: Cluster requested to create the publication
description: Cluster requested to create the publication
- path: target
displayName: Publication target
description: Publication target
- kind: Subscription
name: subscriptions.postgresql.cnpg.io
displayName: Subscription
description: Declarative subscription
version: v1
resources:
- kind: Cluster
name: ''
version: v1
specDescriptors:
- path: name
displayName: Subscription name
description: Subscription name
- path: dbname
displayName: Database name
description: Database name
- path: publicationName
displayName: Publication name
description: Publication name
- path: cluster
displayName: Cluster requested to create the subscription
description: Cluster requested to create the subscription
- path: externalClusterName
displayName: Name of the external cluster with publication
description: Name of the external cluster with publication
2 changes: 2 additions & 0 deletions config/olm-samples/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ resources:
- postgresql_v1_imagecatalog.yaml
- postgresql_v1_clusterimagecatalog.yaml
- postgresql_v1_database.yaml
- postgresql_v1_publication.yaml
- postgresql_v1_subscription.yaml
11 changes: 11 additions & 0 deletions config/olm-samples/postgresql_v1_publication.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: postgresql.cnpg.io/v1
kind: Publication
metadata:
name: publication-sample
spec:
name: pub
dbname: app
cluster:
name: cluster-example
target:
allTables: {}
11 changes: 11 additions & 0 deletions config/olm-samples/postgresql_v1_subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: postgresql.cnpg.io/v1
kind: Subscription
metadata:
name: subscription-sample
spec:
name: sub
dbname: app
publicationName: pub
cluster:
name: cluster-example-dest
externalClusterName: cluster-example

0 comments on commit a0e8f4c

Please sign in to comment.