Merge pull request #2764 from justinsb/followup_2662

Tweaks to docs for fields that can be empty
This commit is contained in:
Chris Love 2017-06-16 15:34:31 -06:00 committed by GitHub
commit 2b5f7fad38
2 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ Will result in the flag `--runtime-config=batch/v2alpha1=true,apps/v1alpha1=true
This block contains configurations for `kubelet`. See https://kubernetes.io/docs/admin/kubelet/ This block contains configurations for `kubelet`. See https://kubernetes.io/docs/admin/kubelet/
NOTE: Arguments can be set to empty if the field is included in the spec, and an empty string is passed to it. 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.
```yaml ```yaml
spec: spec:
kubelet: kubelet:

View File

@ -28,7 +28,7 @@ func stringPointer(s string) *string {
return &s return &s
} }
func int34Pointer(i32 int32) *int32 { func int32Pointer(i32 int32) *int32 {
return &i32 return &i32
} }
@ -94,7 +94,7 @@ func TestKubeletConfigSpec(t *testing.T) {
}, },
{ {
Config: &kops.KubeletConfigSpec{ Config: &kops.KubeletConfigSpec{
LogLevel: int34Pointer(2), LogLevel: int32Pointer(2),
}, },
Expected: "--v=2", Expected: "--v=2",
}, },