File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,20 @@ func (tc TestContext) AddPackagemanifestsTarget(operatorType projutil.OperatorTy
73
73
return nil
74
74
}
75
75
76
+ // DisableManifestsInteractiveMode will update the Makefile to disable the interactive mode
77
+ func (tc TestContext ) DisableManifestsInteractiveMode () error {
78
+ // Todo: check if we cannot improve it since the replace/content will exists in the
79
+ // pkgmanifest target if it be scaffolded before this call
80
+ content := "$(OPERATOR_SDK) generate kustomize manifests"
81
+ replace := content + " --interactive=false"
82
+ return ReplaceInFile (filepath .Join (tc .Dir , "Makefile" ), content , replace )
83
+ }
84
+
76
85
// GenerateBundle runs all commands to create an operator bundle.
77
86
func (tc TestContext ) GenerateBundle () error {
87
+ if err := tc .DisableManifestsInteractiveMode (); err != nil {
88
+ return err
89
+ }
90
+
78
91
return tc .Make ("bundle" , "IMG=" + tc .ImageName )
79
92
}
You can’t perform that action at this time.
0 commit comments