Skip to content

[BUG] Init containers creating /usr/share/opensearch/data directory with static 1000 UID:GID user #1108

@patelsmit32123

Description

@patelsmit32123

What is the bug?

When we pass runAsUser/runAsGroup in pod/container securityContexts, the operator starts pods/containers with this user/group but the data directory is still created with static 1000 user/group.

How can one reproduce the bug?

Pass any other user/group in pod/container security context other than 1000.

What is the expected behavior?

Data directory owner should not be static and be configurable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguntriagedIssues that have not yet been triaged

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions