Remove initializers (ja) (#14626)
Initializers are removed in 1.14 [1] [1]: https://github.com/kubernetes/kubernetes/pull/72972
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
7df7a2ee58
commit
0180769e18
@@ -1,13 +0,0 @@
|
|||||||
kind: InitializerConfiguration
|
|
||||||
apiVersion: admissionregistration.k8s.io/v1alpha1
|
|
||||||
metadata:
|
|
||||||
name: pvlabel.kubernetes.io
|
|
||||||
initializers:
|
|
||||||
- name: pvlabel.kubernetes.io
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
apiVersions:
|
|
||||||
- "*"
|
|
||||||
resources:
|
|
||||||
- persistentvolumes
|
|
||||||
@@ -89,9 +89,6 @@ func validateObject(obj runtime.Object) (errors field.ErrorList) {
|
|||||||
// Enable CustomPodDNS for testing
|
// Enable CustomPodDNS for testing
|
||||||
utilfeature.DefaultFeatureGate.Set("CustomPodDNS=true")
|
utilfeature.DefaultFeatureGate.Set("CustomPodDNS=true")
|
||||||
switch t := obj.(type) {
|
switch t := obj.(type) {
|
||||||
case *admissionregistration.InitializerConfiguration:
|
|
||||||
// cluster scope resource
|
|
||||||
errors = ar_validation.ValidateInitializerConfiguration(t)
|
|
||||||
case *api.ConfigMap:
|
case *api.ConfigMap:
|
||||||
if t.Namespace == "" {
|
if t.Namespace == "" {
|
||||||
t.Namespace = api.NamespaceDefault
|
t.Namespace = api.NamespaceDefault
|
||||||
@@ -299,7 +296,6 @@ func TestExampleObjectSchemas(t *testing.T) {
|
|||||||
},
|
},
|
||||||
"admin/cloud": {
|
"admin/cloud": {
|
||||||
"ccm-example": {&api.ServiceAccount{}, &rbac.ClusterRoleBinding{}, &extensions.DaemonSet{}},
|
"ccm-example": {&api.ServiceAccount{}, &rbac.ClusterRoleBinding{}, &extensions.DaemonSet{}},
|
||||||
"pvl-initializer-config": {&admissionregistration.InitializerConfiguration{}},
|
|
||||||
},
|
},
|
||||||
"admin/dns": {
|
"admin/dns": {
|
||||||
"busybox": {&api.Pod{}},
|
"busybox": {&api.Pod{}},
|
||||||
|
|||||||
Reference in New Issue
Block a user