Skip to content

Commit

Permalink
Fix traefik path routing (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo-seijas authored Mar 8, 2024
1 parent 3991064 commit 07fa609
Show file tree
Hide file tree
Showing 21 changed files with 1,347 additions and 1,020 deletions.
7 changes: 4 additions & 3 deletions src-docs/actions.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Jenkins-k8s charm actions observer.
### <kbd>function</kbd> `__init__`

```python
__init__(charm: CharmBase, state: State)
__init__(charm: CharmBase, state: State, jenkins_instance: Jenkins)
```

Initialize the observer and register actions handlers.
Expand All @@ -31,6 +31,7 @@ Initialize the observer and register actions handlers.

- <b>`charm`</b>: The parent charm to attach the observer to.
- <b>`state`</b>: The Jenkins charm state.
- <b>`jenkins_instance`</b>: The Jenkins wrapper.


---
Expand All @@ -43,7 +44,7 @@ Shortcut for more simple access the model.

---

<a href="../src/actions.py#L32"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/actions.py#L34"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `on_get_admin_password`

Expand All @@ -61,7 +62,7 @@ Handle get-admin-password event.

---

<a href="../src/actions.py#L45"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/actions.py#L47"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `on_rotate_credentials`

Expand Down
10 changes: 8 additions & 2 deletions src-docs/agent.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ The Jenkins agent relation observer.
### <kbd>function</kbd> `__init__`

```python
__init__(charm: CharmBase, state: State, ingress_observer: Observer)
__init__(
charm: CharmBase,
state: State,
ingress_observer: Observer,
jenkins_instance: Jenkins
)
```

Initialize the observer and register event handlers.
Expand All @@ -55,6 +60,7 @@ Initialize the observer and register event handlers.

- <b>`charm`</b>: The parent charm to attach the observer to.
- <b>`state`</b>: The charm state.
- <b>`jenkins_instance`</b>: The Jenkins wrapper.
- <b>`ingress_observer`</b>: The ingress observer responsible for agent discovery.


Expand All @@ -81,7 +87,7 @@ Shortcut for more simple access the model.

---

<a href="../src/agent.py#L238"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/agent.py#L247"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `reconfigure_agent_discovery`

Expand Down
17 changes: 17 additions & 0 deletions src-docs/charm.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,21 @@ Unit that this execution is responsible for.



---

<a href="../src/charm.py#L110"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `calculate_env`

```python
calculate_env() → Environment
```

Return a dictionary for Jenkins Pebble layer.



**Returns:**
The dictionary mapping of environment variables for the Jenkins service.


19 changes: 18 additions & 1 deletion src-docs/ingress.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Observer module for Jenkins to ingress integration.
## <kbd>class</kbd> `Observer`
The Jenkins Ingress integration observer.

<a href="../src/ingress.py#L15"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
<a href="../src/ingress.py#L17"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

Expand All @@ -39,4 +39,21 @@ Shortcut for more simple access the model.



---

<a href="../src/ingress.py#L34"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `get_path`

```python
get_path() → str
```

Return the path in whick Jenkins is expected to be listening.



**Returns:**
the path for the ingress URL.


Loading

0 comments on commit 07fa609

Please sign in to comment.