- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for SignConfigMap (0.19 sec)
-
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) -
cmd/kubeadm/app/componentconfigs/checksums.go
} sort.Strings(keys) for _, key := range keys { hash.Write(cm.BinaryData[key]) } return fmt.Sprintf("sha256:%x", hash.Sum(nil)) } // SignConfigMap calculates the supplied config map checksum and annotates it with it func SignConfigMap(cm *v1.ConfigMap) { if cm.Annotations == nil { cm.Annotations = map[string]string{} } cm.Annotations[constants.ComponentConfigHashAnnotationKey] = ChecksumForConfigMap(cm)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 17 14:40:46 UTC 2021 - 2.2K bytes - Viewed (0) -
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) -
cmd/kubeadm/app/componentconfigs/checksums_test.go
} }) } } func TestSignConfigMap(t *testing.T) { for _, test := range checksumTestCases { t.Run(test.desc, func(t *testing.T) { target := test.configMap.DeepCopy() SignConfigMap(target) // Verify that we have a correct annotation signature, ok := target.Annotations[constants.ComponentConfigHashAnnotationKey] if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 17 14:40:46 UTC 2021 - 5.8K bytes - Viewed (0) -
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) -
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) -
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)