Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CheckDeprecatedFlags (0.15 sec)

  1. cmd/kubeadm/app/features/features.go

    	}
    
    	return featureGate, nil
    }
    
    // CheckDeprecatedFlags takes a list of existing feature gate flags and validates against the current feature flag set.
    // It used during upgrades for ensuring consistency of feature gates used in an existing cluster, that might
    // be created with a previous version of kubeadm, with the set of features currently supported by kubeadm
    func CheckDeprecatedFlags(f *FeatureList, features map[string]bool) map[string]string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 13:55:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/features/features_test.go

    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			msg := CheckDeprecatedFlags(&someFeatures, test.features)
    			if !reflect.DeepEqual(test.expectedMsg, msg) {
    				t.Errorf("CheckDeprecatedFlags() = %v, want %v", msg, test.expectedMsg)
    			}
    		})
    	}
    }
    
    func TestSupports(t *testing.T) {
    	tests := []struct {
    		name        string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 04:57:22 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/common.go

    		}
    	}
    
    	// Check if feature gate flags used in the cluster are consistent with the set of features currently supported by kubeadm
    	if msg := features.CheckDeprecatedFlags(&features.InitFeatureGates, initCfg.FeatureGates); len(msg) > 0 {
    		for _, m := range msg {
    			printer.Printf("[upgrade/config] %s\n", m)
    		}
    	}
    
    	// If the user told us to print this information out; do it!
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top