Skip to content

Commit

Permalink
hot-fix change var for postgres clusterkind
Browse files Browse the repository at this point in the history
  • Loading branch information
tengu-alt authored and ribaraka committed Sep 20, 2023
1 parent 80dba79 commit 88ad6c2
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 2 deletions.
7 changes: 7 additions & 0 deletions config/crd/bases/clusters.instaclustr.com_cassandras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,16 @@ spec:
type: string
vpcId:
type: string
required:
- network
- vpcId
type: object
restoreMode:
type: string
required:
- cdcId
- customVpcSettings
- restoreMode
type: object
type: array
clusterID:
Expand Down
7 changes: 7 additions & 0 deletions config/crd/bases/clusters.instaclustr.com_opensearches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,16 @@ spec:
type: string
vpcId:
type: string
required:
- network
- vpcId
type: object
restoreMode:
type: string
required:
- cdcId
- customVpcSettings
- restoreMode
type: object
type: array
clusterId:
Expand Down
7 changes: 7 additions & 0 deletions config/crd/bases/clusters.instaclustr.com_postgresqls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,16 @@ spec:
type: string
vpcId:
type: string
required:
- network
- vpcId
type: object
restoreMode:
type: string
required:
- cdcId
- customVpcSettings
- restoreMode
type: object
type: array
clusterId:
Expand Down
7 changes: 7 additions & 0 deletions config/crd/bases/clusters.instaclustr.com_redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,16 @@ spec:
type: string
vpcId:
type: string
required:
- network
- vpcId
type: object
restoreMode:
type: string
required:
- cdcId
- customVpcSettings
- restoreMode
type: object
type: array
clusterId:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/clusterresources_v1beta1_clusterbackup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: clusterbackup-sample
spec:
clusterId: 2ae611cf-ac91-4325-941c-a35c043f9c34
clusterKind: PostgreSQl
clusterKind: PostgreSQL
2 changes: 1 addition & 1 deletion controllers/clusterresources/clusterbackup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (r *ClusterBackupReconciler) Reconcile(ctx context.Context, req ctrl.Reques
}

clusterKind := models.ClusterKindsMap[backup.Spec.ClusterKind]
if backup.Spec.ClusterKind == models.DefaultPgDbNameValue {
if backup.Spec.ClusterKind == models.PgClusterKind {
clusterKind = models.PgAppKind
}

Expand Down

0 comments on commit 88ad6c2

Please sign in to comment.