diff --git a/docs/gitbook/how-it-works.md b/docs/gitbook/how-it-works.md index c36e9c67..55b81646 100644 --- a/docs/gitbook/how-it-works.md +++ b/docs/gitbook/how-it-works.md @@ -509,7 +509,7 @@ Or by using Helm: helm repo add flagger https://flagger.app helm upgrade -i flagger-loadtester flagger/loadtester \ ---namepace=test \ +--namespace=test \ --set cmd.logOutput=true \ --set cmd.timeout=1h ``` diff --git a/docs/gitbook/install/flagger-install-on-kubernetes.md b/docs/gitbook/install/flagger-install-on-kubernetes.md index c68f2228..ebd33a73 100644 --- a/docs/gitbook/install/flagger-install-on-kubernetes.md +++ b/docs/gitbook/install/flagger-install-on-kubernetes.md @@ -125,7 +125,7 @@ Deploy the load test runner with Helm: ```bash helm upgrade -i flagger-loadtester flagger/loadtester \ ---namepace=test \ +--namespace=test \ --set cmd.logOutput=true \ --set cmd.timeout=1h ``` diff --git a/docs/gitbook/tutorials/canary-helm-gitops.md b/docs/gitbook/tutorials/canary-helm-gitops.md index aef6a23f..a8a73b49 100644 --- a/docs/gitbook/tutorials/canary-helm-gitops.md +++ b/docs/gitbook/tutorials/canary-helm-gitops.md @@ -115,7 +115,7 @@ First let's install a load testing service that will generate traffic during ana ```bash helm upgrade -i flagger-loadtester flagger/loadtester \ ---namepace=test +--namespace=test ``` Enable the load tester and deploy a new `frontend` version: diff --git a/pkg/controller/webhook.go b/pkg/controller/webhook.go index 7c0322b4..6926e9fb 100644 --- a/pkg/controller/webhook.go +++ b/pkg/controller/webhook.go @@ -15,10 +15,10 @@ import ( // CallWebhook does a HTTP POST to an external service and // returns an error if the response status code is non-2xx -func CallWebhook(name string, namepace string, w flaggerv1.CanaryWebhook) error { +func CallWebhook(name string, namespace string, w flaggerv1.CanaryWebhook) error { payload := flaggerv1.CanaryWebhookPayload{ Name: name, - Namespace: namepace, + Namespace: namespace, } if w.Metadata != nil {