k3s/pkg/kubelet/config
Kubernetes Submit Queue 52b7aab09a
Merge pull request #59849 from yue9944882/forcibly-lower-staticpod-name
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

lowercase node name in generated static pod name 

**What this PR does / why we need it**:
Cast appended node name to lowercase when generating static pod name on kubelet starting.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #59801 

**Special notes for your reviewer**:
Not sure about how to deal with other illegal node names e.g. containing invalid no-alphabetic characters. Maybe just let it fail-hard is not a bad idea.
But considering that containing uppercase letter in the hostname is somehow a usual case even in the production environment of some companies, tolerating uppercase and cast it implicitly should be good.

**Release note**:

```release-note
force node name lowercase on static pod name generating
```
2018-02-25 18:29:51 -08:00
..
BUILD Merge pull request #59849 from yue9944882/forcibly-lower-staticpod-name 2018-02-25 18:29:51 -08:00
apiserver.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
apiserver_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
common.go force node name in generated static pod name lowercase 2018-02-14 17:46:51 -06:00
common_test.go add unit test for static pod name generation 2018-02-26 00:01:09 +08:00
config.go Redesign and implement volume reconstruction work 2018-02-05 13:14:09 -08:00
config_test.go avoid kubelet converts and validates pods multiple times 2017-10-12 08:10:09 +08:00
defaults.go BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes 2017-11-20 14:10:26 -05:00
doc.go
file.go remove unused input param 2017-12-28 17:05:59 +08:00
file_linux.go Change log level for pod manifest 2017-07-25 19:05:32 +08:00
file_linux_test.go remove unused input param 2017-12-28 17:05:59 +08:00
file_unsupported.go fix issue #27137: kubelet detects pod manifest files in the directory using inotify 2016-09-28 10:34:56 +08:00
flags.go Add deprecation warnings for rktnetes flags 2018-01-17 14:05:51 -08:00
http.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
http_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
sources.go start the apimachinery repo 2017-01-11 09:09:48 -05:00