Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-3689, DPE-4179] Expose read-write and read-only endpoints when related to data-integrator + TLS support #119

Merged
merged 34 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0e93ef5
WIP: Expose read-write and read-only endpoints when related to data-i…
shayancanonical Mar 29, 2024
b4f85d0
Merge branch 'main' into feature/external_connectivity
shayancanonical Apr 4, 2024
ad8b129
A working version of charm with simultaneous relations with COS and TLS
shayancanonical Apr 9, 2024
6dae91c
Avoid using kw_only in dataclasses due to python3.8 in juju 3.1.7
shayancanonical Apr 10, 2024
716da08
Add TLS integration test + test COS when related to TLS operator
shayancanonical Apr 11, 2024
8293c94
Add integration test for data integrator and tls operator; for extern…
shayancanonical Apr 11, 2024
5b3627b
Skip data integrator tests on focal
shayancanonical Apr 11, 2024
56c0c94
Run format
shayancanonical Apr 11, 2024
61e2c8c
Use latest/stable for data integrator
shayancanonical Apr 11, 2024
6b47d09
Avoid running data integration tests when focal only
shayancanonical Apr 12, 2024
eddf296
Attempt at correcting ci.yaml invalid workflow file
shayancanonical Apr 12, 2024
5fa3bc7
Use matrix exclude instead of if conditions
shayancanonical Apr 12, 2024
26235fd
Remove quotes from exclusion group
shayancanonical Apr 12, 2024
3657e83
Another attempt at matrix exclusion
shayancanonical Apr 12, 2024
b7afd29
Use juju_.has_secrets to be correctly handle action result return cod…
shayancanonical Apr 12, 2024
d9c072c
Fix mixup in return code keys across juju versions
shayancanonical Apr 12, 2024
79fd8ef
Fix typo
shayancanonical Apr 12, 2024
ee4b098
Address PR feedback
shayancanonical Apr 17, 2024
6f4b271
Add missing monkeypatch method for unit tests
shayancanonical Apr 17, 2024
eba3c8f
Avoid re-bootstrapping in workload's reconcile method
shayancanonical Apr 18, 2024
2e276ba
Update charmed-mysql snap revision to latest 8.0/edge revision
shayancanonical Apr 18, 2024
0cf8b71
Address PR feedback
shayancanonical Apr 19, 2024
0a36768
Extend wait time in exporter tests + revert ops dependency to <2.10.0
shayancanonical Apr 22, 2024
1134e43
Use tenacity to retry checking exporter endpoints instead of using ti…
shayancanonical Apr 22, 2024
41d7616
Run format
shayancanonical Apr 22, 2024
6f60488
Update data_interfaces charm lib to v0.34
shayancanonical Apr 22, 2024
40beb97
Miscellaneous integration test improvements
shayancanonical Apr 22, 2024
1b0bb19
Address PR feedback + fix broken upgrades
shayancanonical Apr 24, 2024
996ba1e
Merge branch 'main' into feature/external_connectivity
shayancanonical Apr 24, 2024
b99ecce
Merge branch 'main' into feature/external_connectivity
shayancanonical Apr 24, 2024
10748cf
Address PR feedback
shayancanonical Apr 24, 2024
03d4ed4
Fix assertion message in integration test
shayancanonical Apr 24, 2024
0978187
Address PR feedback
shayancanonical Apr 24, 2024
f8828dc
Fix bugs introduced while addressing PR feedback; pass event as kwarg
shayancanonical Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ jobs:
- juju-snap-channel: "2.9/stable"
agent-version: "2.9.45"
libjuju-version: "2.9.44.1"
exclude:
- groups: {path_to_test_file: tests/integration/test_data_integrator.py}
ubuntu-versions: {series: focal}
name: ${{ matrix.juju-snap-channel }} - (GH hosted) ${{ matrix.groups.job_name }} | ${{ matrix.ubuntu-versions.series }}
needs:
- lint
Expand Down Expand Up @@ -156,7 +159,9 @@ jobs:
echo "mark_expression=not unstable" >> "$GITHUB_OUTPUT"
fi
- name: Run integration tests
run: tox run -e integration -- "${{ matrix.groups.path_to_test_file }}" --group="${{ matrix.groups.group_number }}" -m '${{ steps.select-test-stability.outputs.mark_expression }}' --mysql-router-charm-series=${{ matrix.ubuntu-versions.series }} --mysql-router-charm-bases-index=${{ matrix.ubuntu-versions.bases-index }}
if:
run:
tox run -e integration -- "${{ matrix.groups.path_to_test_file }}" --group="${{ matrix.groups.group_number }}" -m '${{ steps.select-test-stability.outputs.mark_expression }}' --mysql-router-charm-series=${{ matrix.ubuntu-versions.series }} --mysql-router-charm-bases-index=${{ matrix.ubuntu-versions.bases-index }}
env:
LIBJUJU_VERSION_SPECIFIER: ${{ matrix.libjuju-version }}
SECRETS_FROM_GITHUB: |
Expand Down
9 changes: 9 additions & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ resume-upgrade:
description: Upgrade remaining units (after you manually verified that upgraded units are healthy).
force-upgrade:
description: Force upgrade of this unit.
set-tls-private-key:
description:
Set the private key, which will be used for certificate signing requests (CSR). Run
for each unit separately.
params:
internal-key:
type: string
description: The content of private key for internal communications with
clients. Content will be auto-generated if this option is not specified.
6 changes: 6 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ parts:
echo 'ERROR: Use "tox run -e build" instead of calling "charmcraft pack" directly' >&2
exit 1
fi
build-packages:
- libffi-dev
- libssl-dev
- pkg-config
- rustc
- cargo
charm-entrypoint: src/machine_charm.py
prime:
- charm_version
Expand Down
Loading
Loading