-
Notifications
You must be signed in to change notification settings - Fork 363
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
Bug 2038419: Bump Grafana to 8.3.4 and handle datasource migration #1543
Bug 2038419: Bump Grafana to 8.3.4 and handle datasource migration #1543
Conversation
/retest |
Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
a0acd0c
to
c748c72
Compare
/retitle Bug 2038419: Bump Grafana to 8.3.4 and handle datasource migration |
@arajkumar: This pull request references Bugzilla bug 2038419, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @simonpasquier |
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.
/lgtm
/hold
waiting for @prashbnair's review :)
pkg/manifests/manifests.go
Outdated
@@ -276,6 +276,7 @@ var ( | |||
TrustedCABundleKey = "ca-bundle.crt" | |||
|
|||
AlertmanagerLegacyServiceMonitorName = "alertmanager" | |||
GrafanaLegacyDataSourceSecretName = "grafana-datasources" |
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.
(nit) since it's only used in pkg/tasks/grafana.go, it could be moved there.
/lgtm |
/skip |
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.
/lgtm
c748c72
to
6692d36
Compare
/retest |
/lgtm |
I've verified the upgrade path 4.9.x to 4.10.ci works with the fix. |
@arajkumar: This pull request references Bugzilla bug 2038419, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/hold cancel |
/retest |
pkg/tasks/grafana.go
Outdated
@@ -120,6 +122,11 @@ func (t *GrafanaTask) create(ctx context.Context) error { | |||
return errors.Wrap(err, "reconciling Grafana Datasources Secret failed") | |||
} | |||
|
|||
err = t.client.DeleteSecretByNamespaceAndName(ctx, sds.GetNamespace(), grafanaLegacyDataSourceSecretName) |
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.
Can we not reuse the DeleteSecret method by creating a Secret with name and namespace?
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.
Fixed it.
/hold for testing!
Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
This reverts commit b715974.
Newer version of grafana(e.g v8.3.3) seem to be supporting basic auth only through `secureJsonData.basicAuthPassword`. This PR ensures the creation of new datasources secret with `secureJsonData.basicAuthPassword` field and removes old secret during upgrade. Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
1139830
to
b4f4ab6
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arajkumar, PhilipGough, prashbnair, simonpasquier 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 |
/hold cancel |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@arajkumar: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@arajkumar: All pull requests linked via external trackers have merged: Bugzilla bug 2038419 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Newer version of grafana(e.g v8.3.3) seem to be supporting basic auth
only through
secureJsonData.basicAuthPassword
. This PR ensures thecreation of new datasources secret with
secureJsonData.basicAuthPassword
field and removes old secret during upgrade.Signed-off-by: Arunprasad Rajkumar arajkuma@redhat.com