@@ -54,7 +54,7 @@ const (
54
54
55
55
DefaultBasicAuthUsername = "k8s-oper"
56
56
57
- LegacyBackupRepositoryName = "legacy_local_repository "
57
+ LegacyBackupRepositoryName = "legacy_volume_repository "
58
58
)
59
59
60
60
// SolrCloudSpec defines the desired state of SolrCloud
@@ -192,8 +192,8 @@ func (spec *SolrCloudSpec) withDefaults() (changed bool) {
192
192
if spec .StorageOptions .BackupRestoreOptions != nil {
193
193
spec .BackupRepositories = append (spec .BackupRepositories , SolrBackupRepository {
194
194
Name : LegacyBackupRepositoryName ,
195
- Managed : & ManagedRepository {
196
- Volume : spec .StorageOptions .BackupRestoreOptions .Volume ,
195
+ Volume : & VolumeRepository {
196
+ Source : spec .StorageOptions .BackupRestoreOptions .Volume ,
197
197
Directory : spec .StorageOptions .BackupRestoreOptions .Directory ,
198
198
},
199
199
})
@@ -253,7 +253,7 @@ type SolrDataStorageOptions struct {
253
253
EphemeralStorage * SolrEphemeralDataStorageOptions `json:"ephemeral,omitempty"`
254
254
255
255
// 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
257
257
// TODO: Remove in v0.6.0
258
258
// +optional
259
259
BackupRestoreOptions * SolrBackupRestoreOptions `json:"backupRestoreOptions,omitempty"`
@@ -362,19 +362,19 @@ type SolrEphemeralDataStorageOptions struct {
362
362
EmptyDir * corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"`
363
363
}
364
364
365
- // Deprecated: Use a SolrBackupRepository with a ManagedRepository instead
365
+ // Deprecated: Use a SolrBackupRepository with a VolumeRepository instead
366
366
type SolrBackupRestoreOptions struct {
367
367
// This is a volumeSource for a volume that will be mounted to all solrNodes to store backups and load restores.
368
368
// The data within the volume will be namespaces for this instance, so feel free to use the same volume for multiple clouds.
369
369
// Since the volume will be mounted to all solrNodes, it must be able to be written from multiple pods.
370
370
// If a PVC reference is given, the PVC must have `accessModes: - ReadWriteMany`.
371
371
// Other options are to use a NFS volume.
372
- // Deprecated: Create an explicit 'managedRepositories ' entry instead.
372
+ // Deprecated: Create an explicit 'backupRepositories ' entry instead.
373
373
Volume corev1.VolumeSource `json:"volume"`
374
374
375
375
// Select a custom directory name to mount the backup/restore data from the given volume.
376
376
// 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.
378
378
// +optional
379
379
Directory string `json:"directory,omitempty"`
380
380
}
@@ -402,7 +402,7 @@ type SolrBackupRepository struct {
402
402
// Repositories defined here are considered "managed" and can take advantage of special operator features, such as
403
403
// post-backup compression.
404
404
//+optional
405
- Managed * ManagedRepository `json:"managed ,omitempty"`
405
+ Volume * VolumeRepository `json:"volume ,omitempty"`
406
406
}
407
407
408
408
type GcsRepository struct {
@@ -465,15 +465,15 @@ type S3Credentials struct {
465
465
CredentialsFileSecret * corev1.SecretKeySelector `json:"credentialsFileSecret,omitempty"`
466
466
}
467
467
468
- type ManagedRepository struct {
468
+ type VolumeRepository struct {
469
469
// This is a volumeSource for a volume that will be mounted to all solrNodes to store backups and load restores.
470
470
// The data within the volume will be namespaced for this instance, so feel free to use the same volume for multiple clouds.
471
471
// Since the volume will be mounted to all solrNodes, it must be able to be written from multiple pods.
472
472
// If a PVC reference is given, the PVC must have `accessModes: - ReadWriteMany`.
473
473
// Other options are to use a NFS volume.
474
- Volume corev1.VolumeSource `json:"volume "`
474
+ Source corev1.VolumeSource `json:"source "`
475
475
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.
477
477
// If not specified, then the name of the solrcloud will be used by default.
478
478
// +optional
479
479
Directory string `json:"directory,omitempty"`
0 commit comments