Skip to content

Commit

Permalink
change error log level to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
jbiers committed Feb 1, 2025
1 parent adf60a0 commit 594b408
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/helm-locker/controllers/release/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (h *handler) OnObjectSetChange(setID string, obj runtime.Object) (runtime.O
helmReleases, err := h.helmReleaseCache.GetByIndex(HelmReleaseByReleaseKey, setID)
if err != nil {
err = fmt.Errorf("unable to find HelmReleases for objectset %s to trigger event", setID)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
return nil, err
}
for _, helmRelease := range helmReleases {
Expand Down
12 changes: 6 additions & 6 deletions internal/helm-project-operator/controllers/project/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (h *handler) OnChange(projectHelmChart *v1alpha2.ProjectHelmChart, projectH
projectHelmCharts, err := h.projectHelmChartCache.GetByIndex(ProjectHelmChartByReleaseName, releaseName)
if err != nil {
err = fmt.Errorf("unable to get ProjectHelmCharts to verify if release is already tracked: %s", err)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
return nil, projectHelmChartStatus, err
}
for _, conflictingProjectHelmChart := range projectHelmCharts {
Expand All @@ -239,7 +239,7 @@ func (h *handler) OnChange(projectHelmChart *v1alpha2.ProjectHelmChart, projectH
conflictingProjectHelmChart.Name, conflictingProjectHelmChart.Namespace,
releaseName, releaseNamespace,
)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
projectHelmChartStatus = h.getUnableToCreateHelmReleaseStatus(projectHelmChart, projectHelmChartStatus, err)
return nil, projectHelmChartStatus, nil
}
Expand All @@ -253,7 +253,7 @@ func (h *handler) OnChange(projectHelmChart *v1alpha2.ProjectHelmChart, projectH
targetProjectNamespaces, err := h.projectGetter.GetTargetProjectNamespaces(projectHelmChart)
if err != nil {
err = fmt.Errorf("Unable to find target project namespaces to deploy ProjectHelmChart %s/%s: %s", projectHelmChart.Name, projectHelmChart.Namespace, err)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
return nil, projectHelmChartStatus, err
}
if len(targetProjectNamespaces) == 0 {
Expand Down Expand Up @@ -281,7 +281,7 @@ func (h *handler) OnChange(projectHelmChart *v1alpha2.ProjectHelmChart, projectH
valuesContentBytes, err := values.ToYAML()
if err != nil {
err = fmt.Errorf("unable to marshall spec.values: %s", err)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
projectHelmChartStatus = h.getValuesParseErrorStatus(projectHelmChart, projectHelmChartStatus, err)
return nil, projectHelmChartStatus, nil
}
Expand All @@ -297,7 +297,7 @@ func (h *handler) OnChange(projectHelmChart *v1alpha2.ProjectHelmChart, projectH
// the newly created namespace. Without this, a deleted release namespace will always have ProjectHelmCharts stuck in
// WaitingForDashboardValues since the underlying helm release will never be recreated
err = fmt.Errorf("cannot find release namespace %s to deploy release", releaseNamespace)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
projectHelmChartStatus = h.getUnableToCreateHelmReleaseStatus(projectHelmChart, projectHelmChartStatus, err)
return objs, projectHelmChartStatus, nil
} else if err != nil {
Expand Down Expand Up @@ -329,7 +329,7 @@ func (h *handler) OnChange(projectHelmChart *v1alpha2.ProjectHelmChart, projectH
dashboardValues, err := h.getDashboardValuesFromConfigmaps(projectHelmChart)
if err != nil {
err = fmt.Errorf("unable to get dashboard values from status ConfigMaps: %s", err)
logrus.Errorf("%v", err)
logrus.Warnf("%v", err)
return nil, projectHelmChartStatus, err
}
if len(dashboardValues) == 0 {
Expand Down

0 comments on commit 594b408

Please sign in to comment.