...

Source file src/sigs.k8s.io/gateway-api/conformance/utils/flags/flags.go

Documentation: sigs.k8s.io/gateway-api/conformance/utils/flags

     1  /*
     2  Copyright 2022 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // flags contains command-line flag definitions for the conformance
    18  // tests. They're in this package so they can be shared among the
    19  // various suites that are all run by the same Makefile invocation.
    20  package flags
    21  
    22  import (
    23  	"flag"
    24  )
    25  
    26  var (
    27  	GatewayClassName           = flag.String("gateway-class", "gateway-conformance", "Name of GatewayClass to use for tests")
    28  	ShowDebug                  = flag.Bool("debug", false, "Whether to print debug logs")
    29  	CleanupBaseResources       = flag.Bool("cleanup-base-resources", true, "Whether to cleanup base test resources after the run")
    30  	SupportedFeatures          = flag.String("supported-features", "", "Supported features included in conformance tests suites")
    31  	SkipTests                  = flag.String("skip-tests", "", "Comma-separated list of tests to skip")
    32  	RunTest                    = flag.String("run-test", "", "Name of a single test to run, instead of the whole suite")
    33  	ExemptFeatures             = flag.String("exempt-features", "", "Exempt Features excluded from conformance tests suites")
    34  	EnableAllSupportedFeatures = flag.Bool("all-features", false, "Whether to enable all supported features for conformance tests")
    35  	NamespaceLabels            = flag.String("namespace-labels", "", "Comma-separated list of name=value labels to add to test namespaces")
    36  	NamespaceAnnotations       = flag.String("namespace-annotations", "", "Comma-separated list of name=value annotations to add to test namespaces")
    37  )
    38  

View as plain text