-
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
Fix SecurityGroup check when there are no Network Interfaces associated with a LaunchTemplate #8666
Fix SecurityGroup check when there are no Network Interfaces associated with a LaunchTemplate #8666
Conversation
…ed with a LaunchTemplate
On deleting a cluster the following runtime error occurs:
Looks like this may have been introduced in PR #8639 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KashifSaadat 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 |
/lgtm |
@KashifSaadat can you explain how a LaunchTemplate would not have Network Interfaces? Just curious |
@KashifSaadat any special reason there are 2 ways of specifying the security groups here? kops/upup/pkg/fi/cloudup/awstasks/launchtemplate_target_api.go Lines 100 to 110 in 0aa97af
For example, for terraform we only use the kops/upup/pkg/fi/cloudup/awstasks/launchtemplate_target_terraform.go Lines 158 to 168 in 298f796
|
@rifelpet : If there are no customised settings to be provided (such as @hakman I'm not sure if there was a specific reason for that approach, maybe just taking the stance that if there's no explicit need to define a NetworkInterface template (other than for security groups) then to avoid it to not complicate the configuration? If there are no issues either way, then that logic can be simplified and made consistent with how it's generated in the terraform output. |
Thanks @KashifSaadat. I am trying to add LaunchTemplate tags to CF and TF and noticed that there are quite a few inconsistencies. I will try to make things more uniform in a future PR. |
No description provided.