Skip to content

Charts' device value files override component security contexts #815

@eero-t

Description

@eero-t

Several application values files change component securityContext, for example setting (container) root FS to be writable:

$ git grep -e '^[^#].*securityContext' -e ^[^#].*readOnlyRoot.*false | grep -v -e common/ -e templates
chatqna/gaudi-tgi-values.yaml:  securityContext:
chatqna/gaudi-tgi-values.yaml:    readOnlyRootFilesystem: false
chatqna/gaudi-vllm-values.yaml:  securityContext:
chatqna/gaudi-vllm-values.yaml:    readOnlyRootFilesystem: false
chatqna/guardrails-gaudi-values.yaml:  securityContext:
chatqna/guardrails-gaudi-values.yaml:    readOnlyRootFilesystem: false
searchqna/gaudi-values.yaml:  securityContext:
searchqna/gaudi-values.yaml:    readOnlyRootFilesystem: false

Those overrides are for tei & teirerank components, which seem to have same override for Gaudi, but I think that's wrong. Either component needs to write root FS or not, it should not depend on which device is used:

$ git grep ^[^#].*readOnlyRoot.*false | grep common/
common/agent/values.yaml:  readOnlyRootFilesystem: false
common/chathistory-usvc/values.yaml:  readOnlyRootFilesystem: false
common/data-prep/values.yaml:  readOnlyRootFilesystem: false
common/llm-uservice/values.yaml:  readOnlyRootFilesystem: false
common/lvm-serve/values.yaml:  readOnlyRootFilesystem: false
common/lvm-uservice/values.yaml:  readOnlyRootFilesystem: false
common/mm-embedding/values.yaml:  readOnlyRootFilesystem: false
common/prompt-usvc/values.yaml:  readOnlyRootFilesystem: false
common/retriever-usvc/values.yaml:  readOnlyRootFilesystem: false
common/speecht5/values.yaml:  readOnlyRootFilesystem: false
common/tei/gaudi-values.yaml:  readOnlyRootFilesystem: false        <====
common/teirerank/gaudi-values.yaml:  readOnlyRootFilesystem: false  <====
common/whisper/values.yaml:  readOnlyRootFilesystem: false

I'm pretty sure those overrides were made redundant with #613 and #642.


latest testing status for true readOnlyRootFileSystem settings of charts under common directory.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions