Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 64dfadd

Browse files
authored
Fix a couple of typos. (#472)
1 parent 962542f commit 64dfadd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd/bootkube/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func flagsToAssetConfig() (c *asset.Config, err error) {
204204
}
205205

206206
if etcdUseTLS && etcdCACert == nil {
207-
bootkube.UserOutput("NOTE: --etcd-servers=%s but -etcd-ca-path, --etcd-certificate-path, and --etcd-private-key-path were not set. Bootkube will create etcd certificates under '%s/tls'. You must configure etcd to use these certificates before invoking 'bootkube run'.\n", renderOpts.etcdServers, renderOpts.assetDir)
207+
bootkube.UserOutput("NOTE: --etcd-servers=%s but --etcd-ca-path, --etcd-certificate-path, and --etcd-private-key-path were not set. Bootkube will create etcd certificates under '%s/tls'. You must configure etcd to use these certificates before invoking 'bootkube run'.\n", renderOpts.etcdServers, renderOpts.assetDir)
208208
}
209209

210210
// TODO: Find better option than asking users to make manual changes

cmd/bootkube/start.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ func runCmdStart(cmd *cobra.Command, args []string) error {
4747
util.InitLogs()
4848
defer util.FlushLogs()
4949

50-
if err := bk.Run(); err != nil {
50+
err = bk.Run()
51+
if err != nil {
5152
// Always report errors.
5253
bootkube.UserOutput("Error: %v\n", err)
5354
}
54-
return nil
55+
return err
5556
}
5657

5758
func validateStartOpts(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)