Commit 90a945e
fix: require explicit image tag or digest instead of defaulting to :latest (#54)
Drops the `+kubebuilder:default="latest"` from Instance.spec.image.tag and
adds a CEL validation rule requiring at least one of `tag` or `digest` to be
set. Removes the matching Go fallbacks in the StatefulSet builder and the
auto-update reconciler.
Fresh installs that relied on the default now fail admission with a clear
message instead of silently pulling `ghcr.io/paperclipinc/paperclip:latest`,
which ships a broken export map and crashes on startup with
ERR_MODULE_NOT_FOUND.
Samples and the envtest suite are updated to pin an explicit tag.
Fixes #52
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 95c41ec commit 90a945e
8 files changed
Lines changed: 39 additions & 15 deletions
File tree
- api/v1alpha1
- charts/paperclip-operator/templates/crds
- config
- crd/bases
- samples
- internal
- controller
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3998 | 3998 | | |
3999 | 3999 | | |
4000 | 4000 | | |
4001 | | - | |
4002 | | - | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
4003 | 4005 | | |
4004 | 4006 | | |
| 4007 | + | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
4005 | 4012 | | |
4006 | 4013 | | |
4007 | 4014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3992 | 3992 | | |
3993 | 3993 | | |
3994 | 3994 | | |
3995 | | - | |
3996 | | - | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
3997 | 3999 | | |
3998 | 4000 | | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
| 4005 | + | |
3999 | 4006 | | |
4000 | 4007 | | |
4001 | 4008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1109 | 1111 | | |
1110 | 1112 | | |
1111 | 1113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
| 852 | + | |
857 | 853 | | |
858 | 854 | | |
859 | 855 | | |
| |||
0 commit comments