Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GraphQL query for pods #2280

Merged
merged 4 commits into from Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 32 additions & 33 deletions components/ui-api-layer/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -7,7 +7,7 @@ import (
"github.com/kyma-project/kyma/components/ui-api-layer/internal/gqlschema"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

func TestApiConverter_ToGQL(t *testing.T) {
Expand Down
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/kyma-project/kyma/components/ui-api-layer/internal/gqlschema"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

func TestApiResolver_APIsQuery(t *testing.T) {
Expand Down
Expand Up @@ -10,7 +10,7 @@ import (
testingUtils "github.com/kyma-project/kyma/components/ui-api-layer/internal/testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/tools/cache"
)
Expand Down
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

func TestApplicationStatusSuccess(t *testing.T) {
Expand Down
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
apiErrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
k8sTesting "k8s.io/client-go/testing"
Expand Down
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/kyma-project/kyma/components/ui-api-layer/internal/domain/content/storage"
"github.com/kyma-project/kyma/components/ui-api-layer/internal/gqlschema"
"github.com/stretchr/testify/assert"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

func TestEventActivationConverter_ToGQL(t *testing.T) {
Expand Down
Expand Up @@ -11,7 +11,7 @@ import (
testingUtils "github.com/kyma-project/kyma/components/ui-api-layer/internal/testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/tools/cache"
)
Expand Down
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/golang/glog"
"github.com/pkg/errors"
apiv1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/watch"
Expand Down
Expand Up @@ -7,7 +7,7 @@ import (
idppresetv1alpha1 "github.com/kyma-project/kyma/components/idppreset/pkg/client/clientset/versioned/typed/authentication/v1alpha1"
"github.com/kyma-project/kyma/components/ui-api-layer/internal/pager"
"github.com/pkg/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"
)

Expand Down
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
apiErrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
testingErrors "k8s.io/client-go/testing"
"k8s.io/client-go/tools/cache"
Expand Down
2 changes: 1 addition & 1 deletion components/ui-api-layer/internal/domain/content/content.go
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/kyma-project/kyma/components/ui-api-layer/internal/domain/content/storage"
"github.com/kyma-project/kyma/components/ui-api-layer/internal/gqlschema"
"github.com/kyma-project/kyma/components/ui-api-layer/internal/module"
"github.com/minio/minio-go"
minio "github.com/minio/minio-go"
)

type contentRetriever struct {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package storage
import (
"io"

"github.com/minio/minio-go"
minio "github.com/minio/minio-go"
)

//go:generate mockery -name=Cache -output=automock -outpkg=automock -case=underscore
Expand Down
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"

"github.com/golang/glog"
"github.com/minio/minio-go"
minio "github.com/minio/minio-go"
"github.com/pkg/errors"
)

Expand Down
Expand Up @@ -31,3 +31,11 @@ func NewLimitRangeLister() *limitRangeLister {
func NewResourceQuotaStatusChecker() *resourceQuotaStatusChecker {
return new(resourceQuotaStatusChecker)
}

func NewPodLister() *podLister {
return new(podLister)
}

func NewGqlPodConverter() *gqlPodConverter {
return new(gqlPodConverter)
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.