diff --git a/cilium/error.go b/cilium/error.go index 932dca2..dbfbebb 100644 --- a/cilium/error.go +++ b/cilium/error.go @@ -125,7 +125,7 @@ var ( // ErrGettingReleaseCode implies error while fetching latest release for cilium cli ErrGettingReleaseCode = "1030" - ErrFetchIstioVersionsCode = "replace_me" + ErrFetchIstioVersionsCode = "1031" ErrFetchIstioVersions = errors.New(ErrFetchIstioVersionsCode, errors.Alert, []string{"could not get any cilium versions"}, []string{"versions for cilium could not be fetched"}, []string{"could not reach github.com/cilium/cilium/releases", "no versions could be fetched from cilium release page"}, []string{"make sure adapter is reachable"}) ) diff --git a/helpers/component_info.json b/helpers/component_info.json index 4b56fe4..c13a755 100644 --- a/helpers/component_info.json +++ b/helpers/component_info.json @@ -1,5 +1,5 @@ { "name": "CILIUM", "type": "adapter", - "next_error_code": 1031 + "next_error_code": 1032 } \ No newline at end of file diff --git a/helpers/errorutil_analyze_errors.json b/helpers/errorutil_analyze_errors.json index 58612ed..e5fcad4 100644 --- a/helpers/errorutil_analyze_errors.json +++ b/helpers/errorutil_analyze_errors.json @@ -216,6 +216,14 @@ "code_is_int": true, "path": "cilium/error.go" }, + { + "name": "ErrFetchIstioVersionsCode", + "old_code": "1031", + "code": "1031", + "code_is_literal": true, + "code_is_int": true, + "path": "cilium/error.go" + }, { "name": "ErrEmptyConfigCode", "old_code": "1021", @@ -559,6 +567,16 @@ "code_is_int": true, "path": "cilium/error.go" } + ], + "1031": [ + { + "name": "ErrFetchIstioVersionsCode", + "old_code": "1031", + "code": "1031", + "code_is_literal": true, + "code_is_int": true, + "path": "cilium/error.go" + } ] }, "call_expr_codes": [], @@ -641,6 +659,17 @@ "suggested_remediation": "" } ], + "ErrFetchIstioVersionsCode": [ + { + "name": "ErrFetchIstioVersionsCode", + "code": "", + "severity": "Alert", + "long_description": "versions for cilium could not be fetched", + "short_description": "could not get any cilium versions", + "probable_cause": "could not reach github.com/cilium/cilium/releases\nno versions could be fetched from cilium release page", + "suggested_remediation": "make sure adapter is reachable" + } + ], "ErrGetLatestReleaseCode": [ { "name": "ErrGetLatestReleaseCode", diff --git a/helpers/errorutil_analyze_summary.json b/helpers/errorutil_analyze_summary.json index 2ba3839..db5f17d 100644 --- a/helpers/errorutil_analyze_summary.json +++ b/helpers/errorutil_analyze_summary.json @@ -1,7 +1,7 @@ { "min_code": 1000, - "max_code": 1030, - "next_code": 1031, + "max_code": 1031, + "next_code": 1032, "duplicate_codes": {}, "duplicate_names": [], "call_expr_codes": [], @@ -36,7 +36,8 @@ 1027, 1028, 1029, - 1030 + 1030, + 1031 ], "deprecated_new_default": [] } \ No newline at end of file diff --git a/helpers/errorutil_errors_export.json b/helpers/errorutil_errors_export.json index f6c7269..791db2e 100644 --- a/helpers/errorutil_errors_export.json +++ b/helpers/errorutil_errors_export.json @@ -280,6 +280,15 @@ "short_description": "Could not get latest version", "probable_cause": "Latest version could not be found at the specified url", "suggested_remediation": "Verify network connectivity.\nEnsure github.com is reachable.\nTry retrying the operation." + }, + "1031": { + "name": "ErrFetchIstioVersionsCode", + "code": "1031", + "severity": "Alert", + "long_description": "versions for cilium could not be fetched", + "short_description": "could not get any cilium versions", + "probable_cause": "could not reach github.com/cilium/cilium/releases\nno versions could be fetched from cilium release page", + "suggested_remediation": "make sure adapter is reachable" } } } \ No newline at end of file