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

MGMT-14838: Use CAPI Agent new v1beta1 APIs #86

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

CrystalChun
Copy link

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 19, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 19, 2023

@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:

https://issues.redhat.com/browse/MGMT-14838

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.

@CrystalChun
Copy link
Author

/test ?

@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

@CrystalChun: The following commands are available to trigger required jobs:

  • /test build
  • /test e2e-ai-operator-ztp-capi
  • /test images
  • /test mce-images
  • /test unit-test

Use /test all to run all jobs.

In response to this:

/test ?

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.

@openshift-ci openshift-ci bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Sep 19, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 19, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 19, 2023
@CrystalChun CrystalChun marked this pull request as draft September 19, 2023 17:21
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 19, 2023
@CrystalChun
Copy link
Author

/test unit-test

@@ -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)
Copy link
Author

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

@CrystalChun CrystalChun marked this pull request as ready for review September 23, 2023 23:02
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 23, 2023
@CrystalChun
Copy link
Author

/uncc @avishayt @carbonin

@CrystalChun
Copy link
Author

/cc @eranco74 @filanov

Dockerfile Show resolved Hide resolved
@CrystalChun
Copy link
Author

/retest

@CrystalChun
Copy link
Author

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

@CrystalChun
Copy link
Author

/retest

@CrystalChun CrystalChun force-pushed the upgrade-apis branch 2 times, most recently from 924dbd8 to 5be087f Compare September 29, 2023 17:20
https://issues.redhat.com/browse/MGMT-14838
These code changes are needed after upgrading some
dependencies in the previous commit.
@@ -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()
Copy link
Author

@CrystalChun CrystalChun Sep 29, 2023

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()
Copy link
Author

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

@CrystalChun
Copy link
Author

Note: ci/prow/e2e-ai-operator-ztp-capi is still failing because this test relies on hypershift in ocp 4.14 where the APIs haven't been upgraded to v1beta1.

PR to do that is opened here openshift/hypershift#3059

@filanov
Copy link

filanov commented Oct 2, 2023

/assign @avishayt
/assign @eranco74

@CrystalChun
Copy link
Author

/retest-required

@openshift-ci
Copy link

openshift-ci bot commented Oct 10, 2023

@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.

@avishayt
Copy link

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 11, 2023
@openshift-ci openshift-ci bot merged commit a55a6c0 into openshift:master Oct 11, 2023
6 checks passed
@CrystalChun
Copy link
Author

/cherry-pick release-ocm-2.9

@openshift-cherrypick-robot

@CrystalChun: new pull request created: #87

In response to this:

/cherry-pick release-ocm-2.9

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants