-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add improvements for the EKS Discover UI. #38609
Conversation
result.error && | ||
!result.error.message.includes( | ||
'teleport-kube-agent is already installed' | ||
) |
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.
does this have any specific error code we could check for instead?
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.
Checking for error code as Michael suggested is ideal, but if we're going to check for a substring in an error message, we should make sure to leave a note where the error message in defined in the backend saying that it needs to be kept in sync with this. This way if someone changes the error message, this won't break.
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.
Not really, it's not an AWS error, just our internal message.
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.
I've added a comment 👍
@@ -293,6 +298,17 @@ export function EnrollEksCluster(props: AgentStepProps) { | |||
{fetchClustersAttempt.status === 'failed' && !hasIamPermError && ( | |||
<Danger mt={3}>{fetchClustersAttempt.statusText}</Danger> | |||
)} | |||
<Text mt={4} mb={-3}> |
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.
What is the purpose of the negative value here? are we doing it to try and not affect the positioning of something else?
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.
its a nit at this point so feel free to ignore, but it'd probably make more sense to reduce the mt
of the element right below it (the Select the AWS Region...
Text element) than to use negative margin here.
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.
Makes sense, changed the margins 👍
result.error && | ||
!result.error.message.includes( | ||
'teleport-kube-agent is already installed' | ||
) |
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.
Checking for error code as Michael suggested is ideal, but if we're going to check for a substring in an error message, we should make sure to leave a note where the error message in defined in the backend saying that it needs to be kept in sync with this. This way if someone changes the error message, this won't break.
web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
Outdated
Show resolved
Hide resolved
e0ff679
to
093e8e0
Compare
Co-authored-by: Yassine Bounekhla <[email protected]>
This PR adds a few small improvements to the Discover EKS flow -