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

Add OKTETO_SMART_BUILDS_IGNORE_FILES_ENABLED to feature flags #983

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

maroshii
Copy link
Contributor

@maroshii maroshii commented Feb 6, 2025

No description provided.

Copy link

netlify bot commented Feb 6, 2025

Deploy Preview for okteto-docs ready!

Name Link
🔨 Latest commit 27f37d2
🔍 Latest deploy log https://app.netlify.com/sites/okteto-docs/deploys/67b72a156bd9e50008524c49
😎 Deploy Preview https://deploy-preview-983--okteto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@ifbyol ifbyol left a comment

Choose a reason for hiding this comment

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

This is not included in 1.29 release, so wait to merge it cc @codyjlandstrom

@@ -29,6 +29,7 @@ Below is a list of those variables that you can use to leverage these newer and
| OKTETO_KUBERNETES_TIMEOUT | Specifies the timeout while deploying | `0` |
| OKTETO_LOCAL_REGISTRY_STORE_PRIORITY_ENABLED | Gives more priority to the local registry credentials than the Okteto Registry Credentials | `false` |
| OKTETO_SMART_BUILDS_ENABLED | Enables the [Smart Builds feature](core/build-service.mdx#smart-builds) that uses a hash of the build context to determine if an image needs to be rebuilt or can be pulled from the registry. This can accelerate build times | `true` |
| OKTETO_SMART_BUILDS_IGNORE_FILES_ENABLED | If set, considers ignores rules in .oktetoignore and .dockerignore for calculating smart build context. | `false` |
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we consider .oktetoignore? smart builds only works with dockerignore files, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was part of the product definition:

Our current Smart Builds implementation only considers changes in the build context. But changes on files referred by .dockerignore or the .oktetoignore files can be ignored.
Improve the logic of Smart Builds to also ignore the changes in files referred by .dockerignore and .oktetoignore for uncommitted changes.

It's pretty straight forward to remove though

Copy link
Contributor

Choose a reason for hiding this comment

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

is there a valid case for .oktetoignore? I think it's a bug if we are considering it, but maybe I am missing something

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.

3 participants