Kong / gateway-operator

Kubernetes Operator for Kong Gateways
Apache License 2.0
40 stars 9 forks source link

API to write platform specific behaviour #283

Open lahabana opened 1 month ago

lahabana commented 1 month ago

Problem Statement

We have a few issues that require platform specific behaviour. While ideally there shouldn't be any, sometimes it is still required.

We should have a component to detect Kubernetes platform information so we can easily write code that's conditional to the platform detected.

Issues that would leverage this component:

Proposed Solution

A lot of the detection code already exists in telemetry: https://github.com/Kong/kubernetes-telemetry/blob/a8f70df68515496b91e46e04fead4116e1df25b9/pkg/telemetry/workflowsk8s.go#L32-L63

Some open questions:

As this detection is based on heuristics it should be possible for users to set it in configuration in case the heuristics are wrong.

Acceptance Criteria

pmalek commented 1 month ago

X-referencing archived issue: https://github.com/Kong/gateway-operator-archive/issues/867.