-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix mexregsecret for aks/gcp. Also add Fairview to vault and change hawkins key * add fairview openrc * fix return for error if secret create fails
- Loading branch information
1 parent
6ee1fcb
commit 9ac0330
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,9 @@ func CreateDockerRegistrySecret(mf *Manifest) error { | |
|
||
var out string | ||
log.DebugLog(log.DebugLevelMexos, "CreateDockerRegistrySecret", "mf", mf) | ||
if IsLocalDIND(mf) { | ||
log.DebugLog(log.DebugLevelMexos, "CreateDockerRegistrySecret locally for DIND") | ||
|
||
if IsLocalDIND(mf) || mf.Metadata.Operator == "gcp" || mf.Metadata.Operator == "azure" { | ||
log.DebugLog(log.DebugLevelMexos, "CreateDockerRegistrySecret locally non OpenStack case") | ||
var o []byte | ||
o, err = sh.Command("kubectl", "create", "secret", "docker-registry", "mexregistrysecret", "--docker-server="+mf.Values.Registry.Docker, "--docker-username=mobiledgex", "--docker-password="+mexEnv(mf, "MEX_DOCKER_REG_PASS"), "[email protected]").CombinedOutput() | ||
out = string(o) | ||
|