Skip to content

Commit

Permalink
add s3 status field (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Jun 21, 2024
1 parent 4bb8810 commit bb72cce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/operator/internal/state/configuration_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

const (
AzureStorageName = "azure"
S3StorageName = "s3"
FilesystemStorageName = "filesystem"
)

Expand Down Expand Up @@ -49,7 +50,10 @@ func getStorageField(storage *v1alpha1.Storage, instance *v1alpha1.DockerRegistr
if storage != nil {
if storage.Azure != nil {
storageName = AzureStorageName
} else if storage.S3 != nil {
storageName = S3StorageName
}

}
return fieldToUpdate{storageName, &instance.Status.Storage, "Storage type", ""}
}

0 comments on commit bb72cce

Please sign in to comment.