Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 252 for mutate1 (0.14 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

    - Method mutate(java.lang.String) is not a valid rule method: A method annotated with @Mutate must have void return type."""
        }
    
        static class NoSubjectMutationRule extends RuleSource {
            @Mutate
            void mutate() {}
        }
    
        def "mutation rule must have a subject"() {
            when:
            extract(NoSubjectMutationRule)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/componentconfigs/kubelet_unix.go

    	"k8s.io/utils/ptr"
    
    	"k8s.io/kubernetes/cmd/kubeadm/app/util/initsystem"
    )
    
    // Mutate allows applying pre-defined modifications to the config before it's marshaled.
    func (kc *kubeletConfig) Mutate() error {
    	if err := mutateResolverConfig(&kc.config, isServiceActive); err != nil {
    		return err
    	}
    	return nil
    }
    
    // mutateResolverConfig mutates the ResolverConfig in the kubeletConfig dynamically.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/componentconfigs/kubelet_unix_test.go

    		cfg                 *kubeletconfig.KubeletConfiguration
    		isServiceActiveFunc func(string) (bool, error)
    		expected            *kubeletconfig.KubeletConfiguration
    	}{
    		{
    			name: "the resolver config should not be mutated when it was set already even if systemd-resolved is active",
    			cfg: &kubeletconfig.KubeletConfiguration{
    				ResolverConfig: ptr.To(fooResolverConfig),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. pkg/kubeapiserver/default_storage_factory_builder.go

    	EtcdServersOverrides      []string
    }
    
    // Complete completes the StorageFactoryConfig with provided etcdOptions returning completedStorageFactoryConfig.
    // This method mutates the receiver (StorageFactoryConfig).  It must never mutate the inputs.
    func (c *StorageFactoryConfig) Complete(etcdOptions *serveroptions.EtcdOptions) *completedStorageFactoryConfig {
    	c.StorageConfig = etcdOptions.StorageConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 20:14:51 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

                class MyPlugin extends RuleSource {
                    @Mutate
                    void tasks(ModelMap<EchoTask> tasks) {
                        tasks.create("test")
                    }
                    @Mutate
                    void applyMessages(@Path("tasks.test") Task task) {
                        println "as task: \$task"
                    }
                    @Mutate
                    void applyMessages(@Path("tasks.test") EchoTask task) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/plugins/NativeComponentModelPluginTest.groovy

            when:
            registry
                .mutate(NativeToolChainRegistry) { it.add toolChain("tc") }
                .mutate(PlatformContainer) { it.add named(NativePlatformInternal, "platform") }
                .mutate(BuildTypeContainer) { it.add named(BuildType, "bt") }
                .mutate(FlavorContainer) { it.add named(Flavor, "flavor1") }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    	tcs := []struct {
    		config   string
    		webhook  string
    		mutated  bool
    		expected string
    	}{
    		{
    			config:   "test-config",
    			webhook:  "test-webhook",
    			mutated:  true,
    			expected: `{"configuration":"test-config","webhook":"test-webhook","mutated":true}`,
    		},
    		{
    			config:   "test-config",
    			webhook:  "test-webhook",
    			mutated:  false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/AbstractTask.java

            taskMutator.mutate("Task.setDependsOn(Iterable)", new Runnable() {
                @Override
                public void run() {
                    lifecycleDependencies.setValues(dependsOn);
                }
            });
        }
    
        @Override
        public void onlyIf(final Closure onlyIfClosure) {
            taskMutator.mutate("Task.onlyIf(Closure)", new Runnable() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:43 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  9. src/internal/trace/order.go

    	var curCtx, newCtx schedCtx
    	curCtx.M = m
    	newCtx.M = m
    
    	var ms *mState
    	if m == NoThread {
    		curCtx.P = NoProc
    		curCtx.G = NoGoroutine
    		newCtx = curCtx
    	} else {
    		// Pull out or create the mState for this event.
    		var ok bool
    		ms, ok = o.mStates[m]
    		if !ok {
    			ms = &mState{
    				g: NoGoroutine,
    				p: NoProc,
    			}
    			o.mStates[m] = ms
    		}
    		curCtx.P = ms.p
    		curCtx.G = ms.g
    		newCtx = curCtx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/etcd.go

    }
    
    // ApplyTo mutates the provided server.Config.  It must never mutate the receiver (EtcdOptions).
    func (s *EtcdOptions) ApplyTo(c *server.Config) error {
    	if s == nil {
    		return nil
    	}
    
    	storageConfigCopy := s.StorageConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 15:02:16 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top