Skip to content

Commit a240f1d

Browse files
committed
storages: provide VolumeClaimTemplates.Specs to pass k8s validation (#23)
1 parent 603067f commit a240f1d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

controller/clickhouse.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func (r *CorootReconciler) clickhouseStatefulSets(cr *corootv1.Coroot) []*appsv1
165165
Name: "data",
166166
Namespace: cr.Namespace,
167167
},
168+
Spec: r.clickhousePVCs(cr)[0].Spec,
168169
},
169170
},
170171
Template: corev1.PodTemplateSpec{

controller/clickhouse_keeper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func (r *CorootReconciler) clickhouseKeeperStatefulSet(cr *corootv1.Coroot) *app
110110
Name: "data",
111111
Namespace: cr.Namespace,
112112
},
113+
Spec: r.clickhouseKeeperPVCs(cr)[0].Spec,
113114
}},
114115
Template: corev1.PodTemplateSpec{
115116
ObjectMeta: metav1.ObjectMeta{

controller/coroot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ func (r *CorootReconciler) corootStatefulSet(cr *corootv1.Coroot, configEnvs Con
478478
Name: "data",
479479
Namespace: cr.Namespace,
480480
},
481+
Spec: r.corootPVCs(cr)[0].Spec,
481482
}},
482483
Template: corev1.PodTemplateSpec{
483484
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)