diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml index 01bed96b..557d319d 100644 --- a/.github/workflows/on_push.yaml +++ b/.github/workflows/on_push.yaml @@ -2,6 +2,7 @@ on: push: branches: - '3.4-22.04/*' + - '3.5-22.04/*' jobs: publish: diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 27666359..ea5cd950 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -3,6 +3,7 @@ on: push: branches: - 3.4-22.04/edge + - 3.5-22.04/edge pull_request: jobs: build: diff --git a/README.md b/README.md index 960bb501..a22a687b 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The Charmed Spark Rock comes with some built-in tooling embedded: ROCKs will be named as `-_`. -`` is the software version; `` is the Ubuntu LTS series that ROCKs supports; and the is the type of release, if it is edge, candidate or stable. Example versioning will be 3.4-22.04_stable which means Charmed Spark is a version 3.4.x of the software, supporting the 22.04 Ubuntu release and currently a 'stable' version of the software. See versioning details [here](https://snapcraft.io/docs/channels). +`` is the software version; `` is the Ubuntu LTS series that ROCKs supports; and the is the type of release, if it is edge, candidate or stable. Example versioning will be 3.5-22.04_stable which means Charmed Spark is a version 3.5.x of the software, supporting the 22.04 Ubuntu release and currently a 'stable' version of the software. See versioning details [here](https://snapcraft.io/docs/channels). Channel can also be represented by combining `_` @@ -41,7 +41,7 @@ https://github.com/canonical/charmed-spark-rock/pkgs/container/charmed-spark The image can be used straight away when running Spark on Kubernetes by setting the appropriate configuration property: ```shell -spark.kubernetes.container.image=ghcr.io/canonical/charmed-spark:3.4-22.04_edge +spark.kubernetes.container.image=ghcr.io/canonical/charmed-spark:3.5-22.04_edge ``` ### Using `spark8t` CLI @@ -49,7 +49,7 @@ spark.kubernetes.container.image=ghcr.io/canonical/charmed-spark:3.4-22.04_edge The `spark8t` CLI tooling interacts with the K8s API to create, manage and delete K8s resources representing the Spark service account. Make sure that the kube config file is correctly loaded into the container, e.g. ```shell -docker run --name chamed-spark -v /path/to/kube/config:/var/lib/spark/.kube/config ghcr.io/canonical/charmed-spark:3.4-22.04_edge +docker run --name chamed-spark -v /path/to/kube/config:/var/lib/spark/.kube/config ghcr.io/canonical/charmed-spark:3.5-22.04_edge ``` Note that this will start the image and a long-living service, allowing you to exec commands: @@ -59,7 +59,7 @@ docker exec charmed-spark spark-client.service-account-registry list If you prefer to run one-shot commands, without having the Charmed Spark image running, use `\; exec` prefix, e.g. ```shell -docker run -v ... ghcr.io/canonical/charmed-spark:3.4-22.04_edge \; exec spark-client.service-account-registry list +docker run -v ... ghcr.io/canonical/charmed-spark:3.5-22.04_edge \; exec spark-client.service-account-registry list ``` For more information about spark-client API and `spark8t` tooling, please refer to [here](https://discourse.charmhub.io/t/spark-client-snap-how-to-manage-spark-accounts/8959). @@ -71,7 +71,7 @@ Charmed Spark Rock Image is delivered with Pebble already included in order to m #### Starting History Server ```shell -docker run ghcr.io/canonical/charmed-spark:3.4-22.04_edge \; start history-server +docker run ghcr.io/canonical/charmed-spark:3.5-22.04_edge \; start history-server ``` ### Running Jupyter Lab @@ -86,7 +86,7 @@ To start a JupyterLab server using the `charmed-spark-jupyter` image, use docker run \ -v /path/to/kube/config:/var/lib/spark/.kube/config \ -p :8888 - ghcr.io/canonical/charmed-spark-jupyter:3.4-22.04_edge \ + ghcr.io/canonical/charmed-spark-jupyter:3.5-22.04_edge \ --username --namespace ``` @@ -99,7 +99,7 @@ JupyterLab server to act as a Spark driver and request resources on the K8s clus ## Developers and Contributing -Please see the [CONTRIBUTING.md](https://github.com/canonical/charmed-spark-rock/blob/3.4-22.04/edge/CONTRIBUTING.md) for guidelines and for developer guidance. +Please see the [CONTRIBUTING.md](https://github.com/canonical/charmed-spark-rock/blob/3.5-22.04/edge/CONTRIBUTING.md) for guidelines and for developer guidance. ## Bugs and feature request @@ -111,7 +111,7 @@ If you find a bug in this ROCK or want to request a specific feature, here are t ## Licence statement -Charmed Spark is free software, distributed under the [Apache Software License, version 2.0](https://github.com/canonical/charmed-spark-rock/blob/3.4-22.04/edge/LICENSE). +Charmed Spark is free software, distributed under the [Apache Software License, version 2.0](https://github.com/canonical/charmed-spark-rock/blob/3.5-22.04/edge/LICENSE). ## Trademark Notice diff --git a/images/charmed-spark/conf/spark-defaults.conf b/images/charmed-spark/conf/spark-defaults.conf index 39e4ec01..7d48de12 100644 --- a/images/charmed-spark/conf/spark-defaults.conf +++ b/images/charmed-spark/conf/spark-defaults.conf @@ -1 +1 @@ -spark.kubernetes.container.image=ghcr.io/canonical/charmed-spark:3.4-22.04 +spark.kubernetes.container.image=ghcr.io/canonical/charmed-spark:3.5-22.04 diff --git a/images/charmed-spark/rockcraft.yaml b/images/charmed-spark/rockcraft.yaml index c06a7b78..765c122c 100644 --- a/images/charmed-spark/rockcraft.yaml +++ b/images/charmed-spark/rockcraft.yaml @@ -10,7 +10,7 @@ description: | license: Apache-2.0 -version: "3.4.2" +version: "3.5.1" base: ubuntu@22.04 @@ -51,8 +51,8 @@ services: parts: spark: plugin: dump - source: https://github.com/canonical/central-uploader/releases/download/spark-3.4.2-ubuntu4/spark-3.4.2-ubuntu4-20240514115906-bin-k8s.tgz - source-checksum: sha512/dbb20cd6c94762a6c28ec177f176bdfc4d84f03eb0f2616ed156f268776ab421b6edd6b0118986c39d2b813c8a047f9b550491cf3fdd813e1cb1f1bef55f91df + source: https://github.com/canonical/central-uploader/releases/download/spark-3.5.1-ubuntu1/spark-3.5.1-ubuntu1-20240801193221-bin-k8s.tgz + source-checksum: sha512/4c9ec4dc3f67602ec9f83fa08486985647b8ab7eaf3748c3042a382ed367fc776b7623a067ceef408337cf5c2171a010da0ff063dcbf76c4b84674b661d2330b overlay-script: | sed -i 's/http:\/\/deb.\(.*\)/https:\/\/deb.\1/g' /etc/apt/sources.list apt-get update diff --git a/tests/integration/integration-tests.sh b/tests/integration/integration-tests.sh index 6c6fd8bb..b1de8e0f 100755 --- a/tests/integration/integration-tests.sh +++ b/tests/integration/integration-tests.sh @@ -116,7 +116,7 @@ cleanup_user_failure() { teardown_test_pod() { kubectl logs testpod-admin -n $NAMESPACE kubectl logs testpod -n $NAMESPACE - kubectl logs -l spark-version=3.4.2 -n $NAMESPACE + kubectl logs -l spark-version=3.5.1 -n $NAMESPACE kubectl -n $NAMESPACE delete pod $ADMIN_POD_NAME } diff --git a/tests/integration/resources/testpod.yaml b/tests/integration/resources/testpod.yaml index f190da3e..5d63caab 100644 --- a/tests/integration/resources/testpod.yaml +++ b/tests/integration/resources/testpod.yaml @@ -4,7 +4,7 @@ metadata: name: testpod spec: containers: - - image: ghcr.io/canonical/test-charmed-spark:3.4.2 + - image: ghcr.io/canonical/test-charmed-spark:3.5.1 name: spark ports: - containerPort: 18080