Skip to content
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

added eks cluster_name validation #19078

Merged
merged 9 commits into from
Apr 29, 2021
Merged

added eks cluster_name validation #19078

merged 9 commits into from
Apr 29, 2021

Conversation

philnichol
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #18806

Output from acceptance testing:

$ TF_ACC=1 go test ./aws -v -count 1 -run=TestResourceAWSEKSClusterNameValidation
=== RUN   TestResourceAWSEKSClusterNameValidation
--- PASS: TestResourceAWSEKSClusterNameValidation (0.00s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2.690s

Thanks in advance for your review!

The regex listed in the documentation is actually incorrect, I've left feedback on that page so hopefully it gets corrected
https://docs.aws.amazon.com/eks/latest/APIReference/API_CreateCluster.html
Listed as ^[0-9A-Za-z][A-Za-z0-9\-_]* but should be ^[0-9A-Za-z][A-Za-z0-9\-_]+$.

Wasn't sure if I had to run acc tests for the resources themselves so please let me know if I do, I just skipped them since it will be expensive and long, but can run them if required 😄

@philnichol philnichol requested a review from a team as a code owner April 23, 2021 13:44
@ghost ghost added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/eks Issues and PRs that pertain to the eks service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 23, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 23, 2021
@bflad
Copy link
Member

bflad commented Apr 23, 2021

Hi @philnichol 👋 Thank you for submitting this. Just a drive-by comment about the unit test failure that if you rebase against the main branch, it should be resolved. 👍

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 23, 2021
@ghost ghost added the provider Pertains to the provider itself, rather than any interaction with AWS. label Apr 23, 2021
@github-actions
Copy link

Thank you for your contribution! 🚀

Please note that the CHANGELOG.md file contents are handled by the maintainers during merge. This is to prevent pull request merge conflicts, especially for contributions which may not be merged immediately. Please see the Contributing Guide for additional pull request review items.

Remove any changes to the CHANGELOG.md file and commit them in this pull request to prevent delays with reviewing and potentially merging this pull request.

@philnichol
Copy link
Contributor Author

Thanks @bflad , and apologies for incorrect branch name and missing CHANGELOG stuff, haven't contributed in a while and submitted before reading updated contributing guidelines, should probably be named td-.

@gdavison gdavison self-assigned this Apr 29, 2021
Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

I've updated the changelog file to have one release-note block per change.

Acceptance test results

--- PASS: TestAccAWSEksFargateProfile_disappears (1316.49s)
--- PASS: TestAccAWSEksFargateProfile_Multi_Profile (1682.64s)

@philnichol
Copy link
Contributor Author

Looks good 🚀

I've updated the changelog file to have one release-note block per change.

Acceptance test results

--- PASS: TestAccAWSEksFargateProfile_disappears (1316.49s)

--- PASS: TestAccAWSEksFargateProfile_Multi_Profile (1682.64s)

Thanks for that!

@gdavison gdavison merged commit 4708f75 into hashicorp:main Apr 29, 2021
@github-actions github-actions bot added this to the v3.38.0 milestone Apr 29, 2021
@philnichol philnichol deleted the e-eks-adding-name-validation branch April 29, 2021 22:19
@ghost
Copy link

ghost commented Apr 30, 2021

This has been released in version 3.38.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@github-actions
Copy link

github-actions bot commented Jun 1, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. provider Pertains to the provider itself, rather than any interaction with AWS. service/eks Issues and PRs that pertain to the eks service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve EKS cluster name validation
3 participants