Skip to content

Commit 9fd9e0b

Browse files
fix: publish shim with spin-v2 naming
RCM requires that the shim resource name matches the shim file name (see spinframework/runtime-class-manager#710). Signed-off-by: Kate Goldenring <kgoldenr@akamai.com>
1 parent 147cdf8 commit 9fd9e0b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/generate-shim-resource.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ cat > "${OUTPUT_FILE}" <<EOF
3737
apiVersion: runtime.spinkube.dev/${CRD_VERSION}
3838
kind: Shim
3939
metadata:
40-
name: spin
40+
name: spin-v2
4141
labels:
42-
app.kubernetes.io/name: spin
43-
app.kubernetes.io/instance: spin
42+
app.kubernetes.io/name: spin-v2
43+
app.kubernetes.io/instance: spin-v2
4444
app.kubernetes.io/part-of: runtime-class-manager
4545
spec:
4646
nodeSelector:
@@ -69,7 +69,7 @@ spec:
6969
# Note: this name is used by the Spin Operator project as its default:
7070
# https://github.com/spinframework/spin-operator/blob/main/config/samples/spin-shim-executor.yaml
7171
name: wasmtime-spin-v2
72-
handler: spin
72+
handler: spin-v2
7373
7474
rolloutStrategy:
7575
type: recreate

0 commit comments

Comments
 (0)