Skip to content

Commit

Permalink
feat: directory app include/exclude fields in UI (argoproj#10880)
Browse files Browse the repository at this point in the history
Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com>

Signed-off-by: Karengineering <49111213+karengineering@users.noreply.github.com>
Signed-off-by: Nicholas Johnson <nbjohnson10@gmail.com>
  • Loading branch information
karengineering authored and nbjohnson committed Oct 18, 2022
1 parent 81fa668 commit e09d795
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,18 @@ export const ApplicationParameters = (props: {
)),
edit: (formApi: FormApi) => <FormField field='spec.source.directory.jsonnet.extVars' formApi={formApi} component={VarsInputField} />
});

attributes.push({
title: 'INCLUDE',
view: app.spec.source.directory && app.spec.source.directory.include,
edit: (formApi: FormApi) => <FormField formApi={formApi} field='spec.source.directory.include' component={Text} />
});

attributes.push({
title: 'EXCLUDE',
view: app.spec.source.directory && app.spec.source.directory.exclude,
edit: (formApi: FormApi) => <FormField formApi={formApi} field='spec.source.directory.exclude' component={Text} />
});
}

return (
Expand Down
2 changes: 2 additions & 0 deletions ui/src/app/shared/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ interface ApplicationSourceJsonnet {
export interface ApplicationSourceDirectory {
recurse: boolean;
jsonnet?: ApplicationSourceJsonnet;
include?: string;
exclude?: string;
}

export interface Automated {
Expand Down

0 comments on commit e09d795

Please sign in to comment.