Description
The gateway-helm-chart sets app.kubernetes.io/name from the chart name, which is currently gateway (Chart.yaml). This value is too generic: in any cluster also running Envoy Gateway, Istio, NGINX, etc., a selector like -l app.kubernetes.io/name=gateway is ambiguous and risks collisions, and it is a weak application identity.
Proposed changes:
- Use a distinctive
app.kubernetes.io/name, e.g. apip-gateway — aligns with the existing APIP_ / APIP_GW_ config prefix and stays parallel to the sibling event-gateway chart.
- Add
app.kubernetes.io/part-of: wso2-api-platform to the standard label set so the WSO2/product grouping is recorded in the conventionally-correct label (vendor/product belongs in part-of, not name).
Considerations:
app.kubernetes.io/name is also a selector label (used in gateway-operator.selectorLabels), so it is immutable on existing releases — this should be decided before GA, as changing it later requires uninstall/reinstall.
- The chart name and the label are coupled (the label defaults to
.Chart.Name). Renaming the chart in Chart.yaml also changes the published OCI artifact name and resource-name prefix. If only the label should change, set the default via nameOverride and leave Chart.yaml as is.
Version
No response
Related Issue
#2179
Description
The
gateway-helm-chartsetsapp.kubernetes.io/namefrom the chart name, which is currentlygateway(Chart.yaml). This value is too generic: in any cluster also running Envoy Gateway, Istio, NGINX, etc., a selector like-l app.kubernetes.io/name=gatewayis ambiguous and risks collisions, and it is a weak application identity.Proposed changes:
app.kubernetes.io/name, e.g.apip-gateway— aligns with the existingAPIP_/APIP_GW_config prefix and stays parallel to the siblingevent-gatewaychart.app.kubernetes.io/part-of: wso2-api-platformto the standard label set so the WSO2/product grouping is recorded in the conventionally-correct label (vendor/product belongs inpart-of, notname).Considerations:
app.kubernetes.io/nameis also a selector label (used ingateway-operator.selectorLabels), so it is immutable on existing releases — this should be decided before GA, as changing it later requires uninstall/reinstall..Chart.Name). Renaming the chart inChart.yamlalso changes the published OCI artifact name and resource-name prefix. If only the label should change, set the default vianameOverrideand leaveChart.yamlas is.Version
No response
Related Issue
#2179