-
Notifications
You must be signed in to change notification settings - Fork 684
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
feat: manage the secrets annotated to be managed by the controller #331
Conversation
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.
Thanks! Would it be possible to also add a test?
Integration tests are failing. make integrationtest |
@@ -253,6 +257,7 @@ func (c *Controller) unseal(key string) error { | |||
secret.Data = newSecret.Data | |||
secret.Type = newSecret.Type | |||
secret.ObjectMeta.Annotations = newSecret.ObjectMeta.Annotations | |||
secret.ObjectMeta.OwnerReferences = newSecret.ObjectMeta.OwnerReferences |
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.
@mkmik I am thinking to append the OwnerRefernces
and as it's now being overwritten. What do you think?
}, Timeout, PollingInterval).Should(WithTransform(getData, Equal(expected))) | ||
Eventually(func() (*v1.Secret, error) { | ||
return c.Secrets(ns).Get(secretName, metav1.GetOptions{}) | ||
}, Timeout, PollingInterval).Should(WithTransform(getFirstOwnerName, Equal(ss.GetName()))) |
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.
@mkmik can you please help this check is failing as there are no owners. I tried it manually and it's updating the existing secret owners with SealedSecret
as one among theme
Co-Authored-By: Marko Mikulicic <[email protected]>
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'll take a look at the tests, in the meantime I noticed a minor typo
Co-Authored-By: Marko Mikulicic <[email protected]>
|
Yes I did I told it's failing I don't what's the issue with my assertion. But let me check try second time. And I will get back to you. if I needed a help |
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.
Thanks!
bors r+ |
331: feat: manage the secrets annotated to be managed by the controller r=mkmik a=malmuzaini Co-authored-by: Mashail Almuzaini <[email protected]>
Build succeeded |
No description provided.