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

Check storageclass for generating okteto manifests #956

Merged
merged 4 commits into from
Jun 26, 2020
Merged

Conversation

pchico83
Copy link
Contributor

Signed-off-by: Pablo Chico de Guzman pchico83@gmail.com

Fixes #947

@codecov
Copy link

codecov bot commented Jun 25, 2020

Codecov Report

Merging #956 into master will decrease coverage by 0.16%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #956      +/-   ##
==========================================
- Coverage   34.60%   34.43%   -0.17%     
==========================================
  Files          69       69              
  Lines        5759     5787      +28     
==========================================
  Hits         1993     1993              
- Misses       3610     3638      +28     
  Partials      156      156              
Impacted Files Coverage Δ
cmd/init/init.go 12.16% <0.00%> (-2.12%) ⬇️

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 49e9d6a...4f7bb49. Read the comment docs.

cmd/init/init.go Outdated Show resolved Hide resolved
cmd/init/init.go Outdated Show resolved Hide resolved
cmd/init/init.go Outdated
return false
}

return len(stClassList.Items) > 0
Copy link
Member

Choose a reason for hiding this comment

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

we should also check that there's a default storage class, I think some of the issues come from there.

Also, what about incompatible storage classes? (e.g. the issue we saw with minikube and the volumes not persisting a restart). Maybe we can identify those by name and log a warning?

@@ -122,6 +124,11 @@ func Run(namespace, devPath, language, workDir string, overwrite bool) error {
log.Yellow(fmt.Sprintf("Analysis for deployment '%s' failed: %s", d.Name, err))
}
}

if !supportsPersistentVolumes(namespace) {
Copy link
Member

Choose a reason for hiding this comment

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

should we log warnings when there are errors?

@derek
Copy link

derek bot commented Jun 26, 2020

Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide.
Tip: if you only have one commit so far then run: git commit --amend --signoff and then git push --force.

@derek derek bot added the no-dco label Jun 26, 2020
pchico83 and others added 3 commits June 26, 2020 05:31
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
Co-authored-by: Ramiro Berrelleza <rberrelleza@gmail.com>
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
@pchico83 pchico83 merged commit 1febdc1 into master Jun 26, 2020
@pchico83 pchico83 deleted the storage-class branch June 26, 2020 03:39
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.

"okteto init" checking default storage class
2 participants