Skip to content

Commit

Permalink
feat(titus): Show supplementary information for the bake configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyhebebrand committed Feb 10, 2021
1 parent e616c0f commit 23aaed6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<div ng-controller="titusBakeCtrl as bakeCtrl" class="form-horizontal">
<div ng-if="bakeWarning" class="alert alert-warning sp-margin-s-top horizontal middle">
<i class="fa fa-exclamation-triangle"></i>
<div class="sp-margin-s-left">
<markdown message="bakeWarning"></markdown>
</div>
</div>
<h4>Git Repository</h4>
<div class="horizontal-rule"></div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { module } from 'angular';

import { AuthenticationService, Registry } from '@spinnaker/core';
import { TitusProviderSettings } from '../../../titus.settings';
import { TITUS_PIPELINE_STAGES_BAKE_BAKEEXECUTIONDETAILS_CONTROLLER } from './bakeExecutionDetails.controller';

export const TITUS_PIPELINE_STAGES_BAKE_TITUSBAKESTAGE = 'spinnaker.titus.pipeline.stage.titusBakeStage';
Expand All @@ -23,6 +24,8 @@ module(TITUS_PIPELINE_STAGES_BAKE_TITUSBAKESTAGE, [TITUS_PIPELINE_STAGES_BAKE_BA
function ($scope) {
const stage = $scope.stage;

$scope.bakeWarning = TitusProviderSettings.bakeWarning;

if (!stage.user) {
stage.user = AuthenticationService.getAuthenticatedUser().name;
}
Expand Down
1 change: 1 addition & 0 deletions app/scripts/modules/titus/src/titus.settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface ITitusProviderSettings extends IProviderSettings {
region?: string;
iamProfile?: string;
};
bakeWarning?: string;
}

export const TitusProviderSettings: ITitusProviderSettings = (SETTINGS.providers.titus as ITitusProviderSettings) || {
Expand Down

0 comments on commit 23aaed6

Please sign in to comment.