airflow icon indicating copy to clipboard operation
airflow copied to clipboard

rename GKEStartPodOperator -> GKEPodOperator

Open raphaelauv opened this issue 3 years ago • 10 comments

KubernetesPodOperator EksPodOperator GKEStartPodOperator

we could fix this inconsistency by renaming GKEStartPodOperator -> GKEPodOperator or even GkePodOperator ?

raphaelauv avatar Jun 14 '22 14:06 raphaelauv

We used to have discussions about operator naming and agreed that every operator should have a verb, so GKEStartPodOperator is a correct name for this operator, GKEPodOperator is not aligned with our rules.

mik-laj avatar Jun 14 '22 14:06 mik-laj

Discussion thread: https://lists.apache.org/thread/6k9jzrd2jzsmz073m68b49zz2zhlzhfv

I think that the operator should describe the behavior(verb), hook should describe a service(noun). These are other parts of speech. In my opinion, HiveOperator should be named HiveExecuteQuery. Hook will be called Hive. Then there will be no name conflicts.

But I do like the verb/noun idea. That's a really nice way of thinking about what belongs where.

I completely agree that the operator names have been a bit muddled, HiveExecuteQuery sounds better to me.

mik-laj avatar Jun 14 '22 14:06 mik-laj

Then GKEStartPodOperator is not doing what it say

cause the GKEStartPodOperator is not only starting a pod , but it's starting , tracking and waiting for end of the pod (and also re-attach)

raphaelauv avatar Jun 14 '22 14:06 raphaelauv

So a better name could be KubernetesRunPodOperator ? GKERunPodOperator ...

raphaelauv avatar Jun 14 '22 14:06 raphaelauv

KubernetesRunPodOperator sound good to me, but we should discuss it in a wider group, because it is one of the most popular operators. Can you create a thread on mailing list?

mik-laj avatar Jun 14 '22 19:06 mik-laj

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 31 '22 00:07 github-actions[bot]

Are we sure we want to get here? KPO is such a common name, and such ubiquitous all over the place that I am hesitating quite a bit to renaming it. KRPO sounds already pretty bad.

In this case I am not sure if consistency is a king any more

potiuk avatar Aug 04 '22 14:08 potiuk

then only rename

GKEStartPodOperator -> GKEPodOperator

@potiuk ?

raphaelauv avatar Aug 04 '22 14:08 raphaelauv

GKEStartPodOperator -> GKEPodOperator

@potiuk ?

Sounds much better :) - but I woudl love to hear what others say.

potiuk avatar Aug 04 '22 15:08 potiuk

Failures :(

potiuk avatar Aug 05 '22 17:08 potiuk

Still some errors :(

potiuk avatar Aug 21 '22 22:08 potiuk

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 07 '22 00:10 github-actions[bot]