Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for VerifyGroupNames (1.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/naming/naming.go

    	marshalerType   = reflect.TypeOf((*json.Marshaler)(nil)).Elem()
    	unmarshalerType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem()
    )
    
    // VerifyGroupNames ensures that all groups in the scheme ends with the k8s.io suffix.
    // Exceptions can be tolerated using the legacyUnsuffixedGroups parameter
    func VerifyGroupNames(scheme *runtime.Scheme, legacyUnsuffixedGroups sets.String) error {
    	errs := []error{}
    	for _, gv := range scheme.PrioritizedVersionsAllGroups() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. pkg/controlplane/import_known_versions_test.go

    	// No new groups should be added to the legacyUnsuffixedGroups exclusion list
    	if len(legacyUnsuffixedGroups) != 6 {
    		t.Errorf("No additional unnamespaced groups should be created")
    	}
    
    	if err := apinamingtest.VerifyGroupNames(legacyscheme.Scheme, legacyUnsuffixedGroups); err != nil {
    		t.Errorf("%v", err)
    	}
    }
    
    // These types are registered in external versions, and therefore include json tags,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 22 18:47:31 UTC 2021
    - 3.1K bytes
    - Viewed (0)
Back to top