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

fix: adjust the update logic of deprecated configmap day2 configuration #835

Conversation

chlins
Copy link
Member

@chlins chlins commented Jan 11, 2022

Fixes: #826

Signed-off-by: chlins chenyuzh@vmware.com

@chlins chlins requested review from bitsf and cndoit18 January 11, 2022 09:30
Copy link
Collaborator

@cndoit18 cndoit18 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -148,10 +148,16 @@ func (r *CmReconciler) createOrUpdateHarborConfiguration(ctx context.Context, hc
if err != nil {
if apierrors.IsNotFound(err) {
// create hc
r.Log.Info("Create HarborConfiguration", "hc", hc)
return r.Client.Create(ctx, hc)
Copy link
Collaborator

Choose a reason for hiding this comment

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

add an empty line

@chlins chlins force-pushed the fix/deprecated-configmap-day2-configuration-update branch from 6793210 to 3feaab6 Compare January 12, 2022 06:24
@chlins chlins merged commit 35056b4 into goharbor:master Jan 12, 2022
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.

Deprecated configmap DAY2 configuration does not work well
3 participants