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

--kaniko-dir should take precedence over KANIKO_DIR fix #3174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prima101112
Copy link
Contributor

Fixes #3098

Description

The --kaniko-dir command-line flag is now given precedence over the KANIKO_DIR environment variable if both are set. This change ensures that the specified directory via the command-line flag will always be used for storing Kaniko's intermediate files and cache.
This is could achieve by force os.SetEnv the KANIKO_DIR to --kaniko-dir flag.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

The --kaniko-dir command-line flag is now given precedence over the KANIKO_DIR environment variable.

Examples of user facing changes:
No changes

@prima101112
Copy link
Contributor Author

@JeromeJu

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.

Both --kaniko-dir and KANIKO_DIR needs to be set
1 participant