@@ -54,7 +54,7 @@ const (
5454
5555 DefaultBasicAuthUsername = "k8s-oper"
5656
57- LegacyBackupRepositoryName = "legacy_local_repository "
57+ LegacyBackupRepositoryName = "legacy_volume_repository "
5858)
5959
6060// SolrCloudSpec defines the desired state of SolrCloud
@@ -192,8 +192,8 @@ func (spec *SolrCloudSpec) withDefaults() (changed bool) {
192192 if spec .StorageOptions .BackupRestoreOptions != nil {
193193 spec .BackupRepositories = append (spec .BackupRepositories , SolrBackupRepository {
194194 Name : LegacyBackupRepositoryName ,
195- Managed : & ManagedRepository {
196- Volume : spec .StorageOptions .BackupRestoreOptions .Volume ,
195+ Volume : & VolumeRepository {
196+ Source : spec .StorageOptions .BackupRestoreOptions .Volume ,
197197 Directory : spec .StorageOptions .BackupRestoreOptions .Directory ,
198198 },
199199 })
@@ -253,7 +253,7 @@ type SolrDataStorageOptions struct {
253253 EphemeralStorage * SolrEphemeralDataStorageOptions `json:"ephemeral,omitempty"`
254254
255255 // Options required for backups to be enabled for this solrCloud.
256- // Deprecated: Use a SolrBackupRepository with a ManagedRepository instead
256+ // Deprecated: Use a SolrBackupRepository with a VolumeRepository instead
257257 // TODO: Remove in v0.6.0
258258 // +optional
259259 BackupRestoreOptions * SolrBackupRestoreOptions `json:"backupRestoreOptions,omitempty"`
@@ -362,19 +362,19 @@ type SolrEphemeralDataStorageOptions struct {
362362 EmptyDir * corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"`
363363}
364364
365- // Deprecated: Use a SolrBackupRepository with a ManagedRepository instead
365+ // Deprecated: Use a SolrBackupRepository with a VolumeRepository instead
366366type SolrBackupRestoreOptions struct {
367367 // This is a volumeSource for a volume that will be mounted to all solrNodes to store backups and load restores.
368368 // The data within the volume will be namespaces for this instance, so feel free to use the same volume for multiple clouds.
369369 // Since the volume will be mounted to all solrNodes, it must be able to be written from multiple pods.
370370 // If a PVC reference is given, the PVC must have `accessModes: - ReadWriteMany`.
371371 // Other options are to use a NFS volume.
372- // Deprecated: Create an explicit 'managedRepositories ' entry instead.
372+ // Deprecated: Create an explicit 'backupRepositories ' entry instead.
373373 Volume corev1.VolumeSource `json:"volume"`
374374
375375 // Select a custom directory name to mount the backup/restore data from the given volume.
376376 // If not specified, then the name of the solrcloud will be used by default.
377- // Deprecated: Create an explicit 'managedRepositories ' entry instead.
377+ // Deprecated: Create an explicit 'backupRepositories ' entry instead.
378378 // +optional
379379 Directory string `json:"directory,omitempty"`
380380}
@@ -402,7 +402,7 @@ type SolrBackupRepository struct {
402402 // Repositories defined here are considered "managed" and can take advantage of special operator features, such as
403403 // post-backup compression.
404404 //+optional
405- Managed * ManagedRepository `json:"managed ,omitempty"`
405+ Volume * VolumeRepository `json:"volume ,omitempty"`
406406}
407407
408408type GcsRepository struct {
@@ -465,15 +465,15 @@ type S3Credentials struct {
465465 CredentialsFileSecret * corev1.SecretKeySelector `json:"credentialsFileSecret,omitempty"`
466466}
467467
468- type ManagedRepository struct {
468+ type VolumeRepository struct {
469469 // This is a volumeSource for a volume that will be mounted to all solrNodes to store backups and load restores.
470470 // The data within the volume will be namespaced for this instance, so feel free to use the same volume for multiple clouds.
471471 // Since the volume will be mounted to all solrNodes, it must be able to be written from multiple pods.
472472 // If a PVC reference is given, the PVC must have `accessModes: - ReadWriteMany`.
473473 // Other options are to use a NFS volume.
474- Volume corev1.VolumeSource `json:"volume "`
474+ Source corev1.VolumeSource `json:"source "`
475475
476- // Select a custom directory name to mount the backup/restore data from the given volume.
476+ // Select a custom directory name to mount the backup/restore data in the given volume.
477477 // If not specified, then the name of the solrcloud will be used by default.
478478 // +optional
479479 Directory string `json:"directory,omitempty"`
0 commit comments