-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Render managed files with Terraform #9621
Conversation
5ae41f0
to
2e320b2
Compare
Could we update the integration test manifests to use s3:// instead of memfs:// ? Some of them test cloudformation as well which doesn't have an s3 object resource, so we may need to create separate manifests or test cases for cloudformation vs terraform. |
It doesn't look like the integration tests have a way to mock the |
1fab294
to
a888106
Compare
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
51686bc
to
2ad6fcd
Compare
@johngmyers: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
It's time for this to go in. Currently node boot breaks between the time one does a To cut down on churn we might want to stop having golden files for the |
What is the status on the per-LaunchTemplateVersion files idea? I ask because managing per-LTV files in terraform will be non-trivial given terraform's inability to orphan s3 objects in its normal |
I believe per-LT files is dependent on this. Writing that code will be easier if both non-Terraform and Terraform have the per-LT files cleaned up through reconciliation. Such code will have to find the existing ManagedFiles, determine which should be kept, and reconcile the others to deleted. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rifelpet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I was looking into adding support for GCS objects but given that the integration tests use memfs which use an s3 object definition, it will be difficult to add integration test coverage for GCS. Any suggestions on how to achieve that? |
Since the integration tests use memfs, there's no integration test coverage for S3 either. I don't think that's a problem. What is needed is unit tests for gsfs. |
This is an attempt to have the
ManagedFile
task render through Terraform instead of directly to the state store. This would make them be updated atterraform apply
time, not during (dryrun)kops update cluster
.This is an attempt to move forward with #9229. A followup PR would make the completed cluster spec a
ManagedFile
.Some issues (beyond the fact this is my first time dealing with Terraform):
GSPath
as well.MemFSPath
. I'm not quite sure what the code should do in this case.