From e792a9f383720023139959f00cdd7f6c6f397253 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 5 Jul 2017 14:52:37 -0700 Subject: [PATCH] fix a bug in the example initializerconfiguration --- .../admin/extensible-admission-controllers.md | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/docs/admin/extensible-admission-controllers.md b/docs/admin/extensible-admission-controllers.md index 8d8e9b80dc..0df6526e9a 100644 --- a/docs/admin/extensible-admission-controllers.md +++ b/docs/admin/extensible-admission-controllers.md @@ -112,19 +112,18 @@ apiVersion: admissionregistration.k8s.io/v1alpha1 kind: InitializerConfiguration metadata: name: example-config -spec: - initializers: - # the name needs to be fully qualified, i.e., containing at least two "." - - name: podimage.example.com - rules: - # apiGroups, apiVersion, resources all support wildcard "*". - # "*" cannot be mixed with non-wildcard. - - apiGroups: - - "" - apiVersions: - - v1 - resources: - - pods +initializers: + # the name needs to be fully qualified, i.e., containing at least two "." + - name: podimage.example.com + rules: + # apiGroups, apiVersion, resources all support wildcard "*". + # "*" cannot be mixed with non-wildcard. + - apiGroups: + - "" + apiVersions: + - v1 + resources: + - pods ``` Make sure that all expansions of the `` tuple