Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for cfgData (0.14 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/joinconfiguration.go

    func LoadJoinConfigurationFromFile(cfgPath string, opts LoadOrDefaultConfigurationOptions) (*kubeadmapi.JoinConfiguration, error) {
    	klog.V(1).Infof("loading configuration from %q", cfgPath)
    
    	b, err := os.ReadFile(cfgPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to read config from %q ", cfgPath)
    	}
    
    	gvkmap, err := kubeadmutil.SplitYAMLDocuments(b)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 12:41:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/init/addons_test.go

    		}, {
    			name: "kube-proxy",
    			want: []string{options.CfgPath,
    				options.KubeconfigPath,
    				options.KubernetesVersion,
    				options.ImageRepository,
    				options.DryRun,
    				options.APIServerAdvertiseAddress,
    				options.ControlPlaneEndpoint,
    				options.APIServerBindPort,
    				options.NetworkingPodSubnet,
    			},
    		}, {
    			name: "coredns",
    			want: []string{options.CfgPath,
    				options.KubeconfigPath,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 07:35:17 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. cmd/kubeadm/app/util/config/resetconfiguration.go

    func LoadResetConfigurationFromFile(cfgPath string, opts LoadOrDefaultConfigurationOptions) (*kubeadmapi.ResetConfiguration, error) {
    	klog.V(1).Infof("loading configuration from %q", cfgPath)
    
    	b, err := os.ReadFile(cfgPath)
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to read config from %q ", cfgPath)
    	}
    
    	gvkmap, err := kubeadmutil.SplitYAMLDocuments(b)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 12:41:16 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/reset_test.go

    			flags: map[string]string{
    				options.CfgPath: configFilePath,
    			},
    			validate: func(t *testing.T, data *resetData) {
    				// validate that the default value is overwritten
    				if data.forceReset != true {
    					t.Error("Invalid forceReset")
    				}
    			},
    		},
    		{
    			name: "dryRun configured in the config file only",
    			flags: map[string]string{
    				options.CfgPath: configFilePath,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 13:42:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top