numerique-gouv / people

Teams management application
MIT License
13 stars 1 forks source link

👷(helm) command createsuperuser #234

Closed AntoLC closed 3 months ago

AntoLC commented 4 months ago

Purpose

We need a superuser in the Django application, to have access to the admin part. This PR create a superuser on the pods.

AntoLC commented 3 months ago

Everything looks good to me, though I'm not an expert with Helm. Could we get @rouja to review this as well?

was It copied from Impress?

I was also wondering if we need to repeat the command declaration in each environment's values.yaml file. Is there a way to avoid duplication across dev, staging, preprod, and prod environments?

Yes it is from Impress, review by @rouja in Impress. We need to repeat the cmd because the secret change in every environment.

https://github.com/numerique-gouv/people/blob/be81264077d2827bea9336e92d6af2b6d31ad943/src/helm/env.d/staging/values.desk.yaml.gotmpl#L93