Skip to content

Commit 5d39637

Browse files
authored
fix(Conformance): Add namespace-(labels|annotations) flag parsing (#984)
-namespace-labels key=value,k=v -namespace-annotations key=value,k=v
1 parent cb2509e commit 5d39637

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
@@ -135,6 +135,9 @@ func DefaultOptions(t *testing.T) confsuite.ConformanceOptions {
135135

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

0 commit comments

Comments
 (0)