Limit integration test operator to monitored namespaces
@@ -45,16 +45,18 @@ const (
func NewEnvironment(kubeConfig *rest.Config) *Environment {
atomic.AddInt32(&namespaceCounter, 1)
namespaceID := gomegaConfig.GinkgoConfig.ParallelNode*100 + int(namespaceCounter)
+ ns := utils.GetNamespaceName(namespaceID)
return &Environment{
Environment: &utils.Environment{
ID: namespaceID,
- Namespace: utils.GetNamespaceName(namespaceID),
+ Namespace: ns,
KubeConfig: kubeConfig,
Config: &config.Config{
CtxTimeOut: 10 * time.Second,
MeltdownDuration: defaultTestMeltdownDuration * time.Second,
MeltdownRequeueAfter: defaultTestMeltdownRequeueAfter * time.Second,
+ MonitoredID: ns,
Fs: afero.NewOsFs(),
},
},
