Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

feat: added suport for exclude files on local path#145

Merged
shashwathi merged 1 commit into
vmware-tanzu:mainfrom
odinnordico:issue-33-exclude-local
Jun 1, 2022
Merged

feat: added suport for exclude files on local path#145
shashwathi merged 1 commit into
vmware-tanzu:mainfrom
odinnordico:issue-33-exclude-local

Conversation

@odinnordico
Copy link
Copy Markdown
Contributor

Pull request

What this PR does / why we need it

Add support to exclude files when creating/updating a workload from --local-source using the file .tanzuignore.

Which issue(s) this PR fixes

Fixes #33

Describe testing done for PR

Testing on local box against Tap 1.0.2 cluster with local java project

image

image

tanzu apps wld apply tanzu-java-web-app-2-6-0 --local-path . --source-image dalfonso901/tanzu-java-web-app-2-6-local --label autoscaling.knative.dev/min-scale=1 --type web

image

image

image

image

Additional information or special notes for your reviewer

There is a missing integration test to verify the final image comes without excluded files

@atmandhol atmandhol requested a review from anibmurthy May 27, 2022 18:25
@odinnordico odinnordico marked this pull request as ready for review May 27, 2022 18:46
@odinnordico odinnordico force-pushed the issue-33-exclude-local branch from a117f4e to cbecb7f Compare May 27, 2022 19:36
Copy link
Copy Markdown
Contributor

@anibmurthy anibmurthy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@odinnordico odinnordico force-pushed the issue-33-exclude-local branch from cbecb7f to bfa01a5 Compare May 31, 2022 20:54
Copy link
Copy Markdown
Contributor

@shashwathi shashwathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. I would add some more unit tests to make sure we have coverage for diff file paths in tanzuignore file

Comment thread pkg/commands/workload.go
Comment thread pkg/commands/workload.go
Comment thread pkg/commands/workload_test.go
@odinnordico odinnordico force-pushed the issue-33-exclude-local branch from bfa01a5 to 9940dfa Compare May 31, 2022 22:25
@odinnordico odinnordico requested a review from shashwathi May 31, 2022 22:35
Comment thread pkg/commands/workload_update.go Outdated
@odinnordico odinnordico force-pushed the issue-33-exclude-local branch 2 times, most recently from 71a8af5 to b81f5ec Compare June 1, 2022 17:43
Comment thread pkg/commands/workload_test.go Outdated
Copy link
Copy Markdown
Contributor

@shashwathi shashwathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 last nit comment.

Co-authored-by: Wendy Maria Arango Chavarria <warango@vmware.com>
Signed-off-by: Diego Alfonso <dalfonso@vmware.com>
@odinnordico odinnordico force-pushed the issue-33-exclude-local branch from b81f5ec to 8ec77b7 Compare June 1, 2022 18:07
Copy link
Copy Markdown
Contributor

@shashwathi shashwathi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@shashwathi shashwathi merged commit 9fe6667 into vmware-tanzu:main Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create/update/apply supports excluding files/directories from upload

5 participants