Skip to content

Commit

Permalink
Merge pull request #9 from canonical/cicd
Browse files Browse the repository at this point in the history
Add workload version
  • Loading branch information
kelkawi-a authored Jun 26, 2024
2 parents 5e1c22c + 30849cd commit c2bdab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
WEB_UI_PORT = 8080
INTERNAL_API_PORT = 8001
CONNECTOR_BUILDER_API_PORT = 80
AIRBYTE_VERSION = "0.60.0"


class AirbyteUIK8sOperatorCharm(CharmBase):
Expand Down Expand Up @@ -109,6 +110,7 @@ def _on_update_status(self, event):
self.unit.status = MaintenanceStatus("Status check: DOWN")
return

self.unit.set_workload_version(f"v{AIRBYTE_VERSION}")
self.unit.status = ActiveStatus()

def _validate_pebble_plan(self, container):
Expand Down

0 comments on commit c2bdab3

Please sign in to comment.