kestra-io / plugin-kubernetes

https://kestra.io/plugins/plugin-kubernetes/
Apache License 2.0
6 stars 7 forks source link

`io.kestra.plugin.kubernetes.PodCreate` metadata.name - assigning a name to the Kubernetes Pod #84

Closed kriko closed 8 months ago

kriko commented 9 months ago

Feature description

Currently when using plugin-kubernetes PodCreate task, then it is impossible to assign a custom name to the Pod created in Kubernetes. It is possible to assign a name to the containers within that Pod, but not to the Pod itself.

Documentation under metadata definition includes the possibility of assigning a name (as per k8s spec), but this will be overriden by AbstractConnection.java L95.

Could it be considered, that when a Pod name is passed from the metadata.name configuration, then it is used instead of a generated name?

Use case: we have a standard way of naming Pods in Kubernetes and since the executions are not dropped, we prefer a better naming scheme.

anna-geller commented 9 months ago

it seems feasible, thx for the issue!