Skip to content

Commit

Permalink
Revendor kutil (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Nov 18, 2017
1 parent 06f4dad commit 46b995a
Show file tree
Hide file tree
Showing 20 changed files with 1,799 additions and 254 deletions.
6 changes: 3 additions & 3 deletions client/typed/stash/v1alpha1/util/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"fmt"
"reflect"

"github.com/appscode/kutil"
"github.com/appscode/kutil/meta"
api "github.com/appscode/stash/apis/stash/v1alpha1"
"k8s.io/apimachinery/pkg/runtime/schema"
)

func GetGroupVersionKind(v interface{}) schema.GroupVersionKind {
return api.SchemeGroupVersion.WithKind(kutil.GetKind(v))
return api.SchemeGroupVersion.WithKind(meta.GetKind(v))
}

func AssignTypeKind(v interface{}) error {
Expand All @@ -22,7 +22,7 @@ func AssignTypeKind(v interface{}) error {
switch u := v.(type) {
case *api.Restic:
u.APIVersion = api.SchemeGroupVersion.String()
u.Kind = kutil.GetKind(v)
u.Kind = meta.GetKind(v)
return nil
}
return errors.New("unknown api object type")
Expand Down
18 changes: 12 additions & 6 deletions glide.lock

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

4 changes: 2 additions & 2 deletions pkg/migrator/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/appscode/go/log"
"github.com/appscode/kutil"
apiext_util "github.com/appscode/kutil/apiextensions/v1beta1"
"github.com/appscode/stash/apis/stash"
api "github.com/appscode/stash/apis/stash/v1alpha1"
"github.com/hashicorp/go-version"
Expand Down Expand Up @@ -151,7 +151,7 @@ func (m *migrator) createCRDs() error {
}
}
}
return kutil.WaitForCRDReady(m.kubeClient.CoreV1().RESTClient(), crds)
return apiext_util.WaitForCRDReady(m.kubeClient.CoreV1().RESTClient(), crds)
}

func (m *migrator) rollback() error {
Expand Down

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

16 changes: 8 additions & 8 deletions vendor/github.com/appscode/kutil/apps/v1beta1/kubernetes.go

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

40 changes: 20 additions & 20 deletions vendor/github.com/appscode/kutil/core/v1/kubernetes.go

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

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

22 changes: 11 additions & 11 deletions vendor/github.com/appscode/kutil/extensions/v1beta1/kubernetes.go

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

Loading

0 comments on commit 46b995a

Please sign in to comment.