Update code for latest k8s
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
8f5e37a83c
commit
5f7ac28059
792 changed files with 25023 additions and 19841 deletions
2
vendor/k8s.io/apiserver/README.md
generated
vendored
2
vendor/k8s.io/apiserver/README.md
generated
vendored
|
@ -25,6 +25,6 @@ Code changes are made in that location, merged into `k8s.io/kubernetes` and late
|
|||
|
||||
## Things you should *NOT* do
|
||||
|
||||
1. Directly modify any files under `pkg` in this repo. Those are driven from `k8s.io/kuberenetes/staging/src/k8s.io/apiserver`.
|
||||
1. Directly modify any files under `pkg` in this repo. Those are driven from `k8s.io/kubernetes/staging/src/k8s.io/apiserver`.
|
||||
2. Expect compatibility. This repo is changing quickly in direct support of
|
||||
Kubernetes and the API isn't yet stable enough for API guarantees.
|
||||
|
|
8
vendor/k8s.io/apiserver/pkg/util/feature/feature_gate.go
generated
vendored
8
vendor/k8s.io/apiserver/pkg/util/feature/feature_gate.go
generated
vendored
|
@ -67,6 +67,9 @@ const (
|
|||
Alpha = prerelease("ALPHA")
|
||||
Beta = prerelease("BETA")
|
||||
GA = prerelease("")
|
||||
|
||||
// Deprecated
|
||||
Deprecated = prerelease("DEPRECATED")
|
||||
)
|
||||
|
||||
// FeatureGate parses and stores flag gates for known features from
|
||||
|
@ -157,7 +160,7 @@ func (f *featureGate) Set(value string) error {
|
|||
}
|
||||
arr := strings.SplitN(s, "=", 2)
|
||||
k := Feature(strings.TrimSpace(arr[0]))
|
||||
_, ok := known[k]
|
||||
featureSpec, ok := known[k]
|
||||
if !ok {
|
||||
return fmt.Errorf("unrecognized key: %s", k)
|
||||
}
|
||||
|
@ -170,6 +173,9 @@ func (f *featureGate) Set(value string) error {
|
|||
return fmt.Errorf("invalid value of %s: %s, err: %v", k, v, err)
|
||||
}
|
||||
enabled[k] = boolValue
|
||||
if boolValue && featureSpec.PreRelease == Deprecated {
|
||||
glog.Warningf("enabling deprecated feature gate %s", k)
|
||||
}
|
||||
|
||||
// Handle "special" features like "all alpha gates"
|
||||
if fn, found := f.special[k]; found {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue