Skip to content

Commit c38b67c

Browse files
committed
fix gen
Signed-off-by: zirain <zirain2009@gmail.com>
1 parent 7565694 commit c38b67c

4 files changed

Lines changed: 38 additions & 4 deletions

File tree

internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,18 @@ envoyProxyForGatewayClass:
172172
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
173173
max_active_downstream_connections: 50000
174174
logging: {}
175-
status: {}
175+
status:
176+
ancestors:
177+
- ancestorRef:
178+
group: gateway.networking.k8s.io
179+
kind: GatewayClass
180+
name: eg
181+
conditions:
182+
- lastTransitionTime: null
183+
message: ""
184+
reason: Accepted
185+
status: "True"
186+
type: Accepted
176187
gatewayClass:
177188
apiVersion: gateway.networking.k8s.io/v1
178189
kind: GatewayClass

internal/cmd/egctl/testdata/translate/out/invalid-envoyproxy.all.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ envoyProxyForGatewayClass:
2121
logging:
2222
level:
2323
default: warn
24-
status: {}
24+
status:
25+
ancestors:
26+
- ancestorRef:
27+
group: gateway.networking.k8s.io
28+
kind: GatewayClass
29+
name: eg
30+
conditions:
31+
- lastTransitionTime: null
32+
message: dynamic_resources cannot be modified
33+
reason: InvalidParameters
34+
status: "False"
35+
type: Accepted
2536
gatewayClass:
2637
apiVersion: gateway.networking.k8s.io/v1
2738
kind: GatewayClass

internal/cmd/egctl/testdata/translate/out/valid-envoyproxy.all.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@ envoyProxyForGatewayClass:
1616
externalTrafficPolicy: Local
1717
type: LoadBalancer
1818
type: Kubernetes
19-
status: {}
19+
status:
20+
ancestors:
21+
- ancestorRef:
22+
group: gateway.networking.k8s.io
23+
kind: GatewayClass
24+
name: eg
25+
conditions:
26+
- lastTransitionTime: null
27+
message: ""
28+
reason: Accepted
29+
status: "True"
30+
type: Accepted
2031
gatewayClass:
2132
apiVersion: gateway.networking.k8s.io/v1
2233
kind: GatewayClass

internal/gatewayapi/status/envoyproxy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import (
1212
)
1313

1414
func UpdateEnvoyProxyStatusAccepted(ep *egv1a1.EnvoyProxy, ancestor *gwapiv1.ParentReference,
15-
reason egv1a1.EnvoyProxyConditionReason, msg string) {
15+
reason egv1a1.EnvoyProxyConditionReason, msg string,
16+
) {
1617
if ep == nil || ancestor == nil {
1718
return
1819
}

0 commit comments

Comments
 (0)