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 docs and validation for expiry_seconds on registry docker credentials resource. #582

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

andrewsomething
Copy link
Member

@andrewsomething andrewsomething commented Feb 9, 2021

The updateExpiredDockerCredentials function gets called when the state is being refreshed, but the change to the configuration is not available at refresh. So you can encounter a situation like #581 where a bad value has been set in state but the validation prevents the value from being corrected. We should prevent the bad value from ever being entered in the first place.

Fixes: #581

Copy link
Member

@bentranter bentranter left a comment

Choose a reason for hiding this comment

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

LGTM!

@andrewsomething andrewsomething merged commit 7d003b1 into main Feb 10, 2021
@andrewsomething andrewsomething deleted the asb/issues/581 branch February 10, 2021 15:16
andrewsomething added a commit that referenced this pull request Apr 26, 2021
…ials resource. (#582)

* Correct container registry docker credentials docs.

* Move validation of expiry_seconds to schema.
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.

Attempting to set too-high expiry_seconds on registry docker credentials gets into a broken state
2 participants