Move kubeconfig utility to a shared pkg

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2020-04-12 18:19:38 -07:00
parent d5546f062d
commit bef0a4cca7
No known key found for this signature in database
GPG Key ID: 441833503E604E2C
16 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
// CurrentOp prints the current context

View File

@ -5,7 +5,7 @@ import (
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
// DeleteOp indicates intention to delete contexts.

View File

@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
var (

View File

@ -8,7 +8,7 @@ import (
"github.com/fatih/color"
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
// ListOp describes listing contexts.

View File

@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
// RenameOp indicates intention to rename contexts.

View File

@ -5,7 +5,7 @@ import (
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
// SwitchOp indicates intention to switch contexts.

View File

@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/ahmetb/kubectx/cmd/kubectx/kubeconfig"
"github.com/ahmetb/kubectx/internal/kubeconfig"
)
// UnsetOp indicates intention to remove current-context preference.
@ -26,6 +26,6 @@ func (_ UnsetOp) Run(_, stderr io.Writer) error {
return errors.Wrap(err, "failed to save kubeconfig file after modification")
}
_, err := fmt.Fprintln(stderr, "Successfully unset the current context")
_, err := fmt.Fprintln(stderr, "Successfully unset the active context for kubectl.")
return errors.Wrap(err, "write error")
}