Skip to content

Commit 553f08e

Browse files
committed
Cleanup: remove implicit emitter flag association
1 parent e4760c5 commit 553f08e

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

cmd/print.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ type PrintRunner struct {
8181
// emitter indicates which emitter is used to generate the Gateway API resources.
8282
// Defaults to "standard".
8383
emitter string
84-
85-
86-
84+
8785
// allowExperimentalGatewayAPI indicates whether Experimental Gateway API features (like CORS, URLRewrite) should be included in the output.
8886
allowExperimentalGatewayAPI bool
8987
}
@@ -399,13 +397,6 @@ func (pr *PrintRunner) getProviderSpecificFlags() map[string]map[string]string {
399397
providerSpecificFlags := make(map[string]map[string]string)
400398
for flagName, value := range pr.providerSpecificFlags {
401399
provider, found := lo.Find(pr.providers, func(p string) bool { return strings.HasPrefix(flagName, fmt.Sprintf("%s-", p)) })
402-
if !found {
403-
// If not found in providers, check if it matches the emitter
404-
if strings.HasPrefix(flagName, fmt.Sprintf("%s-", pr.emitter)) {
405-
provider = pr.emitter
406-
found = true
407-
}
408-
}
409400
if !found {
410401
continue
411402
}

0 commit comments

Comments
 (0)