-
Notifications
You must be signed in to change notification settings - Fork 16
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
MGMT-14838: Use CAPI Agent new v1beta1 APIs #86
Conversation
@CrystalChun: This pull request references MGMT-14838 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but no target version was set. In response to this: 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. |
/test ? |
@CrystalChun: The following commands are available to trigger required jobs:
Use In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CrystalChun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
https://issues.redhat.com/browse/MGMT-14838 v1beta1 upgrade introduced upgraded dependencies.
0c71128
to
14fcc20
Compare
/test unit-test |
14fcc20
to
c26044d
Compare
@@ -165,7 +165,7 @@ mockgen: ## Download mockgen locally if necessary. | |||
|
|||
GOLINT = $(shell pwd)/bin/golangci-lint | |||
golint: ## Download golangci-lint locally if necessary. | |||
$(call go-get-tool,$(GOLINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2) | |||
$(call go-get-tool,$(GOLINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later version of linter is needed for updated dependencies
c26044d
to
a25e0b5
Compare
a25e0b5
to
1d65362
Compare
/retest |
1d65362
to
a3edbbd
Compare
Jobs are failing because CI uses golang 1.17 and the new dependencies require a higher golang version PR in release repo to upgrade to golang 1.20 openshift/release#43518 |
/retest |
924dbd8
to
5be087f
Compare
https://issues.redhat.com/browse/MGMT-14838 These code changes are needed after upgrading some dependencies in the previous commit.
5be087f
to
63e1fdc
Compare
@@ -147,7 +147,8 @@ var _ = Describe("agentcluster reconcile", func() { | |||
) | |||
|
|||
BeforeEach(func() { | |||
c = fakeclient.NewClientBuilder().WithScheme(scheme.Scheme).Build() | |||
agentCluster := &capiproviderv1.AgentCluster{} | |||
c = fakeclient.NewClientBuilder().WithScheme(scheme.Scheme).WithStatusSubresource(agentCluster).Build() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For history, had to add WithStatusSubresource
to this because of kubernetes-sigs/controller-runtime#2362 which prevents the status of a resource from being updated during unit tests, causing them to fail.
Change ref: evryfs/github-actions-runner-operator@165da33
@@ -209,7 +209,8 @@ var _ = Describe("agentmachine reconcile", func() { | |||
) | |||
|
|||
BeforeEach(func() { | |||
c = fakeclient.NewClientBuilder().WithScheme(scheme.Scheme).Build() | |||
agentMachine := &capiproviderv1.AgentMachine{} | |||
c = fakeclient.NewClientBuilder().WithScheme(scheme.Scheme).WithStatusSubresource(agentMachine).Build() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For history, had to add WithStatusSubresource to this because of kubernetes-sigs/controller-runtime#2362 which prevents the status of a resource from being updated during unit tests, causing them to fail.
Change ref: evryfs/github-actions-runner-operator@165da33
Note: PR to do that is opened here openshift/hypershift#3059 |
/retest-required |
@CrystalChun: all tests passed! 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. |
/lgtm |
/cherry-pick release-ocm-2.9 |
@CrystalChun: new pull request created: #87 In response to this:
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. |
https://issues.redhat.com/browse/MGMT-14838