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

Implement External Datastore Integration (ETCD) #47

Merged
merged 21 commits into from
Apr 2, 2024
Merged

Conversation

mateoflorido
Copy link
Member

@mateoflorido mateoflorido commented Mar 18, 2024

Overview

Implement charm integration with external datastores, i.e., etcd

@mateoflorido mateoflorido requested a review from a team as a code owner March 18, 2024 17:59
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 91 files.

Valid Invalid Ignored Fixed
33 1 57 0
Click to see the invalid file list
  • charms/worker/k8s/lib/charms/kubernetes_libs/v0/etcd.py

charms/worker/k8s/lib/charms/kubernetes_libs/v0/etcd.py Outdated Show resolved Hide resolved
Copy link
Contributor

@addyess addyess left a comment

Choose a reason for hiding this comment

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

A few small changes and one larger concern about a potential race for whether or not to use etcd.

I think it's gonna get messy in the future when someone tries to relate etcd to an existing cluster and their data doesn't migrate. But i don't believe the charm should REQUIRE etcd.

charms/worker/k8s/src/charm.py Outdated Show resolved Hide resolved
tests/integration/test-bundle-etcd.yaml Outdated Show resolved Hide resolved
tests/integration/test_etcd.py Outdated Show resolved Hide resolved
tests/integration/test-bundle-etcd.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@addyess addyess left a comment

Choose a reason for hiding this comment

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

Small improvement to help the charm block on invalid datastore configuration

charms/worker/k8s/src/charm.py Show resolved Hide resolved
@mateoflorido mateoflorido force-pushed the KU-405/etcd branch 3 times, most recently from f52a189 to 208cbf6 Compare March 22, 2024 21:35
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 92 files.

Valid Invalid Ignored Fixed
34 1 57 0
Click to see the invalid file list
  • test-ck-etcd.yaml

test-ck-etcd.yaml Outdated Show resolved Hide resolved
@mateoflorido mateoflorido force-pushed the KU-405/etcd branch 2 times, most recently from b4e9bda to dc3ddf2 Compare March 25, 2024 14:08
prev-lxd.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@addyess addyess left a comment

Choose a reason for hiding this comment

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

LGTM

@mateoflorido mateoflorido merged commit e1e6fa8 into main Apr 2, 2024
31 checks passed
@mateoflorido mateoflorido deleted the KU-405/etcd branch April 2, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants