fix: extend a component's security context to its config init container#464
fix: extend a component's security context to its config init container#464adalimayeu wants to merge 13 commits intozilliztech:mainfrom
Conversation
|
Welcome @adalimayeu! It looks like this is your first PR to zilliztech/milvus-operator 🎉 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #464 +/- ##
==========================================
+ Coverage 76.60% 76.63% +0.03%
==========================================
Files 66 66
Lines 6116 6124 +8
==========================================
+ Hits 4685 4693 +8
Misses 1173 1173
Partials 258 258 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you @adalimayeu. There're 2 things to be done before we could merge your patch:
the CI failure is due to the action |
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
07b1349 to
fa2b124
Compare
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
hi @haorenfsa, it's done, could you please review it once again? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adalimayeu, haorenfsa The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@adalimayeu thank you! we can get it merged after CI passed |
|
It looks like we need to make some other changes to the milvus image before merging. |
|
/assign |
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
This reverts commit 419bc10. Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
fe0fda0 to
559a3b8
Compare
Signed-off-by: Aliaksandr Dalimayeu <adalimayeu@gmail.com>
|
@haorenfsa , could you please run the pipelines once again? It’s working fine on my local setup now. currently, the data volume /var/lib/milvus is created only for WoodPecker, RocketMQ, or NATS message streaming types. Whether it is However, MilvusDB attempts to call This is achieved by mounting an Updated |
|
@haorenfsa, @LoveEachDay, can you please review the PR once again? thanks! |
The current approach allows overriding custom
securityContextsettings for each component. At the same time, the securityContext of the config init container is hardcoded torunAsNonRoot=trueandrunAsUser=1000, which is not sufficient to meet therestrictedpolicy level in accordance with the Pod Security Standards.it can be briefly checked with psa-checker tool:
with the following Milvus specs:
the check complains about the config init container, whereas the main pod container passes:
PR changes:
renderInitContainerfunction, which now requires passingupdateras an argument instead oftoolImageUpdateToolImageis set to false