Skip to content

Commit 2973296

Browse files
author
Phillip Wittrock
authored
Merge pull request kubernetes#2406 from pwittrock/apply-docs-concepts
Minor wording updates
2 parents 2d3f9f9 + cef56d1 commit 2973296

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/concepts/tools/kubectl/object-management-using-declarative-config.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ type of the field. There are several types of fields:
494494
- *primitive*: A field of type string, integer, or boolean.
495495
For example, `image` and `replicas` are primitive fields. **Action:** Replace.
496496

497-
- *map*, also called *object*: A field of type map or a complex type that contains subfields. For example `labels`
498-
and `annotations` are maps; `spec` and `metadata` are complex types. **Action:** Merge elements or subfields.
497+
- *map*, also called *object*: A field of type map or a complex type that contains subfields. For example, `labels`,
498+
`annotations`,`spec` and `metadata` are all maps. **Action:** Merge elements or subfields.
499499

500-
- *list*: A field containing a list of items that can be either primitive types, maps, or complex types.
500+
- *list*: A field containing a list of items that can be either primitive types or maps.
501501
For example, `containers`, `ports`, and `args` are lists. **Action:** Varies.
502502

503503
When `kubectl apply` updates a map or list field, it typically does
@@ -508,7 +508,7 @@ and merged.
508508

509509
### Merging changes to primitive fields
510510

511-
Primative fieldss are replaced or cleared.
511+
Primitive fields are replaced or cleared.
512512

513513
**Note:** '-' is used for "not applicable" because the value is not used.
514514

@@ -519,9 +519,9 @@ Primative fieldss are replaced or cleared.
519519
| No | - | Yes | Clear from live configuration. |
520520
| No | - | No | Do nothing. Keep live value. |
521521

522-
### Merging changes to map or complex fields
522+
### Merging changes to map fields
523523

524-
Fields that represent maps or complex-types are merged by comparing each of the sub fields or elements of of the map / complex-type:
524+
Fields that represent maps are merged by comparing each of the subfields or elements of of the map:
525525

526526
**Note:** '-' is used for "not applicable" because the value is not used.
527527

@@ -577,11 +577,11 @@ Add, delete, or update individual elements. This does not preserve ordering.
577577
This merge strategy uses a special tag on each field called a `patchMergeKey`. The
578578
`patchMergeKey` is defined for each field in the Kubernetes source code:
579579
[types.go](https://github.com/kubernetes/kubernetes/blob/master/pkg/api/v1/types.go#L2119)
580-
When merging a list of complex elements, the field specified as the `patchMergeKey` for a given element
580+
When merging a list of maps, the field specified as the `patchMergeKey` for a given element
581581
is used like a map key for that element.
582582

583583
**Example:** Use `kubectl apply` to update the `containers` field of a PodSpec.
584-
This merges the list as though `containers` was a map where each element is keyed
584+
This merges the list as though it was a map where each element is keyed
585585
by `name`.
586586

587587
```yaml

docs/concepts/tools/kubectl/object-management-using-imperative-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Setting this aspect may set different fields for different object types:
7474
- `set` <field>: Set an aspect of an object.
7575

7676
**Note**: In Kubernetes version 1.5, not every verb-driven command has an
77-
associated field-driven command.
77+
associated aspect-driven command.
7878

7979
The `kubectl` tool supports these additional ways to update a live object directly,
8080
however they require a better understanding of the Kubernetes object schema.

0 commit comments

Comments
 (0)