Function
UpdatePlainTextConfigmapWithLabels
(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 | |
| 1359 | func 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 | } |