Skip to content

Commit

Permalink
Update namespace for inlets-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 20, 2019
1 parent ac27ba4 commit 7f2e4de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cmd/inletsoperator_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func makeInstallInletsOperator() *cobra.Command {
namespace, _ := command.Flags().GetString("namespace")

if namespace != "default" {
return fmt.Errorf(`to override the "default", install via tiller`)
return fmt.Errorf(`to override the namespace, edit the YAML files on GitHub`)
}
secretFileName, _ := command.Flags().GetString("token-file")

Expand All @@ -40,7 +40,7 @@ func makeInstallInletsOperator() *cobra.Command {

res, err := kubectlTask("create", "secret", "generic",
"inlets-access-key",
"--from-file", secretFileName, "-n", namespace)
"--from-file", "inlets-access-key="+secretFileName)

if len(res.Stderr) > 0 {
return fmt.Errorf("Error from kubectl\n%q", res.Stderr)
Expand All @@ -57,7 +57,7 @@ func makeInstallInletsOperator() *cobra.Command {
}

for _, yaml := range yamls {
err = kubectl("apply", "-f", yaml, "-n", namespace)
err = kubectl("apply", "-f", yaml)

if err != nil {
return err
Expand All @@ -69,7 +69,7 @@ func makeInstallInletsOperator() *cobra.Command {
=======================================================================
# The default configuration is for DigitalOcean and your secret is
# stored as "do-access-key" in the "kube-system" namespace.
# stored as "inlets-access-key" in the "default" namespace.
# To get your first Public IP run the following:
kubectl run nginx-1 --image=nginx --port=80 --restart=Always
Expand Down

0 comments on commit 7f2e4de

Please sign in to comment.