-
Notifications
You must be signed in to change notification settings - Fork 7
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
terraform: add flexkube_containers resource #66
terraform: add flexkube_containers resource #66
Conversation
Codecov Report
@@ Coverage Diff @@
## master #66 +/- ##
==========================================
- Coverage 84.03% 83.29% -0.75%
==========================================
Files 36 57 +21
Lines 2186 2909 +723
==========================================
+ Hits 1837 2423 +586
- Misses 257 385 +128
- Partials 92 101 +9
Continue to review full report at Codecov.
|
ac83f01
to
6c92d4b
Compare
Code Climate has analyzed commit a4d0da1 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 88.9% (50% is the threshold). This pull request will bring the total coverage in the repository to 81.3% (-2.7% change). View more on Code Climate. |
Support for all features has been added. Current issues:
|
I have an idea how to address that, despite hashicorp/terraform-plugin-sdk#201. TL; DR we can have 2 different computed scheme. One which holds all the information needed for running, with |
This has been addressed in #75. |
6c92d4b
to
bf6c32a
Compare
Now also resolved. Next step: don't serialize empty fields, so they don't pollute the output. |
7606c12
to
7b1ab6c
Compare
That doesn't seem to be possible. |
6b6447f
to
70e7b40
Compare
TODOs:
Regarding failing tests, it seems that when adding large amount of code, it is not possible to satisfy Code Climate total coverage change, even though the diff coverage is >90%. Codecov is doing a better job here and it compares absolute coverage with relative coverage, so the test passes. I'll perhaps disable coverage checks for codeclimate, as they doesn't seem as valuable as Codecov ones. |
70e7b40
to
018039a
Compare
Disabled.
Done for apiloadbalancer, as seen on the screenshot above. |
c7a8711
to
c93c764
Compare
This commit adds 'flexkube_containers' resource, which allows to deploy any containers using Flexkube using Terraform. Resource scheme fully implements Flexkube state and configuration scheme, which will be a base for improving other resources, to provide proper UI for the user, so they can see, what configuration has been generated based on simple provided configuration. Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
So there is nothing created for the container, nothing will be persistent to the state. Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
c93c764
to
a4d0da1
Compare
As a preparation to resolve #40 and #42, to have some basic patterns defined, which can be then used in more complex scenarios.
TODOs:
Follow-up work: