-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 debugHelpersRegistry property #3945
Add debugHelpersRegistry property #3945
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3945 +/- ##
==========================================
- Coverage 71.72% 71.72% -0.01%
==========================================
Files 324 324
Lines 12507 12526 +19
==========================================
+ Hits 8971 8984 +13
- Misses 2966 2970 +4
- Partials 570 572 +2
Continue to review full report at Codecov.
|
5e3fea9
to
ae31f0d
Compare
@briandealwis If I understand it correctly, I have to create a new version via I would assume v2beta2?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sbueringer for your contribution! I've provided some initial feedback below, but I need some more time to mull over some of the changes you're proposing.
Would you mind motivating why do you find adding the debug helper registry location to the skaffold.yaml
more important than specifying it in the global configuration in ~/.skaffold/config
? Do you have a need to specify different alternative locations for different projects?
Adding the debugHelperRegistry
to the KubectlDeployer
and KustomizeDeployer
seems out of place, but Skaffold's set up makes it difficult to get this information the debug transforms since we can't pass in the debug transform don't have access to the Skaffold Config object. My thought had been to avoid this issue entirely and instead just pull the information from the global config.
pkg/skaffold/deploy/kustomize.go
Outdated
BuildArgs []string | ||
kubectl deploy.CLI | ||
insecureRegistries map[string]bool | ||
debugHelpersRegistry string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto to the KubectlDeployer
's debugHelpersRegistry
: this seems out of place, and indicates that we have some difficulty communicating information to the debug transforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in kubectl.go
Oh that was a misunderstanding. Global config sounds good to me. I'll take a look later and rewrite it if possible.To be honest I haven't used skaffold a lot so I wasn't aware of the global configuration and just thought it's the |
@briandealwis I moved the property to global config. Most of the other comments (all except the Kubectl/Kustomize struct) should be addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good @sbueringer — thanks! I'm not so thrilled that we're having to exposing debug stuff within the deployers (but that's not you) so I'll talk some more with the rest of the Skaffold team. I have some ideas how we can improve this.
Okay, no problem. |
@briandealwis any updates? 😃 |
Hi @sbueringer, what's your opinion on refactoring the GlobalConfig as well? Along the lines of:
That way, as a corporation you could distribute the skaffold config via config management to developers and have all config for airgapped clusters in one spot. If I missed any image overrides, feel free to add them. If you're willing to refacor, I would be up for splitting the work |
@DanielSel I think it makes sense to do this in a separate PR so this PR doesn't get to big :) But I'm also not sure if/when this PR will get merged in it's current form. So I would wait for feedback from @briandealwis for now. |
Sorry, I've gotten stuck trying to pass information around too within Skaffold. Will get back to this soon. |
@briandealwis any update here? @sbueringer looks like you'll need a quick rebase. |
16628ff
to
c04909c
Compare
LGTM, verified all the reviews comments were addressed. |
@sbueringer can you please fix the tests? |
Oh jeepers, I'm sorry @sbueringer for letting this dangle. Let's get it in and I'll address these concerns separately. |
@briandealwis No problem. I'll fix the tests :) |
Fixes: #2679
Description
Add debugHelpersRegistry property, see: #2679
User facing changes (remove if N/A)
New property debugHelpersRegistry in buildConfig