Skip to content

Commit 09ff2d8

Browse files
committed
fix(Conformance): Add namespace-(labels|annotations) flag parsing
-namespace-labels key=value,k=v -namespace-annotations key=value,k=v
1 parent d7e1b64 commit 09ff2d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

conformance/conformance.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ func DefaultOptions(t *testing.T) confsuite.ConformanceOptions {
134134

135135
exemptFeatures := confsuite.ParseSupportedFeatures(*confflags.ExemptFeatures)
136136
skipTests := confsuite.ParseSkipTests(*confflags.SkipTests)
137+
namespaceLabels := confsuite.ParseKeyValuePairs(*confflags.NamespaceLabels)
138+
namespaceAnnotations := confsuite.ParseKeyValuePairs(*confflags.NamespaceAnnotations)
139+
137140
// Initially, run the GatewayLayerProfile. This will expand as other profiles
138141
// (EPP, ModelServer) are added and can be selected via flags in future iterations.
139142
conformanceProfiles := sets.New(GatewayLayerProfileName)
@@ -173,6 +176,8 @@ func DefaultOptions(t *testing.T) confsuite.ConformanceOptions {
173176
ManifestFS: []fs.FS{&Manifests},
174177
ReportOutputPath: *confflags.ReportOutput,
175178
SkipProvisionalTests: *confflags.SkipProvisionalTests,
179+
NamespaceLabels: namespaceLabels,
180+
NamespaceAnnotations: namespaceAnnotations,
176181
// TODO: Add the inference extension specific fields to ConformanceOptions struct if needed,
177182
// or handle them during report generation.
178183
// GatewayAPIInferenceExtensionChannel: inferenceExtensionChannel,

0 commit comments

Comments
 (0)