Skip to content

Commit

Permalink
feat(pubsub): pubsub providers list pulled from settings (#4861)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns committed Feb 15, 2018
1 parent c463fbc commit 7953dd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
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 @@ -78,6 +78,7 @@ export interface ISpinnakerSettings {
providers?: {
[key: string]: IProviderSettings; // allows custom providers not typed in here (good for testing too)
};
pubsubProviders: string[];
resetProvider: (provider: string) => () => void;
resetToOriginal: () => void;
searchVersion: 1 | 2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { IController, module } from 'angular';

import { SETTINGS } from 'core/config/settings';

import { PIPELINE_CONFIG_PROVIDER, PipelineConfigProvider } from 'core/pipeline/config/pipelineConfigProvider';
import {
PUBSUB_SUBSCRIPTION_SERVICE,
Expand All @@ -10,7 +12,7 @@ import {
} from 'core/domain';

class PubsubTriggerController implements IController {
public pubsubSystems = ['kafka', 'google'];
public pubsubSystems = SETTINGS.pubsubProviders || ['google', 'kafka'];
public pubsubSubscriptions: string[];
public subscriptionsLoaded = false;

Expand Down
1 change: 1 addition & 0 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ window.spinnakerSettings = {
authEnabled: authEnabled,
authTtl: 600000,
gitSources: ['stash', 'github', 'bitbucket'],
pubsubProviders: ['google', 'kafka'],
triggerTypes: ['git', 'pipeline', 'docker', 'cron', 'jenkins', 'travis', 'pubsub'],
searchVersion: 1,
feature: {
Expand Down

0 comments on commit 7953dd6

Please sign in to comment.