Skip to content

Commit 7fd5579

Browse files
committed
Tweaks to docs for fields that can be empty
Follow up to kubernetes#2662
1 parent 60a0dfc commit 7fd5579

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/cluster_spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Will result in the flag `--runtime-config=batch/v2alpha1=true,apps/v1alpha1=true
135135

136136
This block contains configurations for `kubelet`. See https://kubernetes.io/docs/admin/kubelet/
137137

138-
NOTE: Arguments can be set to empty if the field is included in the spec, and an empty string is passed to it.
138+
NOTE: Where the corresponding configuration value can be empty, fields can be set to empty in the spec, and an empty string will be passed as the configuration value.
139139
```yaml
140140
spec:
141141
kubelet:

pkg/flagbuilder/buildflags_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func stringPointer(s string) *string {
2828
return &s
2929
}
3030

31-
func int34Pointer(i32 int32) *int32 {
31+
func int32Pointer(i32 int32) *int32 {
3232
return &i32
3333
}
3434

@@ -94,7 +94,7 @@ func TestKubeletConfigSpec(t *testing.T) {
9494
},
9595
{
9696
Config: &kops.KubeletConfigSpec{
97-
LogLevel: int34Pointer(2),
97+
LogLevel: int32Pointer(2),
9898
},
9999
Expected: "--v=2",
100100
},

0 commit comments

Comments
 (0)