Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks committed Sep 13, 2024
1 parent 8e5a334 commit 321519e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func Unmarshal(s string) (map[string]interface{}, error) {
return result, nil
}


func ToReconcilerOrDie[R controller.Reconciler](in controller.Reconciler) R {
out, ok := in.(R)
// If cast fails panic. It means that the calling code is bad and has to be changed.
Expand Down
6 changes: 3 additions & 3 deletions pkg/common/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import (
"sigs.k8s.io/cli-utils/pkg/apply/event"
"sigs.k8s.io/cli-utils/pkg/kstatus/status"

schema2 "github.com/pluralsh/deployment-operator/internal/kubernetes/schema"
internalschema "github.com/pluralsh/deployment-operator/internal/kubernetes/schema"
dlog "github.com/pluralsh/deployment-operator/pkg/log"
)

func StatusEventToComponentAttributes(e event.StatusEvent, vcache map[schema2.GroupName]string) *console.ComponentAttributes {
func StatusEventToComponentAttributes(e event.StatusEvent, vcache map[internalschema.GroupName]string) *console.ComponentAttributes {
if e.Resource == nil {
return nil
}
gvk := e.Resource.GroupVersionKind()
gname := schema2.GroupName{
gname := internalschema.GroupName{
Group: gvk.Group,
Kind: gvk.Kind,
Name: e.Resource.GetName(),
Expand Down

0 comments on commit 321519e

Please sign in to comment.