Skip to content

Commit

Permalink
Update charm libraries (#374)
Browse files Browse the repository at this point in the history
* chore: update charm libraries

* do not update data libs

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Arturo Seijas <[email protected]>
Co-authored-by: arturo-seijas <[email protected]>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent 7a19437 commit b3892c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/charms/nginx_ingress_integrator/v0/nginx_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 5
LIBPATCH = 6

__all__ = ["require_nginx_route", "provide_nginx_route"]

Expand Down Expand Up @@ -181,6 +181,7 @@ def require_nginx_route( # pylint: disable=too-many-locals,too-many-branches,to
service_port: int,
additional_hostnames: typing.Optional[str] = None,
backend_protocol: typing.Optional[str] = None,
enable_access_log: typing.Optional[bool] = None,
limit_rps: typing.Optional[int] = None,
limit_whitelist: typing.Optional[str] = None,
max_body_size: typing.Optional[int] = None,
Expand Down Expand Up @@ -211,6 +212,8 @@ def require_nginx_route( # pylint: disable=too-many-locals,too-many-branches,to
additional-hostnames option via relation, optional.
backend_protocol: configure Nginx ingress integrator
backend-protocol option via relation, optional.
enable_access_log: configure Nginx ingress
nginx.ingress.kubernetes.io/enable-access-log option.
limit_rps: configure Nginx ingress integrator limit-rps
option via relation, optional.
limit_whitelist: configure Nginx ingress integrator
Expand Down Expand Up @@ -251,6 +254,8 @@ def require_nginx_route( # pylint: disable=too-many-locals,too-many-branches,to
config["additional-hostnames"] = additional_hostnames
if backend_protocol is not None:
config["backend-protocol"] = backend_protocol
if enable_access_log is not None:
config["enable-access-log"] = "true" if enable_access_log else "false"
if limit_rps is not None:
config["limit-rps"] = limit_rps
if limit_whitelist is not None:
Expand Down

0 comments on commit b3892c4

Please sign in to comment.