Move /cli/command/stack/kubernetes/api to /kubernetes

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-12-04 09:44:06 +01:00 committed by Silvin Lubecki
parent 1ff277ad8f
commit f960d2d5f3
37 changed files with 22 additions and 22 deletions

View File

@ -3,7 +3,7 @@ package kubernetes
import ( import (
"fmt" "fmt"
apiv1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1" apiv1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest" "k8s.io/client-go/rest"

View File

@ -5,7 +5,7 @@ import (
"path/filepath" "path/filepath"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
composev1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/client/clientset_generated/clientset/typed/compose/v1beta1" composev1beta1 "github.com/docker/cli/kubernetes/client/clientset_generated/clientset/typed/compose/v1beta1"
"github.com/docker/docker/pkg/homedir" "github.com/docker/docker/pkg/homedir"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"

View File

@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"sort" "sort"
apiv1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1"
"github.com/docker/cli/cli/command/stack/kubernetes/api/labels"
"github.com/docker/cli/cli/compose/loader" "github.com/docker/cli/cli/compose/loader"
"github.com/docker/cli/cli/compose/types" "github.com/docker/cli/cli/compose/types"
apiv1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
"github.com/docker/cli/kubernetes/labels"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
corev1 "k8s.io/client-go/kubernetes/typed/core/v1" corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
) )

View File

@ -5,7 +5,7 @@ import (
"time" "time"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/cli/command/stack/kubernetes/api/labels" "github.com/docker/cli/kubernetes/labels"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
appsv1beta2 "k8s.io/api/apps/v1beta2" appsv1beta2 "k8s.io/api/apps/v1beta2"
apiv1 "k8s.io/api/core/v1" apiv1 "k8s.io/api/core/v1"

View File

@ -1,7 +1,7 @@
package kubernetes package kubernetes
import ( import (
"github.com/docker/cli/cli/command/stack/kubernetes/api/labels" "github.com/docker/cli/kubernetes/labels"
apiv1 "k8s.io/api/core/v1" apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )

View File

@ -7,10 +7,10 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
apiv1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1"
"github.com/docker/cli/cli/compose/loader" "github.com/docker/cli/cli/compose/loader"
"github.com/docker/cli/cli/compose/template" "github.com/docker/cli/cli/compose/template"
composetypes "github.com/docker/cli/cli/compose/types" composetypes "github.com/docker/cli/cli/compose/types"
apiv1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
"github.com/pkg/errors" "github.com/pkg/errors"
yaml "gopkg.in/yaml.v2" yaml "gopkg.in/yaml.v2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@ -6,7 +6,7 @@ import (
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/cli/command/stack/kubernetes/api/labels" "github.com/docker/cli/kubernetes/labels"
"github.com/spf13/cobra" "github.com/spf13/cobra"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )

View File

@ -4,8 +4,8 @@ import (
"fmt" "fmt"
"time" "time"
apiv1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1" apiv1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
"github.com/docker/cli/cli/command/stack/kubernetes/api/labels" "github.com/docker/cli/kubernetes/labels"
apiv1 "k8s.io/api/core/v1" apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
corev1 "k8s.io/client-go/kubernetes/typed/core/v1" corev1 "k8s.io/client-go/kubernetes/typed/core/v1"

View File

@ -1,7 +1,7 @@
package clientset package clientset
import ( import (
composev1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/client/clientset_generated/clientset/typed/compose/v1beta1" composev1beta1 "github.com/docker/cli/kubernetes/client/clientset_generated/clientset/typed/compose/v1beta1"
glog "github.com/golang/glog" glog "github.com/golang/glog"
discovery "k8s.io/client-go/discovery" discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"

View File

@ -1,7 +1,7 @@
package scheme package scheme
import ( import (
composev1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1" composev1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema" schema "k8s.io/apimachinery/pkg/runtime/schema"

View File

@ -1,8 +1,8 @@
package v1beta1 package v1beta1
import ( import (
"github.com/docker/cli/cli/command/stack/kubernetes/api/client/clientset_generated/clientset/scheme" "github.com/docker/cli/kubernetes/client/clientset_generated/clientset/scheme"
v1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1" v1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
serializer "k8s.io/apimachinery/pkg/runtime/serializer" serializer "k8s.io/apimachinery/pkg/runtime/serializer"
rest "k8s.io/client-go/rest" rest "k8s.io/client-go/rest"
) )

View File

@ -1,8 +1,8 @@
package v1beta1 package v1beta1
import ( import (
scheme "github.com/docker/cli/cli/command/stack/kubernetes/api/client/clientset_generated/clientset/scheme" scheme "github.com/docker/cli/kubernetes/client/clientset_generated/clientset/scheme"
v1beta1 "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1" v1beta1 "github.com/docker/cli/kubernetes/compose/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types" types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch" watch "k8s.io/apimachinery/pkg/watch"

View File

@ -5,7 +5,7 @@
// //
// +k8s:openapi-gen=true // +k8s:openapi-gen=true
// +k8s:deepcopy-gen=package,register // +k8s:deepcopy-gen=package,register
// +k8s:conversion-gen=github.com/docker/cli/cli/command/stack/kubernetes/api/compose // +k8s:conversion-gen=github.com/docker/cli/kubernetes/compose
// +k8s:defaulter-gen=TypeMeta // +k8s:defaulter-gen=TypeMeta
// +groupName=compose.docker.com // +groupName=compose.docker.com
package v1beta1 // import "github.com/docker/cli/cli/command/stack/kubernetes/api/compose/v1beta1" package v1beta1 // import "github.com/docker/cli/kubernetes/compose/v1beta1"

View File

@ -3,7 +3,7 @@ package v1beta1
import ( import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/docker/cli/cli/command/stack/kubernetes/api/compose" "github.com/docker/cli/kubernetes/compose"
) )
// Owner defines the owner of a stack. It is used to impersonate the controller calls // Owner defines the owner of a stack. It is used to impersonate the controller calls

View File

@ -5,7 +5,7 @@
package v1beta1 package v1beta1
import ( import (
compose "github.com/docker/cli/cli/command/stack/kubernetes/api/compose" compose "github.com/docker/cli/kubernetes/compose"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
) )
@ -53,7 +53,6 @@ func Convert_compose_Owner_To_v1beta1_Owner(in *compose.Owner, out *Owner, s con
return autoConvert_compose_Owner_To_v1beta1_Owner(in, out, s) return autoConvert_compose_Owner_To_v1beta1_Owner(in, out, s)
} }
func autoConvert_v1beta1_Stack_To_compose_Stack(in *Stack, out *compose.Stack, s conversion.Scope) error { func autoConvert_v1beta1_Stack_To_compose_Stack(in *Stack, out *compose.Stack, s conversion.Scope) error {
out.ObjectMeta = in.ObjectMeta out.ObjectMeta = in.ObjectMeta
if err := Convert_v1beta1_StackSpec_To_compose_StackSpec(&in.Spec, &out.Spec, s); err != nil { if err := Convert_v1beta1_StackSpec_To_compose_StackSpec(&in.Spec, &out.Spec, s); err != nil {
@ -136,6 +135,7 @@ func autoConvert_v1beta1_StackSpec_To_compose_StackSpec(in *StackSpec, out *comp
func Convert_compose_StackSpec_To_v1beta1_StackSpec(in *compose.StackSpec, out *StackSpec, s conversion.Scope) error { func Convert_compose_StackSpec_To_v1beta1_StackSpec(in *compose.StackSpec, out *StackSpec, s conversion.Scope) error {
return autoConvert_compose_StackSpec_To_v1beta1_StackSpec(in, out, s) return autoConvert_compose_StackSpec_To_v1beta1_StackSpec(in, out, s)
} }
// Convert_v1beta1_StackSpec_To_compose_StackSpec is an autogenerated conversion function. // Convert_v1beta1_StackSpec_To_compose_StackSpec is an autogenerated conversion function.
func Convert_v1beta1_StackSpec_To_compose_StackSpec(in *StackSpec, out *compose.StackSpec, s conversion.Scope) error { func Convert_v1beta1_StackSpec_To_compose_StackSpec(in *StackSpec, out *compose.StackSpec, s conversion.Scope) error {
return autoConvert_v1beta1_StackSpec_To_compose_StackSpec(in, out, s) return autoConvert_v1beta1_StackSpec_To_compose_StackSpec(in, out, s)

View File

@ -1,4 +1,4 @@
// //
// +domain=docker.com // +domain=docker.com
package apis package kubernetes