Skip to content

Conversation

@jonathan-innis
Copy link
Contributor

Fixes #N/A

Description

Update the disable dry-run test to ensure that we properly wait for IAM to ensure that we have the proper permissions at the end of the test after we remove the role policy that blocks permissions for the dry-run validation to succeed.

How was this change tested?

make presubmit
/karpenter snapshot

Locally testing the "should succeed EC2NodeClass validation when dry run validation is disabled" test with the updated cleanup logic

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@netlify
Copy link

netlify bot commented Aug 27, 2025

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 0233cb6
🔍 Latest deploy log https://app.netlify.com/projects/karpenter-docs-prod/deploys/68b09e3bf47cff0008fe299e

@github-actions
Copy link
Contributor

github-actions bot commented Aug 27, 2025

Preview deployment ready!

Preview URL: https://pr-8421.d18coufmbnnaag.amplifyapp.com

Built from commit 0233cb6362e001bfa43193e695a315b9618f8c1f

@coveralls
Copy link

coveralls commented Aug 27, 2025

Pull Request Test Coverage Report for Build 17304487769

Details

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.006%) to 67.323%

Changes Missing Coverage Covered Lines Changed/Added Lines %
test/pkg/environment/common/expectations.go 0 1 0.0%
Totals Coverage Status
Change from base Build 17281173365: -0.006%
Covered Lines: 7586
Relevant Lines: 11268

💛 - Coveralls

@jonathan-innis jonathan-innis force-pushed the fix-flaky-dry-run-disable-test branch from 2b8dbb5 to ad3916c Compare August 27, 2025 16:11
Copy link
Contributor Author

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

@github-actions
Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-ad3916cec5b3ac5ee4d82b95b19e49c6dde3a174.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-ad3916cec5b3ac5ee4d82b95b19e49c6dde3a174" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

@jonathan-innis jonathan-innis force-pushed the fix-flaky-dry-run-disable-test branch 12 times, most recently from d0290a0 to be9c94c Compare August 28, 2025 07:48
@jonathan-innis jonathan-innis marked this pull request as ready for review August 28, 2025 07:48
@jonathan-innis jonathan-innis requested a review from a team as a code owner August 28, 2025 07:48
Copy link
Contributor Author

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

@jonathan-innis jonathan-innis enabled auto-merge (squash) August 28, 2025 07:52
@jonathan-innis jonathan-innis force-pushed the fix-flaky-dry-run-disable-test branch from be9c94c to 1bc4134 Compare August 28, 2025 07:53
@github-actions
Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-be9c94cea1f6257ce6e624de5d4589efe518ae96.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-be9c94cea1f6257ce6e624de5d4589efe518ae96" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

Copy link
Contributor Author

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

@github-actions
Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-1bc4134f5b7a5b4cbb44df902216ab3b811ade75.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-1bc4134f5b7a5b4cbb44df902216ab3b811ade75" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

@jonathan-innis jonathan-innis force-pushed the fix-flaky-dry-run-disable-test branch from 1bc4134 to 6a576c3 Compare August 28, 2025 18:21
@jonathan-innis jonathan-innis force-pushed the fix-flaky-dry-run-disable-test branch from 6a576c3 to 0233cb6 Compare August 28, 2025 18:21
Copy link
Contributor

@saurav-agarwalla saurav-agarwalla left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

@github-actions
Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-0233cb6362e001bfa43193e695a315b9618f8c1f.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-0233cb6362e001bfa43193e695a315b9618f8c1f" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

Copy link
Contributor Author

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

@jonathan-innis jonathan-innis merged commit 89d1fdd into aws:main Aug 28, 2025
32 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants