Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SignConfigMap (0.36 sec)

  1. pkg/controller/bootstrap/bootstrapsigner_test.go

    	}
    	return ret
    }
    
    func TestNoConfigMap(t *testing.T) {
    	signer, cl, _, _, err := newSigner()
    	if err != nil {
    		t.Fatalf("error creating Signer: %v", err)
    	}
    	signer.signConfigMap(context.TODO())
    	verifyActions(t, []core.Action{}, cl.Actions())
    }
    
    func TestSimpleSign(t *testing.T) {
    	signer, cl, secrets, configMaps, err := newSigner()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pkg/controller/bootstrap/bootstrapsigner.go

    	key, quit := e.syncQueue.Get()
    	if quit {
    		return
    	}
    	defer e.syncQueue.Done(key)
    
    	e.signConfigMap(ctx)
    }
    
    // signConfigMap computes the signatures on our latest cached objects and writes
    // back if necessary.
    func (e *Signer) signConfigMap(ctx context.Context) {
    	origCM := e.getConfigMap()
    
    	if origCM == nil {
    		return
    	}
    
    	var needUpdate = false
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/kubelet/config.go

    		},
    		Data: map[string]string{
    			kubeadmconstants.KubeletBaseConfigurationConfigMapKey: string(kubeletBytes),
    		},
    	}
    
    	if !kubeletCfg.IsUserSupplied() {
    		componentconfigs.SignConfigMap(configMap)
    	}
    
    	if err := apiclient.CreateOrUpdateConfigMap(client, configMap); err != nil {
    		return err
    	}
    
    	if err := createConfigMapRBACRules(client); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 02 12:34:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/addons/proxy/proxy.go

    		return []byte(""), errors.Wrap(err, "unable to decode kube-proxy configmap")
    	}
    
    	if !kubeProxyCfg.IsUserSupplied() {
    		componentconfigs.SignConfigMap(kubeproxyConfigMap)
    	}
    
    	// Create the ConfigMap for kube-proxy or update it in case it already exists
    	return []byte(""), apiclient.CreateOrUpdateConfigMap(client, kubeproxyConfigMap)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 13:23:44 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/componentconfigs/fakeconfig_test.go

    			Namespace: metav1.NamespaceSystem,
    		},
    		Data: map[string]string{
    			constants.ClusterConfigurationConfigMapKey: dedent.Dedent(yaml),
    		},
    	}
    
    	if signIt {
    		SignConfigMap(cm)
    	}
    
    	return cm
    }
    
    // oldClusterConfigVersion is used as an old unsupported version in tests throughout this file
    const oldClusterConfigVersion = "v1alpha1"
    
    var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:36:00 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top