Properly resolve imagePullSecrets from app and deploymentID if relevant property does not exist

This commit is contained in:
Tasos Maschalidis
2024-12-10 14:29:38 +02:00
parent b25822189e
commit aa51c37774

View File

@@ -1107,6 +1107,9 @@ func TriggerSchedulerRun(scheduler string, appName string, envCount int, args []
attachToPod := os.Getenv("DOKKU_DETACH_CONTAINER") != "1"
imagePullSecrets := getComputedImagePullSecrets(appName)
if imagePullSecrets == "" {
imagePullSecrets = fmt.Sprintf("ims-%s.%d", appName, deploymentID)
}
workingDir := common.GetWorkingDir(appName, image)
job, err := templateKubernetesJob(Job{
AppName: appName,