PrimeIntellect/SWE-rebench-V2-Filtered-Easy-Verified huggingface dataset:
Repository: FairwindsOps/pluto (go)
Issue: Issues detecting on Ingress
Trying to detect on an ingress object:

```bash
cat << EOF | pluto detect - -v=10
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
EOF
```

And I see the following error and response:

```
I0501 10:38:38.954095 1267123 versions.go:98] invalid json: invalid character 'a' looking for beginning of value
There were no apiVersions found that match our records.
I0501 10:38:38.954169 1267123 root.go:209] retCode: 0
```

However works fine on a Deployment:

```
cat << EOF | pluto detect -      
apiVersion: apps/v1beta1             
kind: Deployment
EOF      

NAME   KIND         VERSION        REPLACEMENT   REMOVED   DEPRECATED  
       Deployment   apps/v1beta1   apps/v1       true      true 
```

Is this expected? am I holding it wrong? or is it a bug?
Pull request description: Add ingresses in extensions/v1beta1 to versions list
Fixes #71

Patch:
diff --git a/pkg/api/list.go b/pkg/api/list.go
index 25d4d65..8dea63e 100644
--- a/pkg/api/list.go
+++ b/pkg/api/list.go
@@ -39,6 +39,7 @@ var VersionList = []Version{
 	{"apps/v1beta2", "StatefulSet", "v1.9.0", "v1.16.0", "apps/v1"},
 
 	{"extensions/v1beta1", "NetworkPolicy", "v1.9.0", "v1.16.0", "networking.k8s.io/v1"},
+	{"extensions/v1beta1", "Ingress", "v1.14.0", "v1.22.0", "networking.k8s.io/v1beta1"},
 
 	{"apps/v1beta2", "DaemonSet", "v1.9.0", "v1.16.0", "apps/v1"},
 	{"extensions/v1beta1", "DaemonSet", "v1.9.0", "v1.16.0", "apps/v1"},


Test patch:
diff --git a/pkg/api/list_test.go b/pkg/api/list_test.go
index c27b408..285640b 100644
--- a/pkg/api/list_test.go
+++ b/pkg/api/list_test.go
@@ -53,6 +53,7 @@ func Example_printVersionsTabular() {
 	// StatefulSet------------------- apps/v1beta1-------------------------- v1.9.0--------- v1.16.0----- apps/v1--------------------------
 	// StatefulSet------------------- apps/v1beta2-------------------------- v1.9.0--------- v1.16.0----- apps/v1--------------------------
 	// NetworkPolicy----------------- extensions/v1beta1-------------------- v1.9.0--------- v1.16.0----- networking.k8s.io/v1-------------
+	// Ingress----------------------- extensions/v1beta1-------------------- v1.14.0-------- v1.22.0----- networking.k8s.io/v1beta1--------
 	// DaemonSet--------------------- apps/v1beta2-------------------------- v1.9.0--------- v1.16.0----- apps/v1--------------------------
 	// DaemonSet--------------------- extensions/v1beta1-------------------- v1.9.0--------- v1.16.0----- apps/v1--------------------------
 	// PodSecurityPolicy------------- extensions/v1beta1-------------------- v1.10.0-------- v1.16.0----- policy/v1beta1-------------------