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

Add basic charm functionality and utilities #3

Merged
merged 2 commits into from
May 26, 2024
Merged

Conversation

kelkawi-a
Copy link
Collaborator

This PR adds basic functionality to the Airbyte UI charm:

  • Adds OCI image and entry point to start the application
  • Adds update status hook logic to start the application based on a liveness check
  • Adds peer relation for sharing state across units
  • Adds logging utility
  • Adds restart action
  • Updates README and contributing guidelines

Note: Some links point to pages in the Airbyte Charmhub page and server repo which may not exist yet.

Copy link

@mertalpt mertalpt left a comment

Choose a reason for hiding this comment

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

LGTM.

charmcraft.yaml Show resolved Hide resolved
Copy link

@AmberCharitos AmberCharitos left a comment

Choose a reason for hiding this comment

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

LGTM some minor nitpicks

self.framework.observe(self.on.config_changed, self._on_config_changed)
self._state = State(self.app, lambda: self.model.get_relation("peer"))

self.name = "airbyte-webapp"

Choose a reason for hiding this comment

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

perhaps: self.app.name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

self.app.name is the name that the user has deployed the application with, which could vary. Fixing the name of the container to airbye-webapp would be more suitable to have uniform instructions on accessing the container.

src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
@kelkawi-a kelkawi-a merged commit 08c40d4 into main May 26, 2024
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