-
Notifications
You must be signed in to change notification settings - Fork 268
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
Import EKS clusters #13517
base: master
Are you sure you want to change the base?
Import EKS clusters #13517
Conversation
@@ -596,7 +635,7 @@ export default defineComponent({ | |||
<LabeledInput | |||
required | |||
label-key="eks.clusterName.label" | |||
:value="config.displayName" | |||
:value="normanCluster.name" |
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.
config.displayName = eks cluster name in aws (set by the Import component)
normanCluster.name = rancher cluster object's name
} | ||
|
||
const clusterNameRequired = (ctx: CruEKSContext) => { | ||
return (): string | null => { | ||
return !ctx.config.displayName ? ctx.t('validation.required', { key: ctx.t('nameNsDescription.name.label') }) : null; | ||
return !ctx.normanCluster.name ? ctx.t('validation.required', { key: ctx.t('nameNsDescription.name.label') }) : null; |
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.
validate the name field that the user types instead of the displayName, which may come from eks API
9fc85f4
to
2834843
Compare
<template> | ||
<div class="row mb-10 align-center"> | ||
<div class="col span-6"> | ||
<LabeledSelect |
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.
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.
Other than the one change request it lgtm.
Summary
Fixes #12409
Occurred changes and/or fixed issues
Similar to #13447
Areas or cases that should be tested
For testing purposes you should be to use my existing eks cluster
nb-eks
inn theus-west-2
region2 Select EKS
5.Try selecting different regions - the cluster dropdown should reload (you should see aws api calls in the network tab)
7.Add users, labels and annotations as well
Areas which could experience regressions
The existing EKS cluster creation flow should be tested.
Screenshot/Video
Checklist