8000 Implement use of OKTETO_DEV_PERSISTENT_VOLUME_SIZE by teresaromero · Pull Request #4580 · okteto/okteto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement use of OKTETO_DEV_PERSISTENT_VOLUME_SIZE #4580

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

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

teresaromero
Copy link
Contributor

Proposed changes

Resolves https://okteto.atlassian.net/browse/PROD-253

When assigning a volume size to the pvc running okteto up the default value is overriden by the env value if present.

Default value is used when there is no definition of size at the manifest.

How to validate

Build binary, add the variable to admin variables at the cluster with a value.
Run okteto up and check the value is the one set by the env, different than the 5Gi default one
Run okteto up with a manifest that has a defined size, the pvc should be the one on the manifest.

Added unit test for the new cases.

…ltVolumeSize

Signed-off-by: Teresa Romero <teresa@okteto.com>
Copy link
codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.08%. Comparing base (d28d99d) to head (2d3ae8d).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4580   +/-   ##
=======================================
  Coverage   48.07%   48.08%           
=======================================
  Files         369      369           
  Lines       29737    29741    +4     
=======================================
+ Hits        14296    14300    +4     
  Misses      14324    14324           
  Partials     1117     1117           
---- 🚨 Try these New Features:

@teresaromero teresaromero merged commit b618714 into master Nov 21, 2024
16 of 18 checks passed
@teresaromero teresaromero deleted the tere/PROD-253 branch November 21, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0