File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,13 @@ func buildStatuses(graph *graph.Graph) Statuses {
79
79
}
80
80
81
81
if graph .GatewayClass != nil {
82
- conds := make ([] conditions.Condition , 0 , len ( graph . GatewayClass . Conditions ) + len ( conditions . NewDefaultGatewayClassConditions ()) )
82
+ defaultConds := conditions .NewDefaultGatewayClassConditions ()
83
83
84
- // We add default conditions first, so that any additional conditions will override them, which is
84
+ conds := make ([]conditions.Condition , 0 , len (graph .GatewayClass .Conditions )+ len (defaultConds ))
85
+
86
+ // We add default conds first, so that any additional conditions will override them, which is
85
87
// ensured by DeduplicateConditions.
86
- conds = append (conds , conditions . NewDefaultGatewayClassConditions () ... )
88
+ conds = append (conds , defaultConds ... )
87
89
conds = append (conds , graph .GatewayClass .Conditions ... )
88
90
89
91
statuses .GatewayClassStatus = & GatewayClassStatus {
You can’t perform that action at this time.
0 commit comments