Skip to content

Commit

Permalink
feat(core): add feature flag for managed pipeline templates v2 (#6520)
Browse files Browse the repository at this point in the history
* feat(core): add feature flag for managed pipeline templates v2

spinnaker/spinnaker#3894

* feat(core): env var for mptv2 feature flag
  • Loading branch information
louisjimenez authored and Scott committed Feb 11, 2019
1 parent 9eccc0f commit bc2a423
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/scripts/modules/core/src/config/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface IFeatures {
// whether stages affecting infrastructure (like "Create Load Balancer") should be enabled or not
infrastructureStages?: boolean;
jobs?: boolean;
managedPipelineTemplatesV2?: boolean;
managedServiceAccounts?: boolean;
notifications?: boolean;
pagerDuty?: boolean;
Expand Down
2 changes: 2 additions & 0 deletions halconfig/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var entityTagsEnabled = false;
var fiatEnabled = '{%features.fiat%}' === 'true';
var iapRefresherEnabled = '{%features.iapRefresherEnabled}' === 'true';
var infrastructureStagesEnabled = '{%features.infrastructureStages%}' === 'true';
var managedPipelineTemplatesV2Enabled = '{%features.managedPipelineTemplatesV2%}' === 'true';
var jobsEnabled = '{%features.jobs%}' === 'true';
var maxPipelineAgeDays = '{%maxPipelineAgeDays%}';
var mineCanaryEnabled = '{%features.mineCanary%}' === 'true';
Expand Down Expand Up @@ -160,6 +161,7 @@ window.spinnakerSettings = {
iapRefresherEnabled: iapRefresherEnabled,
infrastructureStages: infrastructureStagesEnabled,
jobs: jobsEnabled,
managedPipelineTemplatesV2: managedPipelineTemplatesV2Enabled,
notifications: notificationsEnabled,
pagerDuty: false,
pipelines: true,
Expand Down
2 changes: 2 additions & 0 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var entityTagsEnabled = process.env.ENTITY_TAGS_ENABLED === 'true' ? true : fals
var fiatEnabled = process.env.FIAT_ENABLED === 'true' ? true : false;
var iapRefresherEnabled = process.env.IAP_REFRESHER_ENABLED === 'true' ? true : false;
var infrastructureEnabled = process.env.INFRA_ENABLED === 'true' ? true : false;
var managedPipelineTemplatesV2Enabled = process.env.MANAGED_PIPELINE_TEMPLATES_V2_ENABLED === 'true';
var managedServiceAccountsEnabled = process.env.MANAGED_SERVICE_ACCOUNTS_ENABLED === 'true';
var onDemandClusterThreshold = process.env.ON_DEMAND_CLUSTER_THRESHOLD || '350';
var reduxLoggerEnabled = process.env.REDUX_LOGGER === 'true';
Expand Down Expand Up @@ -62,6 +63,7 @@ window.spinnakerSettings = {
// whether stages affecting infrastructure (like "Create Load Balancer") should be enabled or not
infrastructureStages: infrastructureEnabled,
jobs: false,
managedPipelineTemplatesV2: managedPipelineTemplatesV2Enabled,
managedServiceAccounts: managedServiceAccountsEnabled,
notifications: false,
pagerDuty: false,
Expand Down

0 comments on commit bc2a423

Please sign in to comment.