@@ -82,25 +82,12 @@ Count int `+"`"+`json:"count,omitempty"`+"`"+`
82
82
fmt .Sprintf ("%s_webhook.go" , strings .ToLower (kbc .Kind ))))
83
83
ExpectWithOffset (1 , err ).NotTo (HaveOccurred ())
84
84
85
- By ("uncomment kustomization.yaml to enable webhook and ca injection" )
86
- ExpectWithOffset (1 , pluginutil .UncommentCode (
87
- filepath .Join (kbc .Dir , "config" , "crd" , "kustomization.yaml" ),
88
- fmt .Sprintf ("#- path: patches/webhook_in_%s.yaml" , kbc .Resources ), "#" )).To (Succeed ())
89
- ExpectWithOffset (1 , pluginutil .UncommentCode (
90
- filepath .Join (kbc .Dir , "config" , "crd" , "kustomization.yaml" ),
91
- fmt .Sprintf ("#- path: patches/cainjection_in_%s.yaml" , kbc .Resources ), "#" )).To (Succeed ())
92
- ExpectWithOffset (1 , pluginutil .UncommentCode (
93
- filepath .Join (kbc .Dir , "config" , "default" , "kustomization.yaml" ),
94
- "#- ../webhook" , "#" )).To (Succeed ())
95
85
ExpectWithOffset (1 , pluginutil .UncommentCode (
96
86
filepath .Join (kbc .Dir , "config" , "default" , "kustomization.yaml" ),
97
87
"#- ../certmanager" , "#" )).To (Succeed ())
98
88
ExpectWithOffset (1 , pluginutil .UncommentCode (
99
89
filepath .Join (kbc .Dir , "config" , "default" , "kustomization.yaml" ),
100
90
"#- ../prometheus" , "#" )).To (Succeed ())
101
- ExpectWithOffset (1 , pluginutil .UncommentCode (
102
- filepath .Join (kbc .Dir , "config" , "default" , "kustomization.yaml" ),
103
- "#- manager_webhook_patch.yaml" , "#" )).To (Succeed ())
104
91
ExpectWithOffset (1 , pluginutil .UncommentCode (
105
92
filepath .Join (kbc .Dir , "config" , "default" , "kustomization.yaml" ),
106
93
"#- webhookcainjection_patch.yaml" , "#" )).To (Succeed ())
0 commit comments