Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for set_kind (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    		Name:      name,
    		Namespace: namespace,
    	}
    	if fun, ok := f.DefinitionMatchFuncs[key]; ok {
    		return fun(definition, a), a.GetResource(), a.GetKind(), nil
    	}
    
    	// Default is match everything
    	return f.DefaultMatch, a.GetResource(), a.GetKind(), nil
    }
    
    // Matches says whether this policy definition matches the provided admission
    // resource request
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/out.go

    // internal linking.
    func elfImportedSymbols(f *elf.File) []elf.ImportedSymbol {
    	syms, _ := f.DynamicSymbols()
    	var imports []elf.ImportedSymbol
    	for _, s := range syms {
    		if (elf.ST_BIND(s.Info) == elf.STB_GLOBAL || elf.ST_BIND(s.Info) == elf.STB_WEAK) && s.Section == elf.SHN_UNDEF {
    			imports = append(imports, elf.ImportedSymbol{
    				Name:    s.Name,
    				Library: s.Library,
    				Version: s.Version,
    			})
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    		if err := utilyaml.NewYAMLOrJSONDecoder(strings.NewReader(str), len(str)).Decode(&patch.Object); err != nil {
    			return err
    		}
    	} else {
    		return fmt.Errorf("invalid patch type: %T", a.patch)
    	}
    
    	patch.SetKind(kind)
    	patch.SetAPIVersion(a.gvr.GroupVersion().String())
    	patch.SetName(a.name)
    	patch.SetNamespace("default")
    
    	_, err := ctx.DynamicClient.
    		Resource(a.gvr).
    		Namespace(patch.GetNamespace()).
    		Apply(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    		if v.repairGeneration && objectMeta.Generation == 0 {
    			objectMeta.Generation = 1
    		}
    	}
    
    	// restore meta fields, starting clean
    	if foundKind {
    		u.SetKind(kind)
    	}
    	if foundApiVersion {
    		u.SetAPIVersion(apiVersion)
    	}
    	if foundObjectMeta {
    		if err := schemaobjectmeta.SetObjectMeta(u.Object, objectMeta); err != nil {
    			return nil, err
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
Back to top