Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for cfgData (0.11 sec)

  1. cmd/admin-handlers-idp-config.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(apiErrCode), r.URL)
    		return
    	}
    
    	cfgData := ""
    	{
    		tgtSuffix := ""
    		if cfgTarget != madmin.Default {
    			tgtSuffix = config.SubSystemSeparator + cfgTarget
    		}
    		cfgData = subSys + tgtSuffix + config.KvSpaceSeparator + string(reqBytes)
    	}
    
    	cfg, err := readServerConfig(ctx, objectAPI, nil)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. cmd/bucket-metadata-sys.go

    		// Form empty ILM details with `ExpiryUpdatedAt` field and save
    		var cfgData []byte
    		if expiryRuleRemoved {
    			var lcCfg lifecycle.Lifecycle
    			currtime := time.Now()
    			lcCfg.ExpiryUpdatedAt = &currtime
    			cfgData, err = xml.Marshal(lcCfg)
    			if err != nil {
    				return updatedAt, err
    			}
    		}
    		return sys.updateAndParse(ctx, bucket, configFile, cfgData, false)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    	flags := &diffFlags{
    		cfgPath: "",
    		out:     io.Discard,
    	}
    
    	testCases := []struct {
    		name            string
    		args            []string
    		setManifestPath bool
    		manifestPath    string
    		cfgPath         string
    		expectedError   bool
    	}{
    		{
    			name:            "valid: run diff with empty config path on valid manifest path",
    			cfgPath:         "",
    			setManifestPath: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/config/upgradeconfiguration_test.go

    	tests := []struct {
    		name         string
    		cfgPath      string
    		fileContents string
    		want         *kubeadmapi.UpgradeConfiguration
    		wantErr      bool
    	}{
    		{
    			name:    "Config file does not exists",
    			cfgPath: "tmp",
    			want:    nil,
    			wantErr: true,
    		},
    		{
    			name:         "Config file format is basic text",
    			cfgPath:      filePath,
    			want:         nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/kubeconfig_test.go

    		return "", err
    	}
    	buf.Write(data)
    	buf.WriteString("---\n")
    	data, err = yaml.Marshal(&clusterCfg)
    	if err != nil {
    		return "", err
    	}
    	buf.Write(data)
    
    	err = os.WriteFile(cfgPath, buf.Bytes(), 0644)
    	return cfgPath, err
    }
    
    func TestKubeConfigSubCommandsThatWritesToOut(t *testing.T) {
    
    	// Temporary folders for the test case
    	tmpdir := testutil.SetupTempDir(t)
    	defer os.RemoveAll(tmpdir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/config.go

    			- %s
    		`), kubeadmapiv1old.SchemeGroupVersion),
    		RunE: func(cmd *cobra.Command, args []string) error {
    			if len(cfgPath) == 0 {
    				return errors.Errorf("the --%s flag is mandatory", options.CfgPath)
    			}
    
    			cfgBytes, err := os.ReadFile(cfgPath)
    			if err != nil {
    				return err
    			}
    
    			if err := configutil.ValidateConfig(cfgBytes, allowExperimental); err != nil {
    				return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/options/generic.go

    }
    
    // AddConfigFlag adds the --config flag to the given flagset
    func AddConfigFlag(fs *pflag.FlagSet, cfgPath *string) {
    	fs.StringVar(cfgPath, CfgPath, *cfgPath, "Path to a kubeadm configuration file.")
    }
    
    // AddIgnorePreflightErrorsFlag adds the --ignore-preflight-errors flag to the given flagset
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/certs.go

    	outputFlags.AddFlags(cmd)
    	return cmd
    }
    
    type expirationFlags struct {
    	cfgPath        string
    	kubeconfigPath string
    	cfg            kubeadmapiv1.ClusterConfiguration
    }
    
    func addExpirationFlags(cmd *cobra.Command, flags *expirationFlags) {
    	options.AddConfigFlag(cmd.Flags(), &flags.cfgPath)
    	options.AddCertificateDirFlag(cmd.Flags(), &flags.cfg.CertificatesDir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/join/controlplaneprepare.go

    			options.APIServerAdvertiseAddress,
    			options.CfgPath,
    			options.ControlPlane,
    			options.NodeName,
    			options.FileDiscovery,
    			options.TokenDiscovery,
    			options.TokenDiscoveryCAHash,
    			options.TokenDiscoverySkipCAHash,
    			options.TLSBootstrapToken,
    			options.TokenStr,
    			options.DryRun,
    		}
    	case "kubeconfig":
    		flags = []string{
    			options.CfgPath,
    			options.ControlPlane,
    			options.FileDiscovery,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:46:34 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/kubeconfig.go

    func newCmdUserKubeConfig(out io.Writer) *cobra.Command {
    
    	initCfg := &kubeadmapiv1.InitConfiguration{}
    	clusterCfg := &kubeadmapiv1.ClusterConfiguration{}
    
    	var (
    		token, clientName, cfgPath string
    		organizations              []string
    		validityPeriod             time.Duration
    	)
    
    	// Creates the UX Command
    	cmd := &cobra.Command{
    		Use:     "user",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top