Skip to content

Commit cecb229

Browse files
[DPE-3689, DPE-4179] Expose read-write and read-only endpoints when related to data-integrator + TLS support (#119)
## Issue 1. We are currently not reacting to `external-node-connectivity` that may be sent to mysql-router via data-interfaces when related with data-integrator 2. We are not able to relate with the TLS operators 3. We broke upgrades (#130) when we implemented reconcile pattern for COS ## Solution 1. Support `external-node-connectivity` by binding to address `0.0.0.0` when related to data-integrator. Else, only expose router through a unix socket 2. Add capability to relate to TLS operators 3. Refactor to fix upgrades -- remaining integration test will be added in a follow up PR ## Testing Added integration tests for TLS + COS, TLS, and TLS + Data Integrator ## todo ~~Change the `charmed-mysql` snap version to the official `8.0/edge` version instead of a branch build~~
1 parent c16eb01 commit cecb229

29 files changed

+4066
-398
lines changed

.github/workflows/ci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ jobs:
116116
- juju-snap-channel: "2.9/stable"
117117
agent-version: "2.9.45"
118118
libjuju-version: "2.9.44.1"
119+
exclude:
120+
- groups: {path_to_test_file: tests/integration/test_data_integrator.py}
121+
ubuntu-versions: {series: focal}
119122
name: ${{ matrix.juju-snap-channel }} - (GH hosted) ${{ matrix.groups.job_name }} | ${{ matrix.ubuntu-versions.series }}
120123
needs:
121124
- lint

actions.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ force-upgrade:
1212
Use to
1313
- force incompatible upgrade and/or
1414
- continue upgrade if 1+ upgraded units have non-active status
15+
set-tls-private-key:
16+
description:
17+
Set the private key, which will be used for certificate signing requests (CSR). Run
18+
for each unit separately.
19+
params:
20+
internal-key:
21+
type: string
22+
description: The content of private key for internal communications with
23+
clients. Content will be auto-generated if this option is not specified.

charmcraft.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ parts:
2727
echo 'ERROR: Use "tox run -e build" instead of calling "charmcraft pack" directly' >&2
2828
exit 1
2929
fi
30+
build-packages:
31+
- libffi-dev
32+
- libssl-dev
33+
- pkg-config
34+
- rustc
35+
- cargo
3036
charm-entrypoint: src/machine_charm.py
3137
prime:
3238
- charm_version

0 commit comments

Comments
 (0)