Commit 1be534a
committed
helmchart: add ExternalArtifact as a valid source kind
ExternalArtifact (source.toolkit.fluxcd.io/v1) was introduced in
v1.7.0 but was never wired into the HelmChart controller. This commit
adds the necessary plumbing so that a HelmChart can reference an
ExternalArtifact as its source, enabling advanced source-composition
patterns via the source-watcher controller.
Changes:
- Extend LocalHelmChartSourceReference.Kind enum to include ExternalArtifact
- Register a Watch for ExternalArtifact in SetupWithManager
- Add ExternalArtifactKind case to getSource()
- Add *sourcev1.ExternalArtifact case to reconcileSource()
- Add requestsForExternalArtifactChange() reconcile-trigger helper
ExternalArtifact exposes a tarball artifact identical in structure to
Bucket and GitRepository, so it reuses the existing
buildFromTarballArtifact path with no new builder code required.
Signed-off-by: Rajit Shah <rajit219@gmail.com>1 parent 3f4f40a commit 1be534a
File tree
2 files changed
+46
-3
lines changed- api/v1
- internal/controller
2 files changed
+46
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
508 | 513 | | |
509 | 514 | | |
510 | 515 | | |
| 516 | + | |
| 517 | + | |
511 | 518 | | |
512 | 519 | | |
513 | 520 | | |
| |||
931 | 938 | | |
932 | 939 | | |
933 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
934 | 947 | | |
935 | 948 | | |
936 | | - | |
| 949 | + | |
937 | 950 | | |
938 | 951 | | |
939 | 952 | | |
| |||
1202 | 1215 | | |
1203 | 1216 | | |
1204 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1205 | 1248 | | |
1206 | 1249 | | |
1207 | 1250 | | |
| |||
0 commit comments