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

Secrets as resources review fixes #425

Conversation

benlangfeld
Copy link
Contributor

Addresses some code review comments from #424

@benlangfeld
Copy link
Contributor Author

@DazWorrall I believe this addresses all of @KnVerey's review comments on #424.

Unifying the constant used for simple resources of this type is left as an exercise for another change, mostly because the name of such a thing may be controversial and I don't want to block merging this on detailed review.
Doesn't test anything more than test_create_and_update_secrets_from_ejson
@benlangfeld benlangfeld force-pushed the secrets-as-resources-review-fixes branch from 2fbaf64 to a975c3f Compare February 27, 2019 08:31
@DazWorrall
Copy link
Member

Thanks @benlangfeld, this is a great help ❤️

@DazWorrall DazWorrall merged commit f73800a into Shopify:secrets-as-resources Feb 27, 2019
@benlangfeld benlangfeld deleted the secrets-as-resources-review-fixes branch February 27, 2019 11:35
DazWorrall pushed a commit that referenced this pull request Feb 27, 2019
Thanks so much @benlangfeld for your help with these:

* Remove excess logging

* Stop referring to EJSON secrets as generically "managed"

* Consistent timeout for Secret resources

Unifying the constant used for simple resources of this type is left as an exercise for another change, mostly because the name of such a thing may be controversial and I don't want to block merging this on detailed review.

* Give secrets the same statsd tags as other resources

* Removes duplicate spec

Doesn't test anything more than test_create_and_update_secrets_from_ejson

* Replaces log assertion

* Point out breaking changes in CHANGELOG

* Include ejson generated secrets in discovery log
DazWorrall pushed a commit that referenced this pull request Feb 28, 2019
Thanks so much @benlangfeld for your help with these:

* Remove excess logging

* Stop referring to EJSON secrets as generically "managed"

* Consistent timeout for Secret resources

Unifying the constant used for simple resources of this type is left as an exercise for another change, mostly because the name of such a thing may be controversial and I don't want to block merging this on detailed review.

* Give secrets the same statsd tags as other resources

* Removes duplicate spec

Doesn't test anything more than test_create_and_update_secrets_from_ejson

* Replaces log assertion

* Point out breaking changes in CHANGELOG

* Include ejson generated secrets in discovery log
DazWorrall pushed a commit that referenced this pull request Mar 1, 2019
Thanks so much @benlangfeld for your help with these:

* Remove excess logging

* Stop referring to EJSON secrets as generically "managed"

* Consistent timeout for Secret resources

Unifying the constant used for simple resources of this type is left as an exercise for another change, mostly because the name of such a thing may be controversial and I don't want to block merging this on detailed review.

* Give secrets the same statsd tags as other resources

* Removes duplicate spec

Doesn't test anything more than test_create_and_update_secrets_from_ejson

* Replaces log assertion

* Point out breaking changes in CHANGELOG

* Include ejson generated secrets in discovery log
DazWorrall pushed a commit that referenced this pull request Mar 1, 2019
Thanks so much @benlangfeld for your help with these:

* Remove excess logging

* Stop referring to EJSON secrets as generically "managed"

* Consistent timeout for Secret resources

Unifying the constant used for simple resources of this type is left as an exercise for another change, mostly because the name of such a thing may be controversial and I don't want to block merging this on detailed review.

* Give secrets the same statsd tags as other resources

* Removes duplicate spec

Doesn't test anything more than test_create_and_update_secrets_from_ejson

* Replaces log assertion

* Point out breaking changes in CHANGELOG

* Include ejson generated secrets in discovery log
KnVerey pushed a commit that referenced this pull request Mar 1, 2019
* Refactor EjsonSecretProvisioner to provide resources

* Add `Secret` resource

* Refactor kubectl sensitive output config

* Deploy resources from EjsonSecretProvisioner

* Secrets as resources review fixes (#425)

Thanks so much @benlangfeld for your help with these:

* Remove excess logging

* Stop referring to EJSON secrets as generically "managed"

* Consistent timeout for Secret resources

Unifying the constant used for simple resources of this type is left as an exercise for another change, mostly because the name of such a thing may be controversial and I don't want to block merging this on detailed review.

* Give secrets the same statsd tags as other resources

* Removes duplicate spec

Doesn't test anything more than test_create_and_update_secrets_from_ejson

* Replaces log assertion

* Point out breaking changes in CHANGELOG

* Include ejson generated secrets in discovery log

* Misc review feedback

* Rebase on master
* Fix changelog after rebase
* Remove unnecessary logging
* Fix unknown Secret status
* Update test name to not include 'update'
* Write new unrecognized resource test

* Hide some validation and deploy output when deploying sensitive
resources

* Better logging when handling failures with sensitive resources

* Typo

* Catch more specific Kubectl error output

* Suppresses error messages on invalid sensitive templates

* This is not flaky any more (finer-grained assertion on kubectl error)

* Minor review fixes
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