vshn / appcat-service-postgresql

AppCat Service Provider for PostgreSQL
https://vshn.github.io/appcat-service-postgresql/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Set static name for deployment in deployment namespace #49

Closed ccremer closed 2 years ago

ccremer commented 2 years ago

Summary

Using Helm's fullnameOverride param we can set a static name. The reason for doing so is that a lot of additional operators and controllers work with appending suffixes. If we would continue using the same name as the instance CRD, we could encounter too long names and things may break. Static names avoid this by setting a short-enough name.

The result is that every postgresql Pod in a namespace is called postgresql-0 as an example (instead of something like sv-postgresql-s-old-fire-7894-0 along with other resources like Services or PVCs.)

This is technically a breaking change, but since we haven't released anything working yet, it's fine.

Checklist

For Code changes