Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for newTemplate (0.17 sec)

  1. pkg/registry/core/podtemplate/strategy.go

    	newTemplate := obj.(*api.PodTemplate)
    	oldTemplate := old.(*api.PodTemplate)
    
    	pod.DropDisabledTemplateFields(&newTemplate.Template, &oldTemplate.Template)
    
    	// Any changes to the template increment the generation number.
    	// See metav1.ObjectMeta description for more information on Generation.
    	if !apiequality.Semantic.DeepEqual(newTemplate.Template, oldTemplate.Template) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  2. pkg/controller/daemon/util/daemonset_util.go

    func CreatePodTemplate(template v1.PodTemplateSpec, generation *int64, hash string) v1.PodTemplateSpec {
    	newTemplate := *template.DeepCopy()
    
    	AddOrUpdateDaemonPodTolerations(&newTemplate.Spec)
    
    	if newTemplate.ObjectMeta.Labels == nil {
    		newTemplate.ObjectMeta.Labels = make(map[string]string)
    	}
    	if generation != nil {
    		newTemplate.ObjectMeta.Labels[extensions.DaemonSetTemplateGenerationKey] = fmt.Sprint(*generation)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 18 11:54:59 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  3. pkg/bootstrap/instance.go

    	return &instance{
    		Config: cfg,
    	}
    }
    
    type instance struct {
    	Config
    }
    
    func (i *instance) WriteTo(templateFile string, w io.Writer) error {
    	// Get the input bootstrap template.
    	t, err := newTemplate(templateFile)
    	if err != nil {
    		return err
    	}
    
    	// Create the parameters for the template.
    	templateParams, err := i.toTemplateParams()
    	if err != nil {
    		return err
    	}
    
    	// Execute the template.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/text/template/parse/parse.go

    	var end Node
    	block.Root, end = block.itemList()
    	if end.Type() != nodeEnd {
    		t.errorf("unexpected %s in %s", end, context)
    	}
    	block.add()
    	block.stopParse()
    
    	return t.newTemplate(token.pos, token.line, name, pipe)
    }
    
    // Template:
    //
    //	{{template stringValue pipeline}}
    //
    // Template keyword is past. The name must be something that can evaluate
    // to a string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  5. src/text/template/parse/node.go

    	Name string    // The name of the template (unquoted).
    	Pipe *PipeNode // The command to evaluate as dot for the template.
    }
    
    func (t *Tree) newTemplate(pos Pos, line int, name string, pipe *PipeNode) *TemplateNode {
    	return &TemplateNode{tr: t, NodeType: NodeTemplate, Pos: pos, Line: line, Name: name, Pipe: pipe}
    }
    
    func (t *TemplateNode) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	sandbox := makeFakePodSandbox(t, m, sandboxTemplate{
    		pod:       pod,
    		createdAt: fakeCreatedAt,
    		state:     runtimeapi.PodSandboxState_SANDBOX_READY,
    	})
    
    	var containers []*apitest.FakeContainer
    	newTemplate := func(c *v1.Container) containerTemplate {
    		return containerTemplate{
    			pod:       pod,
    			container: c,
    			createdAt: fakeCreatedAt,
    			state:     runtimeapi.ContainerState_CONTAINER_RUNNING,
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
Back to top