Skip to content

Support ~ in secret path for Kaniko#455

Merged
tejal29 merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:kaniko-home
May 16, 2018
Merged

Support ~ in secret path for Kaniko#455
tejal29 merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:kaniko-home

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Apr 24, 2018

Signed-off-by: David Gageot david@gageot.net


absPath, err := homedir.Expand(cfg.Build.KanikoBuild.PullSecret)
if err != nil {
logrus.Errorln("unable to expand pullSecret", cfg.Build.KanikoBuild.PullSecret)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It makes the default code a bit uglier, but ApplyProfiles returns an error so we can return a real error here instead of logrus.Errorln

@dgageot
Copy link
Copy Markdown
Contributor Author

dgageot commented Apr 27, 2018

@r2d4 I fixed the code based on your feedback!

@dgageot dgageot force-pushed the kaniko-home branch 6 times, most recently from e6ebd5e to 7f9f7e2 Compare May 11, 2018 17:04
@dgageot dgageot force-pushed the kaniko-home branch 4 times, most recently from 5384c2d to 727d203 Compare May 16, 2018 08:24
Signed-off-by: David Gageot <david@gageot.net>
@tejal29 tejal29 merged commit 762c3ad into GoogleContainerTools:master May 16, 2018
@dgageot dgageot deleted the kaniko-home branch May 29, 2018 04:49
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