Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ListNodeImageVersions + shared image gallery support (#526)
* feat: support shared image galleries inside of karpenter * chore: populating image stubs for shared image galleries * fix: progress * fix: PopulateResourceStub accessing the wrong index * test: properly testing ListNodeImageVersions * refactor: rename symbol for SIG Subscription id * test: conditional use of sig dependent on the managed karpenter flag * refactor: removing panics used in testing * test: adding RBAC and helm values to the template for SIG Gallery logic * fix: bug in azure linux sig image resolution * chore: update cleanupenv to handle inflate too ratehr than just job pods * test: fix randomized test order flake * ci: shadow declaration * refactor: comment wording * test: validate all image ids are resolved correctly * fix: adding filtering for duplicate sku + os combinations and filtering out unsupported galleries * refactor: renaming var * refactor: rename the managedKarpenter reference to UseSIG * refactor: spelling * fix: v1 migration for test * ci: lint * fix: lint * ci: fix * ci: license * ci: fix * fix: test pollution * fix: resetting options before each test run * fix: accounting for versions of the shape 'yy.mm.dd' * test: removing unused cleanup funcs * fix: making the key for shared image gallery smaller * refactor: removing windows types leaving them to be added back later * refactor: reducing key even more * fix: extending key * fix: removing log line * refactor: not nesting options as deep, leaving refactor of USESIG to provider for later * fix: comment about pulling out the variable * refactor: decoupling the cache reads and cache writes from the image gallery id retrivial functions * test: adding some coverage to FilteredNodeImages * refactor: removing community galleries fake method for GET since this implementation doesn't use it * test: test that we drift nodes when switching from community gallery to shared image gallery * test: SIG_SUBSCRIPTION_ID * refactor: using sig from context * fix: remove extra space --------- Co-authored-by: Alex Leites <[email protected]>
- Loading branch information