Skip to content

Commit

Permalink
api: add storageclass in convertsation
Browse files Browse the repository at this point in the history
  • Loading branch information
acekingke committed Jul 21, 2023
1 parent 843d231 commit bf96928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/mysqlcluster_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func Convert_v1alpha1_MysqlClusterSpec_To_v1beta1_MysqlClusterSpec(in *v1alpha1.
out.Storage.Resources.Requests = map[corev1.ResourceName]resource.Quantity{
corev1.ResourceStorage: resource.MustParse(in.Persistence.Size),
}
out.Storage.StorageClassName = in.Persistence.StorageClass
if len(in.BackupSecretName) != 0 {
out.DataSource.S3Backup.Name = in.RestoreFrom
out.DataSource.S3Backup.SecretName = in.BackupSecretName
Expand Down

0 comments on commit bf96928

Please sign in to comment.