Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 356 for Iflag (0.6 sec)

  1. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    	}
    	return allErrs
    }
    
    // ValidateMixedArguments validates passed arguments
    func ValidateMixedArguments(flag *pflag.FlagSet) error {
    	// If --config isn't set, we have nothing to validate
    	if !flag.Changed("config") {
    		return nil
    	}
    
    	mixedInvalidFlags := []string{}
    	flag.Visit(func(f *pflag.Flag) {
    		if isAllowedFlag(f.Name) {
    			// "--skip-*" flags or other allowed flags can be set with --config
    			return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/kube-scheduler/app/server_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			for k, v := range tc.restoreFeatures {
    				featuregatetesting.SetFeatureGateDuringTest(t, feature.DefaultFeatureGate, k, v)
    			}
    
    			fs := pflag.NewFlagSet("test", pflag.PanicOnError)
    			opts := options.NewOptions()
    
    			// use listeners instead of static ports so parallel test runs don't conflict
    			opts.SecureServing.Listener = makeListener(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. cmd/kube-apiserver/app/options/options_test.go

    	netutils "k8s.io/utils/net"
    )
    
    func TestAddFlags(t *testing.T) {
    	fs := pflag.NewFlagSet("addflagstest", pflag.PanicOnError)
    	s := NewServerRunOptions()
    	for _, f := range s.Flags().FlagSets {
    		fs.AddFlagSet(f)
    	}
    
    	args := []string{
    		"--enable-admission-plugins=AlwaysDeny",
    		"--admission-control-config-file=/admission-control-config",
    		"--advertise-address=192.168.10.10",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/kubeapiserver/options/authentication.go

    func (o *BuiltInAuthenticationOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    	fs.StringSliceVar(&o.APIAudiences, "api-audiences", o.APIAudiences, ""+
    		"Identifiers of the API. The service account token authenticator will validate that "+
    		"tokens used against the API are bound to at least one of these audiences. If the "+
    		"--service-account-issuer flag is configured and this flag is not, this field "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  5. cmd/import-boss/main.go

    package main
    
    import (
    	"flag"
    	"os"
    
    	"errors"
    	"fmt"
    	"path/filepath"
    	"regexp"
    	"sort"
    	"strings"
    	"time"
    
    	"github.com/spf13/pflag"
    	"golang.org/x/tools/go/packages"
    	"k8s.io/klog/v2"
    	"sigs.k8s.io/yaml"
    )
    
    const (
    	rulesFileName = ".import-restrictions"
    	goModFile     = "go.mod"
    )
    
    func main() {
    	klog.InitFlags(nil)
    	pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/join.go

    */
    
    package cmd
    
    import (
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strings"
    	"text/template"
    
    	"github.com/lithammer/dedent"
    	"github.com/pkg/errors"
    	"github.com/spf13/cobra"
    	flag "github.com/spf13/pflag"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	clientset "k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/tools/clientcmd"
    	clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
    	"k8s.io/klog/v2"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 15:33:38 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. pkg/kubeapiserver/options/authorization.go

    limitations under the License.
    */
    
    package options
    
    import (
    	"fmt"
    	"strings"
    	"time"
    
    	genericfeatures "k8s.io/apiserver/pkg/features"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    
    	"github.com/spf13/pflag"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apimachinery/pkg/util/wait"
    	authzconfig "k8s.io/apiserver/pkg/apis/apiserver"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/validation/validation_test.go

    	for _, rt := range tests {
    		f := pflag.NewFlagSet("test", pflag.ContinueOnError)
    		if f.Parsed() {
    			t.Error("f.Parse() = true before Parse")
    		}
    		f.String("foo", "", "flag bound to config object")
    		f.StringSliceVar(&ignorePreflightErrors, "ignore-preflight-errors", ignorePreflightErrors, "flag not bound to config object")
    		f.Bool("allow-experimental-upgrades", true, "upgrade flags for plan and apply command")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  9. pkg/test/framework/resource/flags.go

    func init() {
    	log.EnableKlogWithGoFlag()
    	flag.StringVar(&settingsFromCommandLine.BaseDir, "istio.test.work_dir", os.TempDir(),
    		"Local working directory for creating logs/temp files. If left empty, os.TempDir() is used.")
    
    	var env string
    	flag.StringVar(&env, "istio.test.env", "", "Deprecated. This flag does nothing")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/flags.cc

      jitrt_flag_list = new std::vector<Flag>({
          Flag("always_specialize", &jitrt_flags->always_specialize, ""),
          Flag("cost_driven_async_parallel_for",
               &jitrt_flags->cost_driven_async_parallel_for, ""),
          Flag("enable_crash_reproducer", &jitrt_flags->enable_crash_reproducer,
               ""),
          Flag("log_query_of_death", &jitrt_flags->log_query_of_death, ""),
          Flag("vectorize", &jitrt_flags->vectorize, ""),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top