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

test(e2e): validate that pulling from an acr registry attached to aks via --attach-acr with karpenter nodes works #369

Conversation

Bryce-Soghigian
Copy link
Collaborator

Fixes #

Description
As part of the efforts to fix 1.30 bootstrap we removed a flag that removes functionality for out of tree providers. One of the side affects of this is that ACR Pull will not work in the same way. We needed a way to validate this image pull works in a reproducible and consistent way.

This test suite is that. Currently it has to be ran locally to target specific k8s versions so a nice followup at lower priority would be to add the ability to run our e2es against a specific k8s version.
How was this change tested?

  • make az-e2etests
[251.679 seconds]
------------------------------

Ran 1 of 1 Specs in 251.874 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestAcr (251.87s)
PASS
ok      github.com/Azure/karpenter-provider-azure/test/suites/acr       252.588s

Does this change impact docs?

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

Release Note


Copy link
Collaborator Author

@Bryce-Soghigian Bryce-Soghigian left a comment

Choose a reason for hiding this comment

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

/test

@Bryce-Soghigian Bryce-Soghigian marked this pull request as ready for review May 24, 2024 17:43
@coveralls
Copy link

coveralls commented May 24, 2024

Pull Request Test Coverage Report for Build 9373575828

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 17 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.008%) to 97.766%

Files with Coverage Reduction New Missed Lines %
pkg/providers/imagefamily/bootstrap/aksbootstrap.go 17 85.53%
Totals Coverage Status
Change from base Build 9074172591: -0.008%
Covered Lines: 36286
Relevant Lines: 37115

💛 - Coveralls

var _ = AfterEach(func() { env.Cleanup() })
var _ = AfterEach(func() { env.AfterEach() })

var _ = Describe("Acr", func() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I created an ACR suite rather than just adding to the existing integration suite because artifact streaming will require a suite for ACR behavior here as well.

@comtalyst
Copy link
Collaborator

I would recommend running it against the failing case (e.g., undoing #220) as well to validate it.

@@ -43,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
suite: [Nonbehavioral, Utilization, GPU, Drift, Integration, NodeClaim, Chaos]
suite: [Nonbehavioral, Utilization, GPU, Drift, Integration, NodeClaim, Chaos, Acr]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe AcrIntegration might be a better name? Not a strong opinion though.
But another thing to consider is that making it ACR might be more consistent with GPU one we have to the left.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah seems like a bit much

test/suites/acr/suite_test.go Show resolved Hide resolved
Makefile-az.mk Show resolved Hide resolved
feat: checking in the acr suite

test: adding steps for checking node and pod readiness

refactor: precreating image name in before each

fix: importing on same line

chore: adding makefile helpers + pulling acr name from the environment

refactor(ci): lint
@Bryce-Soghigian Bryce-Soghigian force-pushed the bsoghigian/e2e-acr-pull-clean branch from 959ce49 to 00f9d43 Compare May 29, 2024 22:55
comtalyst
comtalyst previously approved these changes Jun 3, 2024
@Bryce-Soghigian
Copy link
Collaborator Author

gonna rewrite this on the azure repo rather than my fork.

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.

4 participants