Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

warango4
Copy link
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
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
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

Signed-off-by: Wendy Arango <warango@vmware.com>
Copy link
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