chore: update errors.go with spelling error fixes (#1340)

Signed-off-by: Casper Thygesen <cth@trifork.com>
This commit is contained in:
Casper Thygesen
2025-02-05 02:41:06 +01:00
committed by GitHub
parent 21022f35dd
commit c22044016a
2 changed files with 4 additions and 4 deletions

View File

@@ -2104,7 +2104,7 @@ spec:
uid: 1b3aa814-3b0c-4912-9bd9-112820da38fe
```
Once the `PeristentVolume` become available again, it can be referenced by any `PersistentVolumeClaim` in the `atreides` Tenant Namespace resources.
Once the `PersistentVolume` become available again, it can be referenced by any `PersistentVolumeClaim` in the `atreides` Tenant Namespace resources.
If another Tenant, like `harkonnen`, tries to use it, it will get an error:

View File

@@ -53,7 +53,7 @@ func NewMissingPVLabelsError(name string) error {
}
func (m missingPVLabelsError) Error() string {
return fmt.Sprintf("PeristentVolume %s is missing any label, please, ask the Cluster Administrator to label it", m.name)
return fmt.Sprintf("PersistentVolume %s is missing any label, please, ask the Cluster Administrator to label it", m.name)
}
type missingPVTenantLabelsError struct {
@@ -65,7 +65,7 @@ func NewMissingTenantPVLabelsError(name string) error {
}
func (m missingPVTenantLabelsError) Error() string {
return fmt.Sprintf("PeristentVolume %s is missing the Capsule Tenant label, preventing a potential cross-tenant mount", m.name)
return fmt.Sprintf("PersistentVolume %s is missing the Capsule Tenant label, preventing a potential cross-tenant mount", m.name)
}
type crossTenantPVMountError struct {
@@ -79,7 +79,7 @@ func NewCrossTenantPVMountError(name string) error {
}
func (m crossTenantPVMountError) Error() string {
return fmt.Sprintf("PeristentVolume %s cannot be used by the following Tenant, preventing a cross-tenant mount", m.name)
return fmt.Sprintf("PersistentVolume %s cannot be used by the following Tenant, preventing a cross-tenant mount", m.name)
}
type pvSelectorError struct{}