Skip to content

[Feat]: Add container lifecycle hook to helm chart #5382

Closed
@inerplat

Description

@inerplat

What is your suggestion?

Add container lifecycle hook to helm chart of code-server deployment.

Why do you want this feature?

When the code-server is restarted in kubernetes, all data in the area where the persistent volume is not mounted is lost.

How about adding a lifecycle hook like postStart for small configuration or script codes to manage without PV?

Are there any workarounds to get this functionality today?

Of course, I personally fork the helm chart of this project and use it.

Edit the chart as below:
https://github.com/inerplat/code-server/blob/main/ci/helm-chart/templates/deployment.yaml#L65-L75

It can inject settings via values.yaml:
https://github.com/inerplat/code-server/blob/main/ci/helm-chart/values.yaml#L130-L137

Are you interested in submitting a PR for this?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSome improvement that isn't a feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions