Skip to content

Allow defining position of sidecar in init containers #306

Description

@neo42JBR

Hey there,

I am in need to add a CI pod to our netbird network to access our git repositiories.
To achive my goal, my plan is to use a sidecar profile resource.

The pod that needs updating looks like this:

initContainers:
- git-cloner
containers:
- worker

When the sidecar profile is added, it will result in:

initContainers:
- git-cloner
- netbird
containers:
- worker

This ordering would require a successful clone of the repo before the netbird connection is established.

My immediate idea for resolving this issue would be an optional setting, that allows specifying if the container is prepended or appended to the init container list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions