-
Notifications
You must be signed in to change notification settings - Fork 14
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: make drift check and apply with custom runner code #2
Conversation
c.Status.Message = "Terraform has not ran yet" | ||
return status | ||
} | ||
if string(result) == "1" { |
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.
maybe change the key to terraformExiteGracefully
and have a bool instead ?
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.
Tests should also check the modification of the status inside the conditions struct
1de868e
to
4a993ae
Compare
"errors" | ||
) | ||
|
||
type MemoryCache struct { |
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.
Memorycache
is only useful for testing purposes. It should be a Mock inside the controller package
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.
Don't you think it could be used in the runner package for testing purposes ?
No description provided.