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

Support for "okteto redeploy" #677

Merged
merged 4 commits into from
Feb 18, 2020
Merged

Support for "okteto redeploy" #677

merged 4 commits into from
Feb 18, 2020

Conversation

pchico83
Copy link
Contributor

@pchico83 pchico83 commented Feb 12, 2020

Fixes #656
Fixes #655

@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #677 into master will decrease coverage by 0.54%.
The diff coverage is 13.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #677      +/-   ##
==========================================
- Coverage   37.43%   36.89%   -0.55%     
==========================================
  Files          45       49       +4     
  Lines        3777     3873      +96     
==========================================
+ Hits         1414     1429      +15     
- Misses       2276     2355      +79     
- Partials       87       89       +2
Impacted Files Coverage Δ
cmd/redeploy.go 0% <0%> (ø)
cmd/build.go 0% <0%> (-15.19%) ⬇️
cmd/down.go 0% <0%> (ø) ⬆️
pkg/model/dev.go 64.26% <0%> (+0.22%) ⬆️
pkg/cmd/build/buildkit.go 0% <0%> (ø)
pkg/analytics/analytics.go 17.26% <0%> (-0.52%) ⬇️
pkg/cmd/down/run.go 0% <0%> (ø)
pkg/cmd/down/wait.go 76.92% <100%> (ø) ⬆️
pkg/k8s/deployments/crud.go 11.44% <5.12%> (+3.16%) ⬆️
pkg/cmd/build/image.go 51.61% <51.61%> (ø)
... and 5 more

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 bd75f4d...c05ff72. Read the comment docs.

interactive := map[string]string{labels.InteractiveDevLabel: d.Name}
detached := map[string]string{labels.DetachedDevLabel: d.Name}

wg := &sync.WaitGroup{}

wg.Add(1)
go waitForDevPodsTermination(c, d.Namespace, interactive, wg, t)
go _waitForDevPodsTermination(c, d.Namespace, interactive, wg, t)
Copy link
Member

Choose a reason for hiding this comment

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

why the underscore?

return imageTag
}
if isOktetoCloud {
return fmt.Sprintf("%s/%s/%s:okteto", okteto.RegistryURL, dev.Namespace, dev.Name)
Copy link
Member

Choose a reason for hiding this comment

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

where do we get the RegistryURL from?


const (
frontend = "dockerfile.v0"
buildKitContainer = "buildkit-0"

Choose a reason for hiding this comment

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

buildKitContainer is unused (from deadcode)

const (
frontend = "dockerfile.v0"
buildKitContainer = "buildkit-0"
buildKitPort = 1234

Choose a reason for hiding this comment

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

buildKitPort is unused (from deadcode)

@@ -250,6 +250,14 @@ services:
t.Fatalf("Wrong d1 generation.\nActual %+v, \nExpected %+v", string(marshalled1), string(marshalled1OK))
}

d1Down, err := translateDevModeOff(d1)

Choose a reason for hiding this comment

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

ineffectual assignment to err (from ineffassign)

@@ -322,6 +330,14 @@ services:
if string(marshalled2) != string(marshalled2OK) {
t.Fatalf("Wrong d2 generation.\nActual %s, \nExpected %s", string(marshalled2), string(marshalled2OK))
}

d2Down, err := translateDevModeOff(d2)

Choose a reason for hiding this comment

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

ineffectual assignment to err (from ineffassign)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for "okteto build-push-redeploy" Make the "okteto build" "-t" flag more explicit
3 participants