-
Notifications
You must be signed in to change notification settings - Fork 38
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
Issue 657: Providing support to update controller service annotations #658
Conversation
Signed-off-by: anisha.kj <[email protected]>
} else { | ||
return err | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nitpicking) Could you remove the extra empty lines from the new code to conform to the file formatting? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: anisha.kj <[email protected]>
err = r.Client.Create(context.TODO(), service) | ||
if err != nil && !errors.IsAlreadyExists(err) { | ||
return err | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line still looks strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here are you suggesting to remove the IsAlreadyExists
check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean the empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: anisha.kj <[email protected]>
Change log description
Added support to update the annotations and labels at run time for controller service
Purpose of the change
Fixes #657
What the code does
In controller reconcile service, if there is change in service like annotations, labels it will be updated
How to verify it
Verified by adding new annotations at run time