jeremylvln / Shulker

A Kubernetes operator for managing complex and dynamic Minecraft infrastructures, including game servers and proxies.
https://shulker.jeremylvln.fr/
GNU Affero General Public License v3.0
181 stars 14 forks source link

Pod is invalid: spec.volumes[4].name: Duplicate value: "server-data" #519

Open stevefan1999-personal opened 5 months ago

stevefan1999-personal commented 5 months ago

What happened?

I would like to persist the world, so I added something like this:

      podOverrides:
        volumes:
        - emptyDir: {}
          name: server-data

But the actual GameServer generated does not take into account of the pod override

What components are involved in your issue?

No response

Version

0.8.2

Kubernetes Version

Irrelevant

Relevant log output

No response

Code of Conduct

jeremylvln commented 5 months ago

Hi @stevefan1999-personal!

The volumes and volumeClaims fields are only "additions" to the existing volumes Shulker, and as far as I know, Kubernetes does not allow overlapping volumes (for instance volume A mounting /mnt/a/ and volume B /mnt/a/world). I don't plan making this volume overridable because Shulker is injecting ephemeral configuration files that are not meant to be persisted.

However, I understand your issue and I will try to find a nice way of handling it. Do not hesitate if you have any suggestion. I'm quite busy currently, but I will do my best.

Thanks!