MCPcopy Create free account
hub / github.com/apache/camel-k / UpdatePlainTextConfigmapWithLabels

Function UpdatePlainTextConfigmapWithLabels

e2e/support/test_support.go:1353–1367  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, ns string, name string, data map[string]string, labels map[string]string)

Source from the content-addressed store, hash-verified

1351 Name: name,
1352 Labels: labels,
1353 },
1354 Data: data,
1355 }
1356 return TestClient(t).Update(ctx, &cm)
1357}
1358
1359func CreateBinaryConfigmap(t *testing.T, ctx context.Context, ns string, name string, data map[string][]byte) error {
1360 cm := corev1.ConfigMap{
1361 TypeMeta: metav1.TypeMeta{
1362 Kind: "ConfigMap",
1363 APIVersion: corev1.SchemeGroupVersion.String(),
1364 },
1365 ObjectMeta: metav1.ObjectMeta{
1366 Namespace: ns,
1367 Name: name,
1368 },
1369 BinaryData: data,
1370 }

Callers 4

TestConfigmapHotReloadFunction · 0.85
UpdatePlainTextConfigmapFunction · 0.85

Calls 3

TestClientFunction · 0.85
StringMethod · 0.65
UpdateMethod · 0.65

Tested by 3

TestConfigmapHotReloadFunction · 0.68