Skip to content
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

[DPE-2717] Copy dashboard changes from K8s and use the correct topology dispatcher #248

Merged
merged 5 commits into from
Oct 14, 2023

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Oct 12, 2023

  • Copy over dash changes from the K8s charm.
  • Use the correct custom event dispatcher depending on the juju version

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #248 (4dbb6e6) into main (fd2a4f5) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
+ Coverage   80.67%   80.72%   +0.05%     
==========================================
  Files          10       10              
  Lines        1920     1925       +5     
  Branches      313      314       +1     
==========================================
+ Hits         1549     1554       +5     
  Misses        317      317              
  Partials       54       54              
Files Coverage Δ
src/charm.py 73.33% <100.00%> (+0.14%) ⬆️
src/cluster_topology_observer.py 63.38% <100.00%> (+0.52%) ⬆️

@dragomirp dragomirp changed the title [MISC] Copy dashboard changes from K8s [DPE-2717] Copy dashboard changes from K8s and use the correct topology dispatcher Oct 12, 2023
Comment on lines +103 to +104
if juju_version.major > 2:
run_cmd = "/usr/bin/juju-exec"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The command name changed in juju 3

Comment on lines -44 to -46
}, {
"matchPackageNames": ["urllib3"],
"allowedVersions": "<2.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Botocore moved the pin

@dragomirp dragomirp marked this pull request as ready for review October 12, 2023 13:04
Copy link
Member

@marceloneppel marceloneppel left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@dragomirp dragomirp merged commit de10986 into main Oct 14, 2023
29 checks passed
@dragomirp dragomirp deleted the copy-dashboards branch October 14, 2023 23:43
BON4 pushed a commit to BON4/postgresql-operator that referenced this pull request Apr 23, 2024
…gy dispatcher (canonical#248)

* Copy dashboard changes from K8s

* Tweak exec command for the topology observer

* Unit test

* Bump libs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants