Properly resolve imagePullSecrets from app and deploymentID if relevant property does not exist
This commit is contained in:
1 parent
b25822189e
commit
aa51c37774
1 file changed
+3
@@ -1107,6 +1107,9 @@ func TriggerSchedulerRun(scheduler string, appName string, envCount int, args []
|
|||||||
|
|
||||||
attachToPod := os.Getenv("DOKKU_DETACH_CONTAINER") != "1"
|
attachToPod := os.Getenv("DOKKU_DETACH_CONTAINER") != "1"
|
||||||
imagePullSecrets := getComputedImagePullSecrets(appName)
|
imagePullSecrets := getComputedImagePullSecrets(appName)
|
||||||
|
if imagePullSecrets == "" {
|
||||||
|
imagePullSecrets = fmt.Sprintf("ims-%s.%d", appName, deploymentID)
|
||||||
|
}
|
||||||
workingDir := common.GetWorkingDir(appName, image)
|
workingDir := common.GetWorkingDir(appName, image)
|
||||||
job, err := templateKubernetesJob(Job{
|
job, err := templateKubernetesJob(Job{
|
||||||
AppName: appName,
|
AppName: appName,
|
||||||
|
|||||||
Reference in new issue
Block a user