From 9d55b29f0d0e4db2222d419cd14fa557f83b3610 Mon Sep 17 00:00:00 2001 From: David Wilding Date: Thu, 23 Apr 2026 14:01:23 +0800 Subject: [PATCH] bump api_demo_server to 1.0.3 --- .../create-a-minimal-kubernetes-charm.md | 6 +++--- .../expose-operational-tasks-via-actions.md | 2 +- .../integrate-your-charm-with-postgresql.md | 2 +- .../make-your-charm-configurable.md | 4 ++-- .../observe-your-charm-with-cos-lite.md | 2 +- examples/k8s-1-minimal/charmcraft.yaml | 2 +- examples/k8s-2-configurable/charmcraft.yaml | 2 +- examples/k8s-3-postgresql/charmcraft.yaml | 2 +- examples/k8s-4-action/charmcraft.yaml | 2 +- examples/k8s-5-observe/charmcraft.yaml | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/create-a-minimal-kubernetes-charm.md b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/create-a-minimal-kubernetes-charm.md index 377477ce4..4bb02a36c 100644 --- a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/create-a-minimal-kubernetes-charm.md +++ b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/create-a-minimal-kubernetes-charm.md @@ -84,7 +84,7 @@ resources: # used by the 'canonical/charming-actions' GitHub action for automated releases. # The test_deploy function in tests/integration/test_charm.py reads upstream-source # to determine which OCI image to use when running the charm's integration tests. - upstream-source: ghcr.io/canonical/api_demo_server:1.0.2 + upstream-source: ghcr.io/canonical/api_demo_server:1.0.3 ``` ### Define the charm class @@ -232,7 +232,7 @@ Deploy the `.charm` file, as below. Juju will create a Kubernetes `StatefulSet` ```text juju deploy ./fastapi-demo_amd64.charm --resource \ - demo-server-image=ghcr.io/canonical/api_demo_server:1.0.2 + demo-server-image=ghcr.io/canonical/api_demo_server:1.0.3 ``` @@ -273,7 +273,7 @@ curl 10.1.157.73:8000/version You should see a JSON string with the version of the application: ``` -{"version":"1.0.2"} +{"version":"1.0.3"} ``` Congratulations, you've successfully created a minimal Kubernetes charm! diff --git a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/expose-operational-tasks-via-actions.md b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/expose-operational-tasks-via-actions.md index 41f1715e5..3bc0f9f06 100644 --- a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/expose-operational-tasks-via-actions.md +++ b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/expose-operational-tasks-via-actions.md @@ -111,7 +111,7 @@ charmcraft pack juju refresh \ --path="./fastapi-demo_amd64.charm" \ fastapi-demo --force-units --resource \ - demo-server-image=ghcr.io/canonical/api_demo_server:1.0.2 + demo-server-image=ghcr.io/canonical/api_demo_server:1.0.3 ``` Next, test that the basic action invocation works: diff --git a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/integrate-your-charm-with-postgresql.md b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/integrate-your-charm-with-postgresql.md index 8e5f49e8b..52cc09114 100644 --- a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/integrate-your-charm-with-postgresql.md +++ b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/integrate-your-charm-with-postgresql.md @@ -344,7 +344,7 @@ charmcraft pack juju refresh \ --path="./fastapi-demo_amd64.charm" \ fastapi-demo --force-units --resource \ - demo-server-image=ghcr.io/canonical/api_demo_server:1.0.2 + demo-server-image=ghcr.io/canonical/api_demo_server:1.0.3 ``` Next, deploy the `postgresql-k8s` charm: diff --git a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/make-your-charm-configurable.md b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/make-your-charm-configurable.md index 199aa80b4..6be89bf55 100644 --- a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/make-your-charm-configurable.md +++ b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/make-your-charm-configurable.md @@ -180,7 +180,7 @@ charmcraft pack juju refresh \ --path="./fastapi-demo_amd64.charm" \ fastapi-demo --force-units --resource \ - demo-server-image=ghcr.io/canonical/api_demo_server:1.0.2 + demo-server-image=ghcr.io/canonical/api_demo_server:1.0.3 ``` Now, check the available configuration options: @@ -201,7 +201,7 @@ Now, let's validate that the app is actually running and reachable on the new po curl 10.1.157.74:5000/version ``` -You should see JSON string with the version of the application: `{"version":"1.0.2"}` +You should see JSON string with the version of the application: `{"version":"1.0.3"}` Let's also verify that our invalid port number check works by setting the port to `22` and then running `juju status`: diff --git a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/observe-your-charm-with-cos-lite.md b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/observe-your-charm-with-cos-lite.md index f5d4170c7..be53c8bb3 100644 --- a/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/observe-your-charm-with-cos-lite.md +++ b/docs/tutorial/from-zero-to-hero-write-your-first-kubernetes-charm/observe-your-charm-with-cos-lite.md @@ -232,7 +232,7 @@ charmcraft pack juju refresh \ --path="./fastapi-demo_amd64.charm" \ fastapi-demo --force-units --resource \ - demo-server-image=ghcr.io/canonical/api_demo_server:1.0.2 + demo-server-image=ghcr.io/canonical/api_demo_server:1.0.3 ``` Next, test your charm's ability to integrate with Prometheus, Loki, and Grafana by following the steps below. diff --git a/examples/k8s-1-minimal/charmcraft.yaml b/examples/k8s-1-minimal/charmcraft.yaml index 2f5ad9ba7..c86cc2f29 100644 --- a/examples/k8s-1-minimal/charmcraft.yaml +++ b/examples/k8s-1-minimal/charmcraft.yaml @@ -57,4 +57,4 @@ resources: # used by the 'canonical/charming-actions' GitHub action for automated releases. # The test_deploy function in tests/integration/test_charm.py reads upstream-source # to determine which OCI image to use when running the charm's integration tests. - upstream-source: ghcr.io/canonical/api_demo_server:1.0.2 + upstream-source: ghcr.io/canonical/api_demo_server:1.0.3 diff --git a/examples/k8s-2-configurable/charmcraft.yaml b/examples/k8s-2-configurable/charmcraft.yaml index 2c24db19a..b8dd0fa4b 100644 --- a/examples/k8s-2-configurable/charmcraft.yaml +++ b/examples/k8s-2-configurable/charmcraft.yaml @@ -46,4 +46,4 @@ resources: # used by the 'canonical/charming-actions' GitHub action for automated releases. # The test_deploy function in tests/integration/test_charm.py reads upstream-source # to determine which OCI image to use when running the charm's integration tests. - upstream-source: ghcr.io/canonical/api_demo_server:1.0.2 + upstream-source: ghcr.io/canonical/api_demo_server:1.0.3 diff --git a/examples/k8s-3-postgresql/charmcraft.yaml b/examples/k8s-3-postgresql/charmcraft.yaml index 95636b2cb..f75adf5cd 100644 --- a/examples/k8s-3-postgresql/charmcraft.yaml +++ b/examples/k8s-3-postgresql/charmcraft.yaml @@ -56,4 +56,4 @@ resources: # used by the 'canonical/charming-actions' GitHub action for automated releases. # The test_deploy function in tests/integration/test_charm.py reads upstream-source # to determine which OCI image to use when running the charm's integration tests. - upstream-source: ghcr.io/canonical/api_demo_server:1.0.2 + upstream-source: ghcr.io/canonical/api_demo_server:1.0.3 diff --git a/examples/k8s-4-action/charmcraft.yaml b/examples/k8s-4-action/charmcraft.yaml index 36050153e..4c0ad89f1 100644 --- a/examples/k8s-4-action/charmcraft.yaml +++ b/examples/k8s-4-action/charmcraft.yaml @@ -66,4 +66,4 @@ resources: # used by the 'canonical/charming-actions' GitHub action for automated releases. # The test_deploy function in tests/integration/test_charm.py reads upstream-source # to determine which OCI image to use when running the charm's integration tests. - upstream-source: ghcr.io/canonical/api_demo_server:1.0.2 + upstream-source: ghcr.io/canonical/api_demo_server:1.0.3 diff --git a/examples/k8s-5-observe/charmcraft.yaml b/examples/k8s-5-observe/charmcraft.yaml index 0d241099c..60df53f76 100644 --- a/examples/k8s-5-observe/charmcraft.yaml +++ b/examples/k8s-5-observe/charmcraft.yaml @@ -85,4 +85,4 @@ resources: # used by the 'canonical/charming-actions' GitHub action for automated releases. # The test_deploy function in tests/integration/test_charm.py reads upstream-source # to determine which OCI image to use when running the charm's integration tests. - upstream-source: ghcr.io/canonical/api_demo_server:1.0.2 + upstream-source: ghcr.io/canonical/api_demo_server:1.0.3