Skip to content

Commit

Permalink
Use the same name for the cluster.
Browse files Browse the repository at this point in the history
Use the `cluster` prefix when naming a cluster.

Co-authored-by: Florin Irion <florin.irion@2ndquadrant.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@2ndquadrant.it>
  • Loading branch information
2 people authored and gbartolini committed Mar 11, 2020
1 parent 140bc3b commit 441fa51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions docs/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ You can verify that with:
kubectl get deploy -n postgresql-operator-system postgresql-operator-controller-manager
```


## Part 3 - Deploy a PostgreSQL cluster

As with any other deployment in Kubernetes, in order to deploy a PostgreSQL cluster
Expand All @@ -98,7 +97,7 @@ defines a simple `Cluster` with an `emptyDir` local volume:
apiVersion: postgresql.k8s.2ndq.io/v1alpha1
kind: Cluster
metadata:
name: postgresql-emptydir
name: cluster-emptydir
spec:
instances: 3

Expand Down Expand Up @@ -151,4 +150,3 @@ You can check that the pods are being created with the `get pods` command:
```sh
kubectl get pods
```

2 changes: 1 addition & 1 deletion docs/src/samples/cluster-emptydir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: postgresql.k8s.2ndq.io/v1alpha1
kind: Cluster
metadata:
name: postgresql-emptydir
name: cluster-emptydir
spec:
instances: 3

Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var _ = Describe("Cluster", func() {
Context("Cluster setup using emptydir", func() {
const namespace = "pg-emptydir-e2e"
const sampleFile = samplesDir + "/cluster-emptydir.yaml"
const clusterName = "postgresql-emptydir"
const clusterName = "cluster-emptydir"
BeforeEach(func() {
if err := env.CreateNamespace(namespace); err != nil {
Fail(fmt.Sprintf("Unable to create %v namespace", namespace))
Expand Down Expand Up @@ -203,7 +203,7 @@ var _ = Describe("Cluster", func() {
Context("Failover", func() {
const namespace = "failover-e2e"
const sampleFile = samplesDir + "/cluster-emptydir.yaml"
const clusterName = "postgresql-emptydir"
const clusterName = "cluster-emptydir"
var pods []string
var currentPrimary, targetPrimary, pausedReplica string
BeforeEach(func() {
Expand Down Expand Up @@ -363,7 +363,7 @@ var _ = Describe("Cluster", func() {
Context("Switchover", func() {
const namespace = "switchover-e2e"
const sampleFile = samplesDir + "/cluster-emptydir.yaml"
const clusterName = "postgresql-emptydir"
const clusterName = "cluster-emptydir"
var pods []string
var oldPrimary, targetPrimary string
BeforeEach(func() {
Expand Down

0 comments on commit 441fa51

Please sign in to comment.