-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix basic-auth on re-run to disable basic auth #223
Fix basic-auth on re-run to disable basic auth #223
Conversation
directFunctions, _ := command.Flags().GetBool("direct-functions") | ||
directFunctionsVal := "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that the behaviour replaced here is the same as before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fairly sure - the command printed to console
Command: /home/heyal/.arkade/bin/helm [upgrade --install openfaas openfaas/openfaas --namespace openfaas --wait --values /tmp/charts/openfaas/values.yaml --set openfaasImagePullPolicy=IfNotPresent --set faasnetes.imagePullPolicy=Always --set basicAuthPlugin.replicas=1 --set ingressOperator.create=false --set queueWorker.maxInflight=1 --set clusterRole=false --set gateway.directFunctions=true --set operator.create=false --set gateway.replicas=1 --set queueWorker.replicas=1 --set basic_auth=true --set serviceType=NodePort]
and the raw map printed
map[basicAuthPlugin.replicas:1 basic_auth:true clusterRole:false faasnetes.imagePullPolicy:Always gateway.directFunctions:true gateway.replicas:1 ingressOperator.create:false openfaasImagePullPolicy:IfNotPresent operator.create:false queueWorker.maxInflight:1 queueWorker.replicas:1 serviceType:NodePort]
Fixes #8 This has been tested by running this build with basic auth on, then off. Then on, then off. IT was enabled/disabled each time and port forwarding to the gateway gave the correct auth enabled/disabled status depending on how it was deployed. Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
edb00ce
to
967616f
Compare
requested changes implemented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Description
Enable switching basic auth on/off on re-running arkade install
Fixes #8
This has been tested by running this build with basic auth on, then off.
Then on, then off. IT was enabled/disabled each time and port forwarding
to the gateway gave the correct auth enabled/disabled status depending on
how it was deployed.
Signed-off-by: Alistair Hey alistair@heyal.co.uk
Motivation and Context
basic auth does not get disabled after enabling it first for openfaas app #8
How Has This Been Tested?
See description
Types of changes
Checklist:
git commit -s