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

Truncate cluster name in NTH EventBridgeRules #12439

Merged
merged 2 commits into from
Sep 30, 2021

Conversation

rifelpet
Copy link
Member

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.

@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 28, 2021
@k8s-ci-robot k8s-ci-robot added the area/provider/aws Issues or PRs related to aws provider label Sep 28, 2021
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"
Copy link
Member Author

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

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Sep 29, 2021
@olemarkus
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 30, 2021
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 30, 2021
@k8s-ci-robot k8s-ci-robot merged commit 3dc1d25 into kubernetes:master Sep 30, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.23 milestone Sep 30, 2021
k8s-ci-robot added a commit that referenced this pull request Sep 30, 2021
…39-origin-release-1.22

Automated cherry pick of #12439: Lengthen NTH integration test cluster name
k8s-ci-robot added a commit that referenced this pull request Sep 30, 2021
…39-origin-release-1.21

Automated cherry pick of #12439: Lengthen NTH integration test cluster name
@BenWolstencroft
Copy link

BenWolstencroft commented Sep 30, 2021

@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)..

@rifelpet
Copy link
Member Author

rifelpet commented Oct 9, 2021

@BenWolstencroft v1.21.2 was just released which includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/aws Issues or PRs related to aws provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants