-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Bugfix for savings settings when configMap exists but does not have any data #3280
Conversation
Thanks! Tests have crashed. You can push commit again with /lgtm |
Codecov Report
@@ Coverage Diff @@
## master #3280 +/- ##
==========================================
+ Coverage 54.6% 54.61% +0.01%
==========================================
Files 565 565
Lines 12424 12427 +3
==========================================
+ Hits 6784 6787 +3
+ Misses 5380 5378 -2
- Partials 260 262 +2
Continue to review full report at Codecov.
|
… but does not have any data in it, and in this case it was not possible to update the dashboard settings. Signed-off-by: Stefan Sundin <[email protected]>
@maciaszczykm I rebased and that fixed the travis tests, but I don't know what is going on with codecov. |
It's ok. /lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jeefy, maciaszczykm, stefansundin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Initialize
cm.Data
if it isnil
. This happens if the configMap exists but does not have any data in it, and in this case it was not possible to update the dashboard settings.For example, the configMap provided here causes the bug: https://github.com/kubernetes/kubernetes/blob/0928bb4c01f6e7ed7c8b990693dd9ea27873def7/cluster/addons/dashboard/dashboard-configmap.yaml
When trying to save, this is the stacktrace that was returned. It does not show up in the UI though, had to find it by using the chrome developer tools.
Fixes #3149