Skip to content

Commit

Permalink
add open port support (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Apr 16, 2024
1 parent 986d5d3 commit ba50ab2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self, *args):
super().__init__(*args)

self.container = self.unit.get_container(self._container_name)
self.unit.open_port(protocol="tcp", port=self._port)
self.ingress = IngressPerAppRequirer(
self,
port=self._port,
Expand Down

0 comments on commit ba50ab2

Please sign in to comment.