k3s/pkg/util
Kubernetes Submit Queue c3062bae21
Merge pull request #68233 from luxas/ccm_cleanup
Automatic merge from submit-queue (batch tested with PRs 68171, 67945, 68233). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Move the CloudControllerManagerConfiguration to an API group in `cmd/`

**What this PR does / why we need it**:
This PR is the last piece of https://github.com/kubernetes/kubernetes/issues/67233.
It moves the `CloudControllerManagerConfiguration` to its own `cloudcontrollermanager.config.k8s.io` config API group, but unlike the other components this API group is "private" (only available in `k8s.io/kubernetes`, which limits consumer base), as it's located entirely in `cmd/` vs a staging repo.
This decision was made for now as we're not sure what the story for the ccm loading ComponentConfig files is, and probably a "real" file-loading ccm will never exist in core, only helper libraries. Eventually the ccm will only be a library in any case, and implementors will/can use the base types the ccm library API group provides. It's probably good to note that there is no practical implication of this change as the ccm **cannot** read ComponentConfig files. Hencec the code move isn't user-facing.

With this change, we're able to remove `pkg/apis/componentconfig`, as this was the last consumer. That is hence done in this PR as well (so the move is easily visible in git, vs first one "big add" then a "big remove"). The only piece of code that was used was the flag helper structs, so I moved them to `pkg/util/flag` that I think makes sense for now.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
ref: kubernetes/community#2354

**Special notes for your reviewer**:

This PR builds on top of (first two commits, marked as `Co-authored by: @stewart-yu`) https://github.com/kubernetes/kubernetes/pull/67689

**Release note**:

```release-note
NONE
```
/assign @liggitt @sttts @thockin @stewart-yu
2018-09-05 21:36:41 -07:00
..
async Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
bandwidth Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
config Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
configz set right Content-Type for configz 2018-03-29 16:07:47 +08:00
conntrack Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
coverage Change owners. 2018-08-31 18:01:02 -07:00
dbus
ebtables
env
file
filesystem unpack dynamic kubelet config payloads to files 2018-04-19 09:18:53 -07:00
flag Move the flag registration code from pkg/apis/componentconfig to pkg/util/flag 2018-09-05 14:03:05 +03:00
flock Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
goroutinemap Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
hash
initsystem Add a 'kubeadm upgrade node config' command and finish up the kubelet integration work 2018-06-06 23:17:04 +03:00
interrupt
io Remove unused io util writer & volume host GetWriter() 2018-07-09 14:09:48 -07:00
ipconfig
ipset gofmt update 2018-08-27 05:59:50 +00:00
iptables Avoid allocations when parsing iptables 2018-07-08 10:55:19 +02:00
ipvs gofmt update 2018-08-27 05:59:50 +00:00
keymutex Using a fixed set of locks, then we don't need to free unused locks 2018-08-24 12:24:09 +08:00
labels Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
limitwriter
maps
metrics pkg/util/metrics: idem-potent registration of RateLimiterMetric and never cleanup 2018-08-17 09:15:33 +02:00
mount fix UT errors and add new UTs 2018-09-03 13:35:17 +08:00
net Auto-updated BUILD files 2018-02-27 11:18:11 -08:00
netsh
node update bazel 2018-08-16 09:59:33 +08:00
normalizer
nsenter Implement fixes for flexvolume when kubelet is contanerized 2018-07-03 14:04:52 -04:00
oom Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
parsers
pod Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
procfs Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
reflector/prometheus Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
removeall Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
resizefs Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
resourcecontainer Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
rlimit Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
selinux Update to gazelle 0.12.0 and run hack/update-bazel.sh 2018-06-22 16:22:18 -07:00
slice Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
strings
sysctl
system Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
tail
taints Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
template
term Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
threading
tolerations
version
workqueue/prometheus Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
BUILD Add autogenerated BUILD files. 2018-08-29 14:48:24 -07:00
verify-util-pkg.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00