From 105e2c54dc5d907fff4ec3647eedbe213d973985 Mon Sep 17 00:00:00 2001 From: Joonas Bergius Date: Wed, 12 Jun 2024 13:15:14 -0500 Subject: [PATCH] chore: Bump the operator version, update README with instructions on how to override images Signed-off-by: Joonas Bergius --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5bbe55b..b6b9285 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4414,7 +4414,7 @@ dependencies = [ [[package]] name = "wasmcloud-operator" -version = "0.2.3" +version = "0.2.4" dependencies = [ "anyhow", "async-nats", diff --git a/Cargo.toml b/Cargo.toml index 58e9675..0895bed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmcloud-operator" -version = "0.2.3" +version = "0.2.4" edition = "2021" [[bin]] diff --git a/README.md b/README.md index 309ccb0..d55f32b 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,32 @@ stringData: The operator will fail to provision the wasmCloud Deployment if any of these secrets are missing! +#### Customizing the images used for wasmCloud host and NATS leaf + +If you would like to customize the registry or image that gets used to provision the wasmCloud hosts and the NATS leaf that runs alongside them, you can specify the following options in the above `WasmCloudHostConfig` CRD. + +For wasmCloud Host, use the `image` field: +``` +apiVersion: k8s.wasmcloud.dev/v1alpha1 +kind: WasmCloudHostConfig +metadata: + name: my-wasmcloud-cluster +spec: + # other config options omitted + image: registry.example.com/wasmcloud:1.0.2 +``` + +For the NATS leaf, use the `natsImageLeaf` field: +``` +apiVersion: k8s.wasmcloud.dev/v1alpha1 +kind: WasmCloudHostConfig +metadata: + name: my-wasmcloud-cluster +spec: + # other config options omitted + natsLeafImage: registry.example.com/nats:2.10.16 +``` + ### Image Pull Secrets You can also specify an image pull secret to use use with the wasmCloud hosts