Skip to content

Commit

Permalink
fix(artifacts): default helm artifact editor is broken (#6811)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott authored Apr 3, 2019
1 parent 728ddbe commit 2039b34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ export const HelmDefault: IArtifactKindConfig = {
isDefault: true,
isMatch: false,
description: 'A helm chart to be deployed',
key: 'helm',
key: 'default.helm',
editCmp: HelmEditor,
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import { ArtifactService } from '../ArtifactService';
export const HELM_ARTIFACT = 'spinnaker.core.pipeline.trigger.artifact.helm';

module(HELM_ARTIFACT, []).config(() => {
Registry.pipeline.mergeArtifactKind({
const helmArtifact = {
label: 'Helm',
typePattern: ArtifactTypePatterns.HELM_CHART,
type: 'helm/chart',
isDefault: true,
isMatch: true,
isDefault: false,
isMatch: false,
description: 'A helm chart to be deployed',
key: 'helm',
controller: function(artifact: IArtifact) {
Expand Down Expand Up @@ -101,5 +101,7 @@ module(HELM_ARTIFACT, []).config(() => {
</div>
</div>
`,
});
};
Registry.pipeline.mergeArtifactKind(Object.assign({}, helmArtifact, { key: 'default.helm', isDefault: true }));
Registry.pipeline.mergeArtifactKind(Object.assign({}, helmArtifact, { key: 'helm', isMatch: true }));
});

0 comments on commit 2039b34

Please sign in to comment.