- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for VerifyConfigMapSignature (0.27 sec)
-
cmd/kubeadm/app/componentconfigs/checksums.go
cm.Annotations = map[string]string{} } cm.Annotations[constants.ComponentConfigHashAnnotationKey] = ChecksumForConfigMap(cm) } // VerifyConfigMapSignature returns true if the config map has checksum annotation and it matches; false otherwise func VerifyConfigMapSignature(cm *v1.ConfigMap) bool { signature, ok := cm.Annotations[constants.ComponentConfigHashAnnotationKey] if !ok { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 17 14:40:46 UTC 2021 - 2.2K bytes - Viewed (0) -
cmd/kubeadm/app/componentconfigs/checksums_test.go
BinaryData: map[string][]byte{ "bar": []byte("baz"), }, }, expectErr: true, }, } for _, test := range tests { t.Run(test.desc, func(t *testing.T) { result := VerifyConfigMapSignature(test.configMap) if result != !test.expectErr { t.Errorf("unexpected result - got %t, expected %t", result, !test.expectErr) } }) }
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/componentconfigs/configset.go
} gvkmap, err := kubeadmutil.SplitYAMLDocuments([]byte(configData)) if err != nil { return nil, err } // If the checksum comes up neatly we assume the config was generated generatedConfig := VerifyConfigMapSignature(configMap) componentCfg, err := h.FromDocumentMap(gvkmap) if err != nil { // If the config was generated and we get UnsupportedConfigVersionError, we skip loading it.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 04 15:36:00 UTC 2024 - 10.8K bytes - Viewed (0)