Skip to content

fix: Allow user to pass only git commit for git ref#423

Merged
warango4 merged 1 commit intovmware-tanzu:mainfrom
warango4:issue179
Jan 17, 2023
Merged

fix: Allow user to pass only git commit for git ref#423
warango4 merged 1 commit intovmware-tanzu:mainfrom
warango4:issue179

Conversation

@warango4
Copy link
Copy Markdown
Contributor

@warango4 warango4 commented Nov 28, 2022

Pull request

What this PR does / why we need it

Because of a FluxCD bug, apps plugin would not allow users to pass a git commit to take the source from when creating a workload, so there was always a need to specify either --git-branch or --git-tag. There is an upstream fix in the newer versions of FluxCD and TAP has been updated to use the latest (v0.17.1+), so apps plugin can also be updated to allow users to create their workload using only --git-commit

Which issue(s) this PR fixes

Fixes #179
Fixes #28

Describe testing done for PR

  • Created workloads in cluster using the three flags (--git-commit, --git-tag, --git-branch), each separated, and combination of these.
  • Added/updated unit testing
  • Updated e2e test

Additional information or special notes for your reviewer

Signed-off-by: Wendy Arango warango@vmware.com

@heyjcollins
Copy link
Copy Markdown
Contributor

git* flag validation can be removed given we can't predict the downstream behavior of FluxCD (or some other orchestrator configured in the supply chain).

@warango4 warango4 marked this pull request as ready for review January 12, 2023 19:04
odinnordico
odinnordico previously approved these changes Jan 13, 2023
Copy link
Copy Markdown
Contributor

@odinnordico odinnordico left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread testing/e2e/workload_test.go
Signed-off-by: Wendy Arango <warango@vmware.com>
Copy link
Copy Markdown
Contributor

@shaheerkootteeri shaheerkootteeri left a comment

Choose a reason for hiding this comment

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

LGTM

@warango4 warango4 merged commit 9494c21 into vmware-tanzu:main Jan 17, 2023
@warango4 warango4 deleted the issue179 branch January 17, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

6 participants