Skip to content

Commit

Permalink
Fixed the issue with the custom password option (kyma-project#55)
Browse files Browse the repository at this point in the history
* Fixed applying custom password for kyma-installer

* Fixed patch for changing admin password
  • Loading branch information
igor-karpukhin authored Apr 8, 2019
1 parent 3240d14 commit 228f955
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pkg/kyma/cmd/install/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ func (cmd *command) setAdminPassword() error {
return nil
}
encPass := base64.StdEncoding.EncodeToString([]byte(cmd.opts.Password))
_, err := cmd.Kubectl().RunCmd("-n", "kyma-installer", "patch", "configmap", "installation-config-overrides", fmt.Sprintf(`-p='{"data": {"global.adminPassword": "%s"}}'`, encPass), "-v=1")
_, err := cmd.Kubectl().RunCmd("-n", "kyma-installer", "patch", "configmap", "installation-config-overrides", "--type=json",
fmt.Sprintf("--patch=[{'op': 'replace', 'path': '/data/global.adminPassword', 'value': '%s'}]", encPass))
return err
}

Expand Down

0 comments on commit 228f955

Please sign in to comment.