Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidecars #146

Merged
merged 28 commits into from
Mar 9, 2021
Merged

Sidecars #146

merged 28 commits into from
Mar 9, 2021

Conversation

eberlep
Copy link
Collaborator

@eberlep eberlep commented Mar 1, 2021

No description provided.

api/v1/postgres_types.go Outdated Show resolved Hide resolved
api/v1/postgres_types.go Outdated Show resolved Hide resolved
api/v1/postgres_types.go Outdated Show resolved Hide resolved
@@ -108,7 +108,7 @@ func (r *StatusReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
return ctrl.Result{}, fmt.Errorf("failed to update lbSocket of Postgres: %w", err)
}
} else {
log.Error(err, "failed to fetch the corresponding Service of type LoadBalancer")
log.Info("unable to fetch the corresponding Service of type LoadBalancer")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also distinguish NotFound error from other errors?

m.log.Info("Sidecars ConfigMap updated")
return objs, nil
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors other than NotFound not handled here.

Copy link
Contributor

@LimKianAn LimKianAn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am asking myself if it's possible to have our configmap sort of aligned with zalando.Sidecar and let golang's json parser do the magic, but I think it's not urgent at all.

@LimKianAn LimKianAn marked this pull request as ready for review March 9, 2021 14:56
@LimKianAn LimKianAn merged commit f3b4b32 into main Mar 9, 2021
@LimKianAn LimKianAn deleted the sidecars branch March 9, 2021 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants