Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
  • Loading branch information
geoberle committed Oct 10, 2024
1 parent b49b387 commit 51102a8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion cmd/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func (o *Options) Validate() error {
if len(o.ManagedService) > 0 && o.ManagedService != hyperv1.AroHCP {
errs = append(errs, fmt.Errorf("not a valid managed service type: %s", o.ManagedService))
}
// todo: validate opts.RegistryOverrides
return errors.NewAggregate(errs)
}

Expand Down
1 change: 0 additions & 1 deletion cmd/install/install_helm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ func TestHelmCommand(t *testing.T) {
t.Fatalf("values.yaml file %s does not exist", valuesPath)
}


}
9 changes: 0 additions & 9 deletions cmd/install/install_render.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,3 @@ func (p *ObjectPatch) CanBeAppliedTo(obj crclient.Object) bool {
}
return true
}

func getByKindAndName(objects []crclient.Object, kind, name string) (crclient.Object, error) {
for _, obj := range objects {
if obj.GetObjectKind().GroupVersionKind().Kind == kind && obj.GetName() == name {
return obj, nil
}
}
return nil, fmt.Errorf("object not found: kind=%s, name=%s", kind, name)
}

0 comments on commit 51102a8

Please sign in to comment.