Explorar el Código

remove field selector as it could potentially slow the request

Alexander Belanger hace 4 años
padre
commit
dbcf2a5106
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      internal/helm/agent.go

+ 0 - 2
internal/helm/agent.go

@@ -34,14 +34,12 @@ func (a *Agent) ListReleases(
 	filter *types.ReleaseListFilter,
 ) ([]*release.Release, error) {
 	lsel := fmt.Sprintf("owner=helm,status in (%s)", strings.Join(filter.StatusFilter, ","))
-	fsel := fmt.Sprintf("type=helm.sh/release.v1")
 
 	// list secrets
 	secretList, err := a.K8sAgent.Clientset.CoreV1().Secrets(namespace).List(
 		context.Background(),
 		v1.ListOptions{
 			LabelSelector: lsel,
-			FieldSelector: fsel,
 		},
 	)