Skip to content

Commit 8b51fba

Browse files
xeniapeadwk67
andauthored
chore: add oci references, merge templating changes (#514)
* replace repo urls * bumped op-rs to 0.85, changelog * corrected path to nyc image --------- Co-authored-by: Andrew Kenworthy <andrew.kenworthy@stackable.de>
1 parent b01265a commit 8b51fba

23 files changed

+45
-40
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ All notable changes to this project will be documented in this file.
1111
- Run a `containerdebug` process in the background of each Spark container to collect debugging information ([#508]).
1212
- Aggregate emitted Kubernetes events on the CustomResources ([#515]).
1313

14+
### Changed
15+
16+
- Default to OCI for image metadata and product image selection ([#514]).
17+
1418
[#501]: https://github.com/stackabletech/spark-k8s-operator/pull/501
1519
[#508]: https://github.com/stackabletech/spark-k8s-operator/pull/508
20+
[#514]: https://github.com/stackabletech/spark-k8s-operator/pull/514
1621
[#515]: https://github.com/stackabletech/spark-k8s-operator/pull/515
1722

1823
## [24.11.1] - 2025-01-10

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde = { version = "1.0", features = ["derive"] }
2222
serde_json = "1.0"
2323
serde_yaml = "0.9"
2424
snafu = "0.8"
25-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.84.1" }
25+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.85.0" }
2626
strum = { version = "0.26", features = ["derive"] }
2727
tokio = { version = "1.39", features = ["full"] }
2828
tracing = "0.1"

crate-hashes.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/helm/spark-k8s-operator/crds/crds.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ spec:
917917
Consult the [Product image selection documentation](https://docs.stackable.tech/home/nightly/concepts/product_image_selection) for details.
918918
properties:
919919
custom:
920-
description: Overwrite the docker image. Specify the full docker image name, e.g. `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
920+
description: Overwrite the docker image. Specify the full docker image name, e.g. `oci.stackable.tech/sdp/superset:1.4.1-stackable2.1.0`
921921
type: string
922922
productVersion:
923923
description: Version of the product, e.g. `1.4.1`.
@@ -944,7 +944,7 @@ spec:
944944
nullable: true
945945
type: array
946946
repo:
947-
description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
947+
description: Name of the docker repo, e.g. `oci.stackable.tech/sdp`
948948
nullable: true
949949
type: string
950950
stackableVersion:
@@ -1047,7 +1047,7 @@ spec:
10471047
Consult the [Product image selection documentation](https://docs.stackable.tech/home/nightly/concepts/product_image_selection) for details.
10481048
properties:
10491049
custom:
1050-
description: Overwrite the docker image. Specify the full docker image name, e.g. `docker.stackable.tech/stackable/superset:1.4.1-stackable2.1.0`
1050+
description: Overwrite the docker image. Specify the full docker image name, e.g. `oci.stackable.tech/sdp/superset:1.4.1-stackable2.1.0`
10511051
type: string
10521052
productVersion:
10531053
description: Version of the product, e.g. `1.4.1`.
@@ -1074,7 +1074,7 @@ spec:
10741074
nullable: true
10751075
type: array
10761076
repo:
1077-
description: Name of the docker repo, e.g. `docker.stackable.tech/stackable`
1077+
description: Name of the docker repo, e.g. `oci.stackable.tech/sdp`
10781078
nullable: true
10791079
type: string
10801080
stackableVersion:

deploy/helm/spark-k8s-operator/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Default values for spark-k8s-operator.
22
---
33
image:
4-
repository: docker.stackable.tech/stackable/spark-k8s-operator
4+
repository: oci.stackable.tech/sdp/spark-k8s-operator
55
pullPolicy: IfNotPresent
66
pullSecrets: []
77

docs/modules/spark-k8s/examples/example-sparkapp-image.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: example-sparkapp-image
66
namespace: default
77
spec:
8-
image: docker.stackable.tech/stackable/ny-tlc-report:0.2.0 # <1>
8+
image: oci.stackable.tech/stackable/ny-tlc-report:0.2.0 # <1>
99
sparkImage:
1010
productVersion: 3.5.2
1111
mode: cluster

docs/modules/spark-k8s/pages/reference/environment-variables.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ docker run \
3030
--env KUBECONFIG=/home/stackable/.kube/config \
3131
--env KUBERNETES_CLUSTER_DOMAIN=mycluster.local \
3232
--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
33-
docker.stackable.tech/stackable/spark-k8s-operator:latest
33+
oci.stackable.tech/sdp/spark-k8s-operator:0.0.0-dev
3434
----
3535

3636
== WATCH_NAMESPACE
@@ -59,5 +59,5 @@ docker run \
5959
--env KUBECONFIG=/home/stackable/.kube/config \
6060
--env WATCH_NAMESPACE=test \
6161
--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \
62-
docker.stackable.tech/stackable/spark-k8s-operator:latest
62+
oci.stackable.tech/sdp/spark-k8s-operator:0.0.0-dev
6363
----

docs/modules/spark-k8s/pages/usage-guide/job-dependencies.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Below is an example of a custom image that includes a JDBC driver:
5858

5959
[source, Dockerfile]
6060
----
61-
FROM docker.stackable.tech/stackable/spark-k8s:3.5.2-stackable24.11.0 # <1>
61+
FROM oci.stackable.tech/sdp/spark-k8s:3.5.2-stackable24.11.0 # <1>
6262
6363
RUN curl --fail -o /stackable/spark/jars/postgresql-42.6.0.jar "https://jdbc.postgresql.org/download/postgresql-42.6.0.jar"
6464
----
@@ -75,7 +75,7 @@ metadata:
7575
name: spark-jdbc
7676
spec:
7777
sparkImage:
78-
custom: "docker.stackable.tech/sandbox/spark-k8s:3.5.2-stackable0.0.0-dev" # <1>
78+
custom: "oci.stackable.tech/sandbox/spark-k8s:3.5.2-stackable0.0.0-dev" # <1>
7979
productVersion: "3.5.2" # <2>
8080
pullPolicy: IfNotPresent # <3>
8181
...

examples/README-examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ stackablectl operator install spark-k8s commons secret
1616
Load the `ny-tlc-report` image to the cluster:
1717

1818
````text
19-
kind load docker-image docker.stackable.tech/stackable/ny-tlc-report:0.2.0 --name stackable-data-platform
19+
kind load docker-image oci.stackable.tech/stackable/ny-tlc-report:0.2.0 --name stackable-data-platform
2020
````
2121

2222
## Set up the `PersistentVolumeClaim`

examples/ny-tlc-report-image.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
namespace: default
77
spec:
88
# everything under /jobs will be copied to /stackable/spark/jobs
9-
image: docker.stackable.tech/stackable/ny-tlc-report:0.2.0
10-
sparkImage: docker.stackable.tech/stackable/spark-k8s:3.5.2-stackable0.0.0-dev
9+
image: oci.stackable.tech/stackable/ny-tlc-report:0.2.0
10+
sparkImage: oci.stackable.tech/sdp/spark-k8s:3.5.2-stackable0.0.0-dev
1111
sparkImagePullPolicy: IfNotPresent
1212
mode: cluster
1313
mainApplicationFile: local:///stackable/spark/jobs/ny_tlc_report.py

kind/assert-pvc-jars.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
claimName: pvc-ksv
1414
containers:
1515
- name: assert-pvc-jars
16-
image: docker.stackable.tech/stackable/tools:0.2.0-stackable0.4.0
16+
image: oci.stackable.tech/sdp/tools:0.2.0-stackable0.4.0
1717
env:
1818
- name: DEST_DIR
1919
value: "/dependencies/jars"

kind/kind-pvc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
claimName: pvc-ksv
2525
containers:
2626
- name: aws-deps
27-
image: docker.stackable.tech/stackable/tools:0.2.0-stackable0.4.0
27+
image: oci.stackable.tech/sdp/tools:0.2.0-stackable0.4.0
2828
env:
2929
- name: DEST_DIR
3030
value: "/dependencies/jars"

tests/templates/kuttl/custom-log-directory/20-test-logs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
activeDeadlineSeconds: 100
1111
containers:
1212
- name: history-api-check
13-
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
13+
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
1414
command:
1515
[
1616
"bash",

tests/templates/kuttl/logging/06-deploy-automatic-log-config-spark-app.yaml.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ spec:
1212
productVersion: "{{ test_scenario['values']['spark'] }}"
1313
{% endif %}
1414
pullPolicy: IfNotPresent
15-
image: docker.stackable.tech/stackable/ny-tlc-report:{{ test_scenario['values']['ny-tlc-report'] }}
15+
image: oci.stackable.tech/stackable/ny-tlc-report:{{ test_scenario['values']['ny-tlc-report'] }}
1616
vectorAggregatorConfigMapName: spark-vector-aggregator-discovery
1717
mode: cluster
1818
mainClass: org.apache.spark.examples.SparkALS

tests/templates/kuttl/logging/07-deploy-custom-log-config-spark-app.yaml.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
productVersion: "{{ test_scenario['values']['spark'] }}"
3030
{% endif %}
3131
pullPolicy: IfNotPresent
32-
image: docker.stackable.tech/stackable/ny-tlc-report:{{ test_scenario['values']['ny-tlc-report'] }}
32+
image: oci.stackable.tech/stackable/ny-tlc-report:{{ test_scenario['values']['ny-tlc-report'] }}
3333
vectorAggregatorConfigMapName: spark-vector-aggregator-discovery
3434
mode: cluster
3535
mainClass: org.apache.spark.examples.SparkALS

tests/templates/kuttl/logging/10-install-test-runner.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ spec:
1717
spec:
1818
containers:
1919
- name: test-runner
20-
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
20+
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
2121
stdin: true
2222
tty: true

tests/templates/kuttl/overrides/20-test-logs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
activeDeadlineSeconds: 100
1111
containers:
1212
- name: history-api-check
13-
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
13+
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
1414
command:
1515
[
1616
"bash",

tests/templates/kuttl/pyspark-ny-public-s3-image/10-deploy-spark-app.yaml.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: pyspark-ny-public-s3-image
66
spec:
77
# everything under /jobs will be copied to /stackable/spark/jobs
8-
image: "docker.stackable.tech/stackable/ny-tlc-report:{{ test_scenario['values']['ny-tlc-report'] }}"
8+
image: "oci.stackable.tech/stackable/ny-tlc-report:{{ test_scenario['values']['ny-tlc-report'] }}"
99
{% if lookup('env', 'VECTOR_AGGREGATOR') %}
1010
vectorAggregatorConfigMapName: vector-aggregator-discovery
1111
{% endif %}

tests/templates/kuttl/smoke/60-test-logs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
activeDeadlineSeconds: 100
1111
containers:
1212
- name: history-api-check
13-
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
13+
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
1414
command:
1515
[
1616
"bash",

tests/templates/kuttl/spark-history-server/20-test-logs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
activeDeadlineSeconds: 100
1111
containers:
1212
- name: history-api-check
13-
image: docker.stackable.tech/stackable/testing-tools:0.2.0-stackable0.0.0-dev
13+
image: oci.stackable.tech/sdp/testing-tools:0.2.0-stackable0.0.0-dev
1414
command:
1515
[
1616
"bash",

tests/test-definition.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ dimensions:
99
- 3.5.2
1010
# Alternatively, if you want to use a custom image, append a comma and the full image name to the product version
1111
# as in the example below.
12-
# - 3.5.1,docker.stackable.tech/sandbox/spark-k8s:3.5.1-stackable0.0.0-dev
12+
# - 3.5.1,oci.stackable.tech/sandbox/spark-k8s:3.5.1-stackable0.0.0-dev
1313
- name: spark-delta-lake
1414
values:
1515
- 3.5.2
16-
# - 3.5.1,docker.stackable.tech/sandbox/spark-k8s:3.5.1-stackable0.0.0-dev
16+
# - 3.5.1,oci.stackable.tech/sandbox/spark-k8s:3.5.1-stackable0.0.0-dev
1717
- name: hbase
1818
values:
1919
- 2.6.0

0 commit comments

Comments
 (0)