Skip to content

Commit f429eec

Browse files
committed
fixing some typos, because there's always typos
1 parent c2cbc1f commit f429eec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/controller/velero/s3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (r *ReconcileVelero) provisionS3(reqLogger logr.Logger, s3Client *awss3.S3,
6767
return reconcile.Result{}, fmt.Errorf("error occurred when creating bucket %v: %v", instance.Status.S3Bucket.Name, err.Error())
6868
}
6969
}
70-
err = s3.TagBucket(s3Client, instance.Status.S3Bucket.Name, deafultBackupStorageLocation)
70+
err = s3.TagBucket(s3Client, instance.Status.S3Bucket.Name, defaultBackupStorageLocation)
7171
if err != nil {
7272
return reconcile.Result{}, fmt.Errorf("error occurred when tagging bucket %v: %v", instance.Status.S3Bucket.Name, err.Error())
7373
}
@@ -120,7 +120,7 @@ func (r *ReconcileVelero) provisionS3(reqLogger logr.Logger, s3Client *awss3.S3,
120120

121121
// Make sure that tags are applied to buckets
122122
bucketLog.Info("Enforcing S3 Bucket tags on S3 Bucket")
123-
err = s3.TagBucket(s3Client, instance.Status.S3Bucket.Name, deafultBackupStorageLocation)
123+
err = s3.TagBucket(s3Client, instance.Status.S3Bucket.Name, defaultBackupStorageLocation)
124124
if err != nil {
125125
return reconcile.Result{}, fmt.Errorf("error occurred when tagging bucket %v: %v", instance.Status.S3Bucket.Name, err.Error())
126126
}

pkg/controller/velero/velero.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const (
2929
awsCredsSecretAccessKey = "aws_secret_access_key" // #nosec G101
3030
credentialsRequestName = "velero-iam-credentials"
3131
veleroImage = "gcr.io/heptio-images/velero:v1.0.0"
32-
deafultBackupStorageLocation = "default"
32+
defaultBackupStorageLocation = "default"
3333
)
3434

3535
func (r *ReconcileVelero) provisionVelero(reqLogger logr.Logger, namespace string, platformStatus *configv1.PlatformStatus, instance *veleroCR.Velero) (reconcile.Result, error) {
@@ -41,7 +41,7 @@ func (r *ReconcileVelero) provisionVelero(reqLogger logr.Logger, namespace strin
4141
// Install BackupStorageLocation
4242
foundBsl := &velerov1.BackupStorageLocation{}
4343
bsl := veleroInstall.BackupStorageLocation(namespace, strings.ToLower(string(platformStatus.Type)), instance.Status.S3Bucket.Name, "", locationConfig)
44-
if err = r.client.Get(context.TODO(), types.NamespacedName{Namespace: namespace, Name: deafultBackupStorageLocation}, foundBsl); err != nil {
44+
if err = r.client.Get(context.TODO(), types.NamespacedName{Namespace: namespace, Name: defaultBackupStorageLocation}, foundBsl); err != nil {
4545
if errors.IsNotFound(err) {
4646
// Didn't find BackupStorageLocation
4747
reqLogger.Info("Creating BackupStorageLocation")

0 commit comments

Comments
 (0)