Skip to content

Commit d8ed107

Browse files
authored
Merge pull request #41019 from able8/fix-unknown-labels-field
Fix: unknown field "labels" in configMapGenerator
2 parents b2596d2 + f399fec commit d8ed107

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,9 @@ For example, to generate a ConfigMap from files `configure-pod-container/configm
411411
cat <<EOF >./kustomization.yaml
412412
configMapGenerator:
413413
- name: game-config-4
414-
labels:
415-
game-config: config-4
414+
options:
415+
labels:
416+
game-config: config-4
416417
files:
417418
- configure-pod-container/configmap/game.properties
418419
EOF
@@ -477,8 +478,9 @@ with the key `game-special-key`
477478
cat <<EOF >./kustomization.yaml
478479
configMapGenerator:
479480
- name: game-config-5
480-
labels:
481-
game-config: config-5
481+
options:
482+
labels:
483+
game-config: config-5
482484
files:
483485
- game-special-key=configure-pod-container/configmap/game.properties
484486
EOF

0 commit comments

Comments
 (0)