fix: use smaller reference to image pull secrets in secret naming

This fixes an issue where the secret name is too long in tests where the generated test app name includes a uuid.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-02-25 14:00:28 -05:00
1 parent ae092a9ef3
commit ab674072bc
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -179,7 +179,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
return fmt.Errorf("Error reading docker config: %w", err)
}
imagePullSecrets = fmt.Sprintf("image-pull-%s.%d", appName, deploymentId)
imagePullSecrets = fmt.Sprintf("%s.ims.%d", appName, deploymentId)
pullSecretBase64 = base64.StdEncoding.EncodeToString(b)
}
}