Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Fix secrets namespace for s3
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 Dec 15, 2020
1 parent db34e6a commit a8c36ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,14 @@ func installOpenfaas(scaleToZero, ingressOperator bool) error {
func getS3Credentials() (string, string, error) {
var accessKey, secretKey string

args := []string{"get", "secret", "-n", "openfaas", "s3-access-key", "-o jsonpath='{.data.s3-access-key}'"}
args := []string{"get", "secret", "-n", "openfaas-fn", "s3-access-key", "-o jsonpath='{.data.s3-access-key}'"}
res, err := k8s.KubectlTask(args...)
if err != nil {
return "", "", err
}
accessKey = res.Stdout

args = []string{"get", "secret", "-n", "openfaas", "s3-access-key", "-o jsonpath='{.data.s3-secret-key}'"}
args = []string{"get", "secret", "-n", "openfaas-fn", "s3-access-key", "-o jsonpath='{.data.s3-secret-key}'"}
res, err = k8s.KubectlTask(args...)
if err != nil {
return "", "", err
Expand Down

0 comments on commit a8c36ce

Please sign in to comment.