Skip to content

Commit e37fad5

Browse files
author
Thomas Michael
committed
exclude namespace creation if internal
1 parent 69b43a9 commit e37fad5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/groovy/com/cloudogu/gitops/features/Jenkins.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,7 @@ class Jenkins extends Feature {
296296
]
297297
]
298298
}
299+
String getActiveNamespaceFromFeature() {
300+
return isEnabled() && config.jenkins.internal ? getNamespace() : null
301+
}
299302
}

src/main/groovy/com/cloudogu/gitops/features/ScmManagerSetup.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,8 @@ class ScmManagerSetup extends Feature {
137137
CENTRAL_SCM_PASSWORD : config.multiTenant.scmManager.password
138138
])
139139
}
140+
141+
String getActiveNamespaceFromFeature() {
142+
return isEnabled() && config.scm.scmManager.internal ? getNamespace() : null
143+
}
140144
}

0 commit comments

Comments
 (0)