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

feat: make drift check and apply with custom runner code #2

Merged
merged 42 commits into from
Dec 22, 2022

Conversation

spoukke
Copy link
Contributor

@spoukke spoukke commented Dec 5, 2022

No description provided.

controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
controllers/terraformlayer_controller.go Outdated Show resolved Hide resolved
c.Status.Message = "Terraform has not ran yet"
return status
}
if string(result) == "1" {
Copy link
Contributor Author

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 ?

Copy link
Contributor Author

@spoukke spoukke left a 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

@Alan-pad Alan-pad linked an issue Dec 8, 2022 that may be closed by this pull request
"errors"
)

type MemoryCache struct {
Copy link
Contributor Author

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

Copy link
Contributor

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 ?

runner/runner.go Outdated Show resolved Hide resolved
@spoukke spoukke changed the title Feat/initial crds feat: make drift check and apply with custom runner code Dec 22, 2022
@spoukke spoukke merged commit 544259d into main Dec 22, 2022
@spoukke spoukke deleted the feat/initial-crds branch February 22, 2023 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants