remove mandate of GCR creds for kaniko build#1728
remove mandate of GCR creds for kaniko build#1728venkatk-25 wants to merge 6 commits intoGoogleContainerTools:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1728 +/- ##
==========================================
+ Coverage 46.4% 47.43% +1.02%
==========================================
Files 132 136 +4
Lines 6322 6670 +348
==========================================
+ Hits 2934 3164 +230
- Misses 3087 3187 +100
- Partials 301 319 +18
Continue to review full report at Codecov.
|
balopat
left a comment
There was a problem hiding this comment.
This looks good - but we need to add a logic for migration between the old version and the new version as you are moving fields. You can either keep the fields around as they are and just include your optionality logic or you have to implement skaffold fix logic for autoupgrading.
|
I have already made changes for skaffold fix in pkg/skaffold/schema/v1beta5/upgrade.go |
Oh, yeah, I missed that. It looks good :) |
|
I have made changes required and moves the fix to v1beta6 |
|
@venkatk-25 Could you do one more rebase, please? 🥇 |
…fold into make_gcr_creds_optional_in_kaniko
|
@dgageot done |
|
There is an integration test issue: will result in (after this fix): |
| }, | ||
| } | ||
|
|
||
| if cfg.GoogleCloudConfig == nil { |
There was a problem hiding this comment.
| if cfg.GoogleCloudConfig == nil { | |
| if cfg.GoogleCloudConfig != nil { |
There was a problem hiding this comment.
and we should cover this in a unit test too if possible
| return addGoogleCloudConfig(pod, cfg.GoogleCloudConfig) | ||
| } | ||
|
|
||
| if cfg.DockerConfig == nil { |
There was a problem hiding this comment.
| if cfg.DockerConfig == nil { | |
| if cfg.DockerConfig != nil { |
and we should cover this in a unit test too if possible
|
@venkatk-25 , in another PR #1700, @azaiter is proposing another way to specify ECR secret. |
|
@venkatk-25 if this is not the likely direction you are going to head (after #1892) , please close this PR. |
|
sure, closing this. |
Currently Kaniko build requires configuring GCR credentials even if I am not using it,
This change makes GCR creds optional and also makes adding other registry like ECR easy in future