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 wrangler to v2.1.0 #14

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Upgrade wrangler to v2.1.0 #14

merged 1 commit into from
Sep 13, 2023

Conversation

connorkuehl
Copy link

Problem:

The current version of wrangler that node-manager depends on doesn't have the generic/fake package that supports mocking controllers, but my current patchset for another issue relies on that functionality for automated unit tests.

Solution:

Upgrade to the latest version of wrangler, so that the updated generic/fake package is available.

Also upgrade module github.com/google/gnostic to
836f55b2639b105f02aa6786b9c1ade794570ff8, to resolve a panic at runtime since the new dependency graph pulls in gnostic-models and there was some issue with gnostic+gnostic-models that is patched upstream now.

Related Issue: harvester/harvester#4471

Test plan:

  1. make build ; make package
  2. docker image save harvester/harvester-node-manager:a59a988-amd64 -o harvester-node-manager.tar
  3. scp harvester-node-manager.tar rancher@HARVESTER-NODE:
  4. (on Harvester node) ctr -n=k8s.io image import /home/rancher/harvester-node-manager.tar
  5. (on Harvester node)kubectl patch managedchart harvester -n fleet-local -p='{"spec":{"paused":true}}' --type=merge
  6. (on Harvester node) kubectl edit daemonset/harvester-node-manager -n harvester-system (set image to the image tag of the container built in step 1)
  7. (on Harvester node) kubectl rollout restart daemonset/harvester-node-manager -n harvester-system
  8. (on Harvester node) kubectl logs harvester-node-manager-ll5w5 -n harvester-system -- just confirm there are no obvious issues and that the pod remains healthy

AKA 3604a6be798d0e52e1d935d61d57b4ecbd5dfb2a since its go.mod doesn't
have a /v2 suffix.

Wrangler's fake package has developed the capability for providing
generic mocks for things like controllers, which will be useful in
subsequent patches for automated unit tests.

Also upgrade module github.com/google/gnostic to
836f55b2639b105f02aa6786b9c1ade794570ff8, to resolve a panic at
runtime.
@connorkuehl
Copy link
Author

ping

Copy link

@guangbochen guangbochen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

Copy link
Contributor

@chrisho chrisho left a comment

Choose a reason for hiding this comment

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

LGTM and it works fine, thanks.

Copy link
Member

@starbops starbops left a comment

Choose a reason for hiding this comment

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

Swapped the image with the customized one, seems all good. LGTM, thanks!

@starbops starbops merged commit 29143b7 into harvester:master Sep 13, 2023
2 checks passed
@connorkuehl connorkuehl deleted the wrangler-upgrade branch September 13, 2023 20:19
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