You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RemoteRuntime] Secret token mounting for RemoteRuntime (#9050)
### 📝 Description
<!-- A short summary of what this PR does. -->
<!-- Include any relevant context or background information. -->
Add secret token mounting for RemoteRuntime functions.
Save `auth` as part of the function's spec. Use it to mount the secret
into the runtime during function config compilation.
---
### 🛠️ Changes Made
<!-- - Key changes (e.g., added feature X, refactored Y, fixed Z) -->
- Added `auth` as part of `NuclioSpec`, `ApplicationSpec` and
`ServingSpec`
- Enrich auth token name on the function during deployment, then mount
secret to runtime during function config compilation.
- Refactor `mount_secret_token_to_runtime` to remove existing auth
secret volumes/mounts
- Refactor `_enrich_and_validate_auth_token_name` to
`enrich_and_validate_auth_token_name_on_object` to support both
`runObject` and `remoteRuntime`
---
### ✅ Checklist
- [ ] I updated the documentation (if applicable)
- [x] I have tested the changes in this PR
- [ ] I confirmed whether my changes are covered by system tests
- [ ] If yes, I ran all relevant system tests and ensured they passed
before submitting this PR
- [ ] I updated existing system tests and/or added new ones if needed to
cover my changes
- [ ] If I introduced a deprecation:
- [ ] I followed the [Deprecation Guidelines](./DEPRECATION.md)
- [ ] I updated the relevant Jira ticket for documentation
---
### 🧪 Testing
<!-- - How it was tested (unit tests, manual, integration) -->
<!-- - Any special cases covered. -->
Unit tests + manual tests of deployment of nuclio/application/serving
---
### 🔗 References
- Ticket link: https://iguazio.atlassian.net/browse/ML-11584
- Design docs links:
- External links:
---
### 🚨 Breaking Changes?
- [ ] Yes (explain below)
- [x] No
<!-- If yes, describe what needs to be changed downstream: -->
---
### 🔍️ Additional Notes
<!-- Anything else reviewers should know (follow-up tasks, known issues,
affected areas etc.). -->
<!-- ### 📸 Screenshots / Logs -->
As part of https://iguazio.atlassian.net/browse/ML-11599, need to handle
redeployment of a function with a different auth token name.
---------
Co-authored-by: Liran BG <[email protected]>
0 commit comments