-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Windows 1909 support #2339
Windows 1909 support #2339
Conversation
return imageFamily == NodeImageFamilyWindowsServer2019CoreContainer || imageFamily == NodeImageFamilyWindowsServer2019FullContainer | ||
return imageFamily == NodeImageFamilyWindowsServer2019CoreContainer || | ||
imageFamily == NodeImageFamilyWindowsServer2019FullContainer || | ||
imageFamily == NodeImageFamilyWindowsServer1909CoreContainer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively:
switch imageFamily {
case NodeImageFamilyWindowsServer2019CoreContainer, NodeImageFamilyWindowsServer2019FullContainer, NodeImageFamilyWindowsServer1909CoreContainer:
return true
default:
return false
}
pkg/ami/auto_resolver.go
Outdated
case api.NodeImageFamilyWindowsServer2019CoreContainer, | ||
api.NodeImageFamilyWindowsServer2019FullContainer, | ||
api.NodeImageFamilyWindowsServer1909CoreContainer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this case
clause has grown a bit, I think we should now use isWindowsImage
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, IsWindowsImage
now in default
case
pkg/nodebootstrap/userdata.go
Outdated
case api.NodeImageFamilyWindowsServer2019FullContainer, | ||
api.NodeImageFamilyWindowsServer2019CoreContainer, | ||
api.NodeImageFamilyWindowsServer1909CoreContainer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, I think we should use isWindowsImage
here.
@cPu1 I had to update the test but I changed them to not be dependent on the exact AMI names, what do you think? |
Makes sense. We are going to eventually deprecate static resolution for AMIs, so those tests will be removed as well. |
Description
Closes #2321
Checklist
README.md
, or theuserdocs
directory)area/nodegroup
), target version (e.g.version/0.12.0
) and kind (e.g.kind/improvement
)