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: apply job recreation #336

Merged
merged 4 commits into from
Aug 9, 2022
Merged

Fix: apply job recreation #336

merged 4 commits into from
Aug 9, 2022

Conversation

chivalryq
Copy link
Member

@chivalryq chivalryq commented Aug 8, 2022

  1. For now, if we restart terraform-controller with --controller-namespace. It couldn't get legacy Apply Job which is proves the resources has been created.
    This PR fix it by getting both kind of apply job.

  2. Trim some useless code.

Signed-off-by: Qiaozp qiaozhongpei.qzp@alibaba-inc.com

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #336 (9e37965) into master (689a4db) will increase coverage by 0.09%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
+ Coverage   76.49%   76.58%   +0.09%     
==========================================
  Files          24       24              
  Lines        1757     1764       +7     
==========================================
+ Hits         1344     1351       +7     
  Misses        335      335              
  Partials       78       78              
Flag Coverage Δ
e2e 0.00% <ø> (ø)
unit 79.84% <92.85%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/configuration_controller.go 77.71% <91.66%> (+0.17%) ⬆️
controllers/terraform/status.go 77.41% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
@chivalryq chivalryq marked this pull request as draft August 8, 2022 09:41
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
Copy link
Contributor

@loheagn loheagn left a comment

Choose a reason for hiding this comment

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

LGTM

@Somefive Somefive merged commit 337610e into kubevela:master Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants