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

Revert pipeline skipifexists okteto global #1958

Merged
merged 3 commits into from Nov 11, 2021

Conversation

teresaromero
Copy link
Member

@teresaromero teresaromero requested a review from a team November 10, 2021 13:52
@derek derek bot added the no-dco label Nov 10, 2021
@derek
Copy link

derek bot commented Nov 10, 2021

Thank you for your contribution. unfortunately, one or more of your commits are missing the required "Signed-off-by:" statement. Signing off is part of the Developer Certificate of Origin (DCO) which is used by this project.

Read the DCO and project contributing guide carefully, and amend your commits using the git CLI. Note that this does not require any cryptography, keys or special steps to be taken.

💡 Shall we fix this?

This will only take a few moments.

First, clone your fork and checkout this branch using the git CLI.

Next, set up your real name and email address:

git config --global user.name "Your Full Name"
git config --global user.email "you@domain.com"

Finally, run one of these commands to add the "Signed-off-by" line to your commits.

If you only have one commit so far then run: git commit --amend --signoff and then git push --force.
If you have multiple commits, watch this video.

Check that the message has been added properly by running "git log".

@codecov
Copy link

codecov bot commented Nov 10, 2021

Codecov Report

Merging #1958 (18c7b8e) into master (a017290) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1958      +/-   ##
==========================================
+ Coverage   33.46%   33.49%   +0.02%     
==========================================
  Files         123      123              
  Lines       13873    13857      -16     
==========================================
- Hits         4643     4641       -2     
+ Misses       8728     8714      -14     
  Partials      502      502              
Impacted Files Coverage Δ
cmd/pipeline/deploy.go 0.00% <0.00%> (ø)
pkg/cmd/build/build.go 10.46% <0.00%> (+1.09%) ⬆️
pkg/cmd/stack/translate.go 83.81% <0.00%> (-0.26%) ⬇️
pkg/registry/registry.go 28.84% <ø> (+2.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a017290...18c7b8e. Read the comment docs.

}
return nil
}

// buildWithOkteto build and pushes the image to the registry, if skipped will return bool true, if error, will return error
func buildWithOkteto(ctx context.Context, buildOptions BuildOptions) (bool, error) {
func buildWithOkteto(ctx context.Context, namespace string, buildOptions BuildOptions) error {
Copy link
Member

Choose a reason for hiding this comment

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

I think namespace parameter is not being used in the function

@@ -43,59 +43,43 @@ type BuildOptions struct {
}

// Run runs the build sequence
func Run(ctx context.Context, buildOptions BuildOptions) error {
func Run(ctx context.Context, namespace string, buildOptions BuildOptions) error {
Copy link
Member

Choose a reason for hiding this comment

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

I think that namespace could be removed also from here if buildWithOkteto doesn't need it

Signed-off-by: Teresa Romero <teresa@okteto.com>
@teresaromero teresaromero merged commit 4d62948 into master Nov 11, 2021
@teresaromero teresaromero deleted the tere/revert-pipeline-skipifexists-okteto-global branch November 11, 2021 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants