@@ -205,6 +205,40 @@ Copyright %s Example Owners.
205
205
})
206
206
})
207
207
208
+ Describe ("scaffolding a RBAC Kustomization" , func () {
209
+ BeforeEach (func () {
210
+ goldenPath = filepath .Join ("config" , "rbac" , "kustomization.yaml" )
211
+ writeToPath = goldenPath
212
+ })
213
+ Context ("with rbac" , func () {
214
+ It ("should match the golden file" , func () {
215
+ instance := & KustomizeRBAC {}
216
+ instance .Repo = "sigs.k8s.io/kubebuilder/test/project"
217
+ Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
218
+
219
+ // Verify the contents matches the golden file.
220
+ Expect (result .Actual .String ()).To (BeEquivalentTo (result .Golden ))
221
+ })
222
+ })
223
+ })
224
+
225
+ Describe ("scaffolding a manager Kustomization" , func () {
226
+ BeforeEach (func () {
227
+ goldenPath = filepath .Join ("config" , "manager" , "kustomization.yaml" )
228
+ writeToPath = goldenPath
229
+ })
230
+ Context ("with manager" , func () {
231
+ It ("should match the golden file" , func () {
232
+ instance := & KustomizeManager {}
233
+ instance .Repo = "sigs.k8s.io/kubebuilder/test/project"
234
+ Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
235
+
236
+ // Verify the contents matches the golden file.
237
+ Expect (result .Actual .String ()).To (BeEquivalentTo (result .Golden ))
238
+ })
239
+ })
240
+ })
241
+
208
242
Describe ("scaffolding a Kustomize image patch" , func () {
209
243
BeforeEach (func () {
210
244
goldenPath = filepath .Join ("config" , "default" , "manager_image_patch.yaml" )
0 commit comments