feat: support custom names for generated k8s resources#3537
feat: support custom names for generated k8s resources#3537arkodg merged 7 commits intoenvoyproxy:mainfrom
Conversation
Relates to envoyproxy#3527 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3537 +/- ##
==========================================
+ Coverage 68.16% 68.18% +0.02%
==========================================
Files 167 168 +1
Lines 20370 20408 +38
==========================================
+ Hits 13885 13915 +30
- Misses 5485 5493 +8
Partials 1000 1000 ☔ View full report in Codecov by Sentry. |
cnvergence
left a comment
There was a problem hiding this comment.
probably we would need to also change it in kubernetes provider
|
hey @cnvergence can you elaborate why thats needed, the above diff is changing the value right before setting the resource name ? |
|
oh @cnvergence I see the issue now, we are fetching based on name and not labels 😢 & cc @dprotaso this is the issue seen in knative-extensions/net-gateway-api#738 |
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
| } | ||
|
|
||
| // OwnerLabels returns the owner labels based on the mergeGateways setting | ||
| func OwnerLabels(gateway *gwapiv1.Gateway, mergeGateways bool) map[string]string { |
|
If this is addressed here, will it also fix when I rename the |
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
thanks for catching this ! ive fixed the deployment targetRef naming in hpa. |
|
On this same issue. I've renamed the deployment by patching the name, this causes the gateway to break. While the deployment with 3 replicas I get this error Last Transition Time: 2024-06-14T15:02:58Z
Message: The Gateway has been scheduled by Envoy Gateway
Observed Generation: 1
Reason: Accepted
Status: True
Type: Accepted
Last Transition Time: 2024-06-14T15:03:07Z
Message: Deployment replicas unavailable
Observed Generation: 1
Reason: NoResources
Status: False
Type: Programmedthe gateway status is this NAME CLASS ADDRESS PROGRAMMED AGE
acme-envoy acme-envoy IPADDRESS False 4m19s |
|
@davem-git can you raise a separate GH issue to highlight the issue you are facing |
* should have been part of envoyproxy#3537 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Relates to #3527