[MPI] Auth secret token mounting for MPIJob #9076
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR mounts the auth secret token on the runtime so that later during the
runmethod of MPI runtime handler_generate_mpi_joband_configure_pod_templatecan copy these volumes/volume mounts into the launcher/worker pod template. This allows the mpi pods to authentication with mlrun.The auth token is already saved as part of the run's spec during the
_enrich_runof the ServerSideLauncher.🛠️ Changes Made
token_nameandauth_infotoadd_secrets_to_spec_before_running()in mpi runtime handlerrun()method✅ Checklist
🧪 Testing
Manual test in IG4 + ran system test on IG3
🔗 References
🚨 Breaking Changes?
🔍️ Additional Notes