[feat][core] deny seed macos in case of private cloud regional provider
PRODX-9779
Change-Id: If49498b323dbd5362e1b90858358b4e4ac3982e4
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 8d5c545..5936ec8 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -159,12 +159,16 @@
}
switch (multiregionalMappings['managementLocation']) {
case 'aws':
+ common.warningMsg('Forced running additional kaas deployment with AWS provider according multiregional demo request')
awsOnDemandDemo = true
if (awsOnRhelDemo) {
// Run only one variant: standard AWS deployment (on Ubuntu) or on RHEL
awsOnDemandDemo = false
}
- common.warningMsg('Forced running additional kaas deployment with AWS provider according multiregional demo request')
+
+ if (multiregionalMappings['regionLocation'] != 'aws' && seedMacOs) { // macstadium seed node has access only to *public* providers
+ error('incompatible triggers: [seed-macos] and multiregional deployment based on *private* regional provider cannot be applied simultaneously')
+ }
break
case 'os':
if (enableOSDemo == false) {