From 2870783faf362e08f0e4561c390b34425ba4e037 Mon Sep 17 00:00:00 2001 From: Nikos Sklikas Date: Thu, 18 May 2023 18:44:22 +0300 Subject: [PATCH] Use ROCK image (#67) --- .github/workflows/tests.yaml | 9 ++++++++- metadata.yaml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1c180bee..a81690ac 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -53,5 +53,12 @@ jobs: - name: Get kratos container logs run: kubectl logs kratos-0 -c kratos -n testing + # Hack to overcome lack of tools (cat, tar) in the workload container - name: Get kratos config file - run: kubectl exec -it kratos-0 -c kratos -n testing -- cat /etc/config/kratos.yaml + run: | + juju ssh kratos/0 "PYTHONPATH=agents/unit-kratos-0/charm/venv/ python3 -c ' + from ops import pebble + p = pebble.Client(\"/charm/containers/kratos/pebble.socket\") + f = p.pull(\"/etc/config/kratos.yaml\") + print(f.read()) + '" diff --git a/metadata.yaml b/metadata.yaml index 4068ef91..bc4535bb 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -13,7 +13,7 @@ resources: oci-image: type: oci-image description: Kratos oci-image - upstream-source: oryd/kratos:v0.11.1 + upstream-source: ghcr.io/canonical/kratos:0.13.0 requires: pg-database: interface: postgresql_client