-
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
Truncate cluster name in NTH EventBridgeRules #12439
Conversation
name = "nthsqsresources.example.com-ASGLifecycle" | ||
resource "aws_cloudwatch_event_rule" "nthsqsresources-longclustername-e-fkbaoh-ASGLifecycle" { | ||
event_pattern = file("${path.module}/data/aws_cloudwatch_event_rule_nthsqsresources.longclustername.e-fkbaoh-ASGLifecycle_event_pattern") | ||
name = "nthsqsresources.longclustername.e-fkbaoh-ASGLifecycle" |
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.
here's the relevant change in the integration test
ed05eb9
to
88112e4
Compare
88112e4
to
3311e45
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman 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 |
…39-origin-release-1.22 Automated cherry pick of #12439: Lengthen NTH integration test cluster name
…39-origin-release-1.21 Automated cherry pick of #12439: Lengthen NTH integration test cluster name
@rifelpet - Thanks for this fix, any idea when there will be a re-release of kops 1.21 including this fix? - we've ended up in the unenviable situation where some of our cluster estate has upgraded to 1.21 and some has hit this cluster hostname length issue and is stuck on 1.20 (we turned on the eventbridge stuff during our upgrade).. |
@BenWolstencroft v1.21.2 was just released which includes this fix. |
ref: #12329
alternative to #12330
This truncates them with a random suffix and uses that shortened name in both the creation and deletion of event bridge rules. This should fix EventBridgeRule creation on clusters with long names.