-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v2.9] fix flux 2.2 oci helmrepository health check
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
fix flux 2.2 oci helmrepository health check | ||
|
||
From: Chanwit Kaewkasi <chanwit@gmail.com> | ||
|
||
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com> | ||
--- | ||
.../HelmRepository/health.lua | 11 +++++++++++ | ||
1 file changed, 11 insertions(+) | ||
|
||
diff --git a/resource_customizations/source.toolkit.fluxcd.io/HelmRepository/health.lua b/resource_customizations/source.toolkit.fluxcd.io/HelmRepository/health.lua | ||
index f5bd9b0bc..18f0cc1bf 100644 | ||
--- a/resource_customizations/source.toolkit.fluxcd.io/HelmRepository/health.lua | ||
+++ b/resource_customizations/source.toolkit.fluxcd.io/HelmRepository/health.lua | ||
@@ -1,4 +1,15 @@ | ||
hs = {} | ||
+ | ||
+if obj.spec.type = "oci" then | ||
+-- https://fluxcd.io/flux/components/source/helmrepositories/#helm-oci-repository | ||
+-- Because the OCI Helm repository is a data container, | ||
+-- there’s nothing to report for READY and STATUS columns above. | ||
+-- The existence of the object can be considered to be ready for use. | ||
+ hs.status = "Healthy" | ||
+ hs.message = "OCI HelmRepository is ready to use." | ||
+ return hs | ||
+end | ||
+ | ||
if obj.status ~= nil then | ||
if obj.status.conditions ~= nil then | ||
ready_status = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# This series applies on Git commit 425d65e07695a741d90b248f2f365f6a4329c23d | ||
# This series applies on Git commit b0fffe419a0f0a40f9f2c0b6346b752ed6537385 | ||
01-fsa-add-flux-ks-and-hr.patch |