Skip to content

Commit

Permalink
Use i18n for clusterctl command descriptions and update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhen127 committed May 23, 2018
1 parent 59410e2 commit f6f3bd2
Show file tree
Hide file tree
Showing 10,915 changed files with 2,310,241 additions and 9 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
51 changes: 50 additions & 1 deletion Gopkg.lock

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

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ required = [
name = "k8s.io/client-go"
branch = "release-6.0"

[[constraint]]
name = "k8s.io/kubernetes"
branch = "release-1.9"

# client-go needs this version
[[constraint]]
name = "github.com/Azure/go-autorest"
Expand Down
5 changes: 3 additions & 2 deletions clusterctl/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ package cmd

import (
"github.com/spf13/cobra"
"k8s.io/kubernetes/pkg/kubectl/util/i18n"
)

var createCmd = &cobra.Command{
Use: "create",
Short: "Create a cluster API resource",
Long: `Create a cluster API resource with one command`,
Short: i18n.T("Create a cluster API resource"),
Long: i18n.T("Create a cluster API resource with one command"),
}

func init() {
Expand Down
5 changes: 3 additions & 2 deletions clusterctl/cmd/create_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/golang/glog"
"github.com/spf13/cobra"
"io/ioutil"
"k8s.io/kubernetes/pkg/kubectl/util/i18n"
"sigs.k8s.io/cluster-api/clusterctl/clusterdeployer"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha1"
"sigs.k8s.io/cluster-api/util"
Expand All @@ -35,8 +36,8 @@ var co = &CreateOptions{}

var createClusterCmd = &cobra.Command{
Use: "cluster",
Short: "Create kubernetes cluster",
Long: `Create a kubernetes cluster with one command`,
Short: i18n.T("Create kubernetes cluster"),
Long: i18n.T("Create a kubernetes cluster with one command"),
Run: func(cmd *cobra.Command, args []string) {
if co.Cluster == "" {
exitWithHelp(cmd, "Please provide yaml file for cluster definition.")
Expand Down
5 changes: 3 additions & 2 deletions clusterctl/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ package cmd

import (
"github.com/spf13/cobra"
"k8s.io/kubernetes/pkg/kubectl/util/i18n"
)

var deleteCmd = &cobra.Command{
Use: "delete",
Short: "Delete a cluster API resource",
Long: `Delete a cluster API resource with one command`,
Short: i18n.T("Delete a cluster API resource"),
Long: i18n.T("Delete a cluster API resource with one command"),
}

func init() {
Expand Down
5 changes: 3 additions & 2 deletions clusterctl/cmd/delete_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package cmd
import (
"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/kubernetes/pkg/kubectl/util/i18n"
"sigs.k8s.io/cluster-api/errors"
)

Expand All @@ -31,8 +32,8 @@ var do = &DeleteOptions{}
func NewCmdDeleteCluster() *cobra.Command {
cmd := &cobra.Command{
Use: "delete",
Short: "Delete kubernetes cluster",
Long: `Delete a kubernetes cluster with one command`,
Short: i18n.T("Delete kubernetes cluster"),
Long: i18n.T("Delete a kubernetes cluster with one command"),
Run: func(cmd *cobra.Command, args []string) {
if do.ClusterName == "" {
exitWithHelp(cmd, "Please provide cluster name.")
Expand Down
7 changes: 7 additions & 0 deletions vendor/github.com/chai2010/gettext-go/.travis.yml

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

27 changes: 27 additions & 0 deletions vendor/github.com/chai2010/gettext-go/LICENSE

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

58 changes: 58 additions & 0 deletions vendor/github.com/chai2010/gettext-go/README.md

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

13 changes: 13 additions & 0 deletions vendor/github.com/chai2010/gettext-go/examples/Makefile

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

83 changes: 83 additions & 0 deletions vendor/github.com/chai2010/gettext-go/examples/hello.go

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

17 changes: 17 additions & 0 deletions vendor/github.com/chai2010/gettext-go/examples/hi/hi.go

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

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f6f3bd2

Please sign in to comment.