Skip to content

Commit

Permalink
refactor: correct go fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Feb 7, 2025
1 parent ef97650 commit 309bb06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (c *external) Observe(ctx context.Context, mg resource.Managed) (managed.Ex

cr.SetConditions(xpv1.Available())

expected, err := qosapi.ToCloudianQos(cr.Spec.ForProvider.Warning, cr.Spec.ForProvider.Hard)
expected, err := qosapi.ToCloudianQOS(cr.Spec.ForProvider.Warning, cr.Spec.ForProvider.Hard)
if err != nil {
return managed.ExternalObservation{}, err
}
Expand Down Expand Up @@ -195,7 +195,7 @@ func (c *external) Create(ctx context.Context, mg resource.Managed) (managed.Ext
return managed.ExternalCreation{}, errors.New(errNotGroupQualityOfServiceLimits)
}

qos, err := qosapi.ToCloudianQos(cr.Spec.ForProvider.Warning, cr.Spec.ForProvider.Hard)
qos, err := qosapi.ToCloudianQOS(cr.Spec.ForProvider.Warning, cr.Spec.ForProvider.Hard)
if err != nil {
return managed.ExternalCreation{}, err
}
Expand All @@ -221,7 +221,7 @@ func (c *external) Update(ctx context.Context, mg resource.Managed) (managed.Ext
return managed.ExternalUpdate{}, errors.New(errNotGroupQualityOfServiceLimits)
}

qos, err := qosapi.ToCloudianQos(cr.Spec.ForProvider.Warning, cr.Spec.ForProvider.Hard)
qos, err := qosapi.ToCloudianQOS(cr.Spec.ForProvider.Warning, cr.Spec.ForProvider.Hard)
if err != nil {
return managed.ExternalUpdate{}, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"k8s.io/utils/ptr"
)

func ToCloudianQos(warning *v1alpha1.QualityOfServiceLimits, hard *v1alpha1.QualityOfServiceLimits) (cloudian.QualityOfService, error) {
func ToCloudianQOS(warning *v1alpha1.QualityOfServiceLimits, hard *v1alpha1.QualityOfServiceLimits) (cloudian.QualityOfService, error) {
var err error
qos := cloudian.QualityOfService{}

Expand Down

0 comments on commit 309bb06

Please sign in to comment.