Skip to content

Commit

Permalink
refactory
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed Sep 25, 2024
1 parent abdaefd commit ae3c01c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions internal/gatewayapi/conformance/support_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ const (
var ExtendedFeatures = sets.New[features.FeatureName]()

func init() {
for _, feature := range features.GatewayExtendedFeatures.UnsortedList() {
ExtendedFeatures.Insert(feature.Name)
}
for _, feature := range features.HTTPRouteExtendedFeatures.UnsortedList() {
ExtendedFeatures.Insert(feature.Name)
}
for _, feature := range features.MeshExtendedFeatures.UnsortedList() {
featureLists := sets.New[features.Feature]().
Insert(features.GatewayExtendedFeatures.UnsortedList()...).
Insert(features.HTTPRouteExtendedFeatures.UnsortedList()...).
Insert(features.MeshExtendedFeatures.UnsortedList()...)

for _, feature := range featureLists.UnsortedList() {
ExtendedFeatures.Insert(feature.Name)
}
}
Expand Down

0 comments on commit ae3c01c

Please sign in to comment.