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

Upgrade registry certificate in packages #7881

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

tatlat
Copy link
Member

@tatlat tatlat commented Mar 21, 2024

Issue #, if available:

Description of changes:

Testing (if applicable):

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from tatlat. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@eks-distro-bot eks-distro-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 21, 2024
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 82.14286% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 73.49%. Comparing base (569e325) to head (0b8802f).
Report is 150 commits behind head on main.

❗ Current head 0b8802f differs from pull request most recent head 0f49d03. Consider uploading reports for the commit 0f49d03 to get more accurate results

Files Patch % Lines
pkg/dependencies/factory.go 62.50% 3 Missing and 3 partials ⚠️
cmd/eksctl-anywhere/cmd/upgradecluster.go 0.00% 2 Missing ⚠️
...g/workflows/management/upgrade_curated_packages.go 93.75% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7881      +/-   ##
==========================================
+ Coverage   73.39%   73.49%   +0.10%     
==========================================
  Files         576      578       +2     
  Lines       35622    35790     +168     
==========================================
+ Hits        26144    26305     +161     
- Misses       7826     7829       +3     
- Partials     1652     1656       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/dependencies/factory.go Outdated Show resolved Hide resolved
pkg/dependencies/factory.go Outdated Show resolved Hide resolved
pkg/workflows/management/post_cluster_upgrade.go Outdated Show resolved Hide resolved
pkg/workflows/management/post_cluster_upgrade.go Outdated Show resolved Hide resolved
pkg/workflows/management/upgrade_curated_packages.go Outdated Show resolved Hide resolved
pkg/dependencies/factory.go Outdated Show resolved Hide resolved
pkg/workflows/management/upgrade_curated_packages.go Outdated Show resolved Hide resolved
pkg/workflows/management/upgrade_curated_packages.go Outdated Show resolved Hide resolved
pkg/workflows/management/upgrade_curated_packages.go Outdated Show resolved Hide resolved
@eks-distro-bot
Copy link
Collaborator

@tatlat: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
eks-anywhere-presubmit 0f49d03 link true /test eks-anywhere-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

// UpgradeCuratedPackages upgrades curated packages as part of the cluster upgrade.
func (pi *Installer) UpgradeCuratedPackages(ctx context.Context) {
if IsPackageControllerDisabled(pi.spec.Cluster) {
logger.Info(" Package controller disabled")
Copy link
Member

Choose a reason for hiding this comment

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

why the space?

Suggested change
logger.Info(" Package controller disabled")
logger.Info("Package controller disabled")

Comment on lines +77 to +79
err := pi.installPackagesController(ctx)

if err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

nit

Suggested change
err := pi.installPackagesController(ctx)
if err != nil {
if err := pi.installPackagesController(ctx); err != nil {

&bundle.PackageController.HelmChart,
f.registryMirror,

opts = append(opts,
Copy link
Member

Choose a reason for hiding this comment

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

nit: I would expect to be able to override these defaults with the new variadic args, but this makes it impossible

@@ -76,6 +76,7 @@ type EksdUpgrader interface {

type PackageInstaller interface {
InstallCuratedPackages(ctx context.Context)
UpgradeCuratedPackages(ctx context.Context)
Copy link
Member

Choose a reason for hiding this comment

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

could we have a different interface? or change the name of the interface
I prefer a different interface, but up to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants