Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: okteto/okteto
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.9.0
Choose a base ref
...
head repository: okteto/okteto
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.10.0
Choose a head ref
  • 10 commits
  • 28 files changed
  • 6 contributors

Commits on Jul 9, 2025

  1. Update buildkit dependencies in go.mod and go.sum (#4737)

    * Update buildkit dependencies in go.mod and go.sum
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    
    * fix(test): update namespace in TestGetKubeconfig to 'test' for accuracy
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    
    ---------
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    jLopezbarb authored Jul 9, 2025
    Configuration menu
    Copy the full SHA
    8ffd4fa View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2025

  1. Don't build images on deploy command if the calculation of images to …

    …build is an empty list (#4739)
    
    * Fixed build images on deploy when there are not images to build. Don't rebuild all the images
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    
    * Fix unit test for build images
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    
    ---------
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    ifbyol authored Jul 10, 2025
    Configuration menu
    Copy the full SHA
    d7395da View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2025

  1. Update Kubernetes and Helm versions in Dockerfile to 1.32.7 and 3.18.…

    …4 respectively for improved compatibility and features. (#4746)
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    jLopezbarb authored Jul 28, 2025
    Configuration menu
    Copy the full SHA
    1d4683d View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2025

  1. [TEST] feat: implement nodeSelector and resources inheritance from Ku…

    …bernetes resources (#4741)
    
    * feat: implement nodeSelector inheritance from Kubernetes resources
    
    - Add OKTETO_INHERIT_KUBERNETES_NODESELECTOR_SETTINGS environment variable
    - Implement ShouldInheritKubernetesNodeSelector() helper function
    - Add HasEmptyNodeSelector() method to Dev struct
    - Add InheritNodeSelectorFromPodSpec() method to Dev struct
    - Integrate nodeSelector inheritance into GetTranslations() function
    - Add comprehensive unit tests for nodeSelector functionality (13 test cases)
    - Add integration tests for nodeSelector inheritance in GetTranslations() (3 test cases)
    - Extends existing resource inheritance feature with nodeSelector support
    
    This feature allows Okteto to automatically inherit Kubernetes nodeSelector
    settings when the nodeSelector section is omitted from the okteto.yaml manifest,
    controlled by the OKTETO_INHERIT_KUBERNETES_NODESELECTOR_SETTINGS environment variable.
    
    Developed together with Okteto AI Agent Fleets
    
    * fix: resolve linting issues in test files
    
    - Fix composite literal type issues in dev_test.go
    - Fix import ordering with gci formatter in test files
    - All functional tests still pass
    
    * fix: resolve DeepSource linting issues
    
    - Fix duplicate body in if-else branches in crud_test.go
    - Fix empty string test using len() instead of != "" in crud.go
    - Replace fmt.Sprintf + WriteString with fmt.Fprintf in dev_test.go
    
    These changes address the Major severity issues reported by DeepSource
    while maintaining all existing functionality and test coverage.
    
    * fix: increase cyclomatic complexity threshold for test functions
    
    - Set DeepSource cyclomatic_complexity_threshold to 'high' (up to 25)
    - This allows test functions with complexity 16-17 to pass analysis
    - Test functions often have higher complexity due to multiple test cases and assertions
    
    * Update .deepsource.toml to reenable cyclomatic complexity checks
    
    * reduce cyclomatic complexity of tests
    
    * don't modify the dev object, instead just  return the rules
    
    * fix linting issues
    
    * feat: enhance resource inheritance functionality
    
    - Introduced environment variable support for inheriting Kubernetes resources and nodeSelector in the GetTranslations function.
    - Replaced direct calls to model functions with environment variable checks for better configurability.
    - Added a new helper function, getInheritedResourcesFromContainer, to streamline resource inheritance logic.
    - Implemented comprehensive unit tests for the new inheritance behavior, ensuring correct functionality across various scenarios.
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    
    * refactor: update environment variable names for Kubernetes resource inheritance
    
    - Renamed environment variables for inheriting Kubernetes resources and nodeSelector to improve clarity and consistency.
    - Updated OktetoInheritKubernetesResourcesEnvVar from "OKTETO_INHERIT_KUBERNETES_RESOURCES_SETTINGS" to "OKTETO_INHERIT_KUBERNETES_RESOURCES".
    - Updated OktetoInheritKubernetesNodeSelectorEnvVar from "OKTETO_INHERIT_KUBERNETES_NODESELECTOR_SETTINGS" to "OKTETO_INHERIT_KUBERNETES_NODESELECTOR".
    
    These changes enhance the readability and usability of the environment variable configuration.
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    
    * address comments
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    
    ---------
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    Co-authored-by: Javier Lopez <javier@okteto.com>
    rberrelleza and jLopezbarb authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    b0455b1 View commit details
    Browse the repository at this point in the history
  2. Add installation instructions to minimum CLI version error (#4738)

    * Add installation instructions to minimum CLI version error
    
    - Add GetUpgradeInstructions() helper function with platform-specific instructions
    - Update minimum version error in checkCLIVersion() to include detailed upgrade steps
    - Refactor displayUpdateSteps() to use new helper function
    - Improve language to avoid repeated 'Alternatively' usage
    
    Addresses customer feedback that engineers found the minimum version error
    confusing without clear update instructions.
    
    * Address jLopezbarb feedback: improve upgrade instructions
    
    - Add guidance to check current installation method first
    - Provide specific instructions for different installation methods
    - Include warning about potential multiple installations
    - Add PATH troubleshooting note
    
    This addresses the concern that users may have multiple okteto installations
    and need method-specific upgrade instructions.
    
    ---------
    
    Co-authored-by: codyjlandstrom <codyjlandstrom@users.noreply.github.com>
    codyjlandstrom and codyjlandstrom authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    d01dd7e View commit details
    Browse the repository at this point in the history
  3. reduce severity of JSON parsing error log, and skip parsing when the …

    …log is empty (#4743)
    
    * reduce severity of JSON parsing error log, and skip parsing when the log is empty
    
    * remove unused receivers
    rberrelleza authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    2efd605 View commit details
    Browse the repository at this point in the history
  4. Improved error handling when the backend returns a 401 error, to forc…

    …e a new login (#4747)
    
    * Improved error handling when the backend returns a 401 error, to force a new login
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    
    * Added comments in the code to clarify a couple of things
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    
    ---------
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    ifbyol authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    fb91f32 View commit details
    Browse the repository at this point in the history
  5. Add unit test for CreateDev function and fix TargetPort type in Servi…

    …ce translation (#4748)
    
    - Introduced a new test, TestCreateDev, to validate the CreateDev function's behavior, ensuring it correctly creates a service in the specified namespace.
    - Updated the TargetPort type in the Service translation from string to integer for proper Kubernetes compatibility.
    
    This enhances test coverage and corrects a potential issue in service configuration.
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    jLopezbarb authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    2d9751a View commit details
    Browse the repository at this point in the history
  6. Enhance DestroyPreview functionality to include timeout parameter (#4745

    )
    
    - Updated the Destroy method in the preview client to accept a timeout parameter, allowing for more flexible preview destruction.
    - Modified related interfaces and test cases to accommodate the new timeout argument.
    - Adjusted error handling in the Destroy method to manage cases where the timeout argument is not recognized.
    
    This change improves the usability of the DestroyPreview feature by enabling users to specify a timeout for the operation.
    
    Signed-off-by: Javier Lopez <javier@okteto.com>
    jLopezbarb authored Jul 29, 2025
    Configuration menu
    Copy the full SHA
    69eb049 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2025

  1. Added debug message when compose parsing fails (#4750) (#4751)

    * Added debug message when compose parsing fails after fallback to not lose the real error
    
    
    
    * Change log level to info
    
    
    
    ---------
    
    
    (cherry picked from commit 2fadde2)
    
    Signed-off-by: Nacho Fuertes <nacho@okteto.com>
    Co-authored-by: Ignacio Fuertes <nacho@okteto.com>
    github-actions[bot] and ifbyol authored Aug 1, 2025
    Configuration menu
    Copy the full SHA
    5c3b914 View commit details
    Browse the repository at this point in the history
Loading