Skip to content

Commit

Permalink
Update manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrastegarnia committed Apr 27, 2020
1 parent 7c97b02 commit 0696d7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions deploy/raft-storage-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,25 @@ spec:
default: 1
volumeClaimTemplates:
type: object
default: {}
required:
- data
properties:
data:
type: object
default: {}
required:
- metadata
- spec
properties:
metadata:
type: object
default: {}
required:
- name
properties:
name:
type: string
default: ''
spec:
type: object
default: {}
required:
- accessModes
- storageClassName
- resources
properties:
accessModes:
type: array
Expand All @@ -79,14 +71,10 @@ spec:
resources:
type: object
default: {}
required:
- requests
properties:
requests:
type: object
default: {}
required:
- storage
properties:
storage:
type: string
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (r *Reconciler) addStatefulSet(database *v1beta3.Database, storage *v1beta1
}

volumeMounts = append(volumeMounts, configVolumeMount)
if storage.Spec.VolumeClaimTemplates.Data.Name == "" {
if storage.Spec.VolumeClaimTemplates.Data == nil {
dataVolumeMount := corev1.VolumeMount{
Name: dataVolume,
MountPath: dataPath,
Expand Down

0 comments on commit 0696d7b

Please sign in to comment.