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

SDN 4923: rebase k8s v1.30.2 #2423

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jluhrsen
Copy link
Contributor

No description provided.

@jluhrsen
Copy link
Contributor Author

/hold

this is broken.

It looks like we do a bunch of this kind of thing:

if err := c.Watch(&source.Informer{Informer: cmInformer},
    handler.EnqueueRequestsFromMapFunc(reconcileOperConfig),
    predicate.ResourceVersionChangedPredicate{},
    predicate.NewPredicateFuncs(func(object crclient.Object) bool {
       // Ignore ConfigMaps we manage as part of this loop
       return !(object.GetName() == "network-operator-lock" ||
          object.GetName() == "applied-cluster")
    }),
); err != nil {
    return err
}

but there was a refactor in controller-runtime that I am struggling to figure out what to do. Supposed to be a backward compatible refactor if we used the builder , but since we directly call controller.Watch() we need to change.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 27, 2024
@openshift-ci openshift-ci bot requested review from jcaamano and trozet June 27, 2024 19:47
Copy link
Contributor

openshift-ci bot commented Jun 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jluhrsen
Once this PR has been reviewed and has the lgtm label, please assign jacobtanenbaum for approval. 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

@jluhrsen
Copy link
Contributor Author

/retest

3 similar comments
@jluhrsen
Copy link
Contributor Author

/retest

@jluhrsen
Copy link
Contributor Author

jluhrsen commented Jul 2, 2024

/retest

@jluhrsen
Copy link
Contributor Author

jluhrsen commented Jul 2, 2024

/retest

❯ rg '0\.29|/openshift' go.mod | awk '{print "go get -u",$1}' | sort --uniq

go get -u github.com/openshift/api
go get -u github.com/openshift/build-machinery-go
go get -u github.com/openshift/client-go
go get -u github.com/openshift/library-go
go get -u github.com/openshift/machine-config-operator
go get -u k8s.io/api
go get -u k8s.io/apiextensions-apiserver
go get -u k8s.io/apimachinery
go get -u k8s.io/apiserver
go get -u k8s.io/client-go
go get -u k8s.io/code-generator
go get -u k8s.io/component-base
go get -u k8s.io/kms
go get -u k8s.io/kube-proxy
go get -u module

go mod tidy; go mod vendor

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
- implement GetOperatorStateWithQuorum() for v1helpers.OperatorClient
  interface which was added in openshift/library-go here [0]

- applyconfigv1.NetworkStatus().WithConditions() now requires
  metav1.ConditionApplyConfiguration instead of metav1.Condition,
  which came in with the client-go 1.30 rebase here [1]

- using new lib location for feature gates "openshift/api/features"

- refactor controller-runtime Watch() calls to handle new generics
  support [2]

- moved RotatedSigningCASecret.JiraComponent to
  RotatedSigningCASecret.AdditionalAnnotations.JiraComponent from here [3]

- added dummy path to apimachinery validation.IsValidIP() as it was
  added as an argument here [4]. not relevant to the the call in this
  case.

- bumped k8s.io/component-base to v0.31.0-alpha.2 to get past a
  breaking issue with prometheus using a breaking type from 0.30.2

- the version of googleapis/api/expr/v1alpha1 that is brought in with
  github.com/google/cel-go with anything newer than v0.17.8 no longer
  includes GetConstExpr() so pinning that lib to v0.17.8

[0] openshift/library-go@bd5e34c
[1] openshift/client-go@792100e#diff-233949a4a2a7ca43d091c935b04748464200784e5377366d574945d3fd06ed89R76
[2] kubernetes-sigs/controller-runtime#2783
[3] openshift/library-go@df7ff42
[4] openshift/kubernetes-apimachinery@89b9414

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
there was an update [0] to the controller-runtime fake
client to zero out all fields when serializing a target

this was causing the UpdatedReplicas value to be
overwritten with 0 and causing the UT to fail. the
test case portion affected by this was only interested
in Status changes so updating to use setStatus() should
make sense here.

[0] kubernetes-sigs/controller-runtime@e368149

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
@jluhrsen
Copy link
Contributor Author

jluhrsen commented Jul 3, 2024

/hold

this got messed up after I rebased on new work that has come in

Copy link
Contributor

openshift-ci bot commented Jul 4, 2024

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

Test name Commit Details Required Rerun command
ci/prow/4.17-upgrade-from-stable-4.16-e2e-azure-ovn-upgrade ab4e7d6 link false /test 4.17-upgrade-from-stable-4.16-e2e-azure-ovn-upgrade
ci/prow/e2e-aws-hypershift-ovn-kubevirt ab4e7d6 link false /test e2e-aws-hypershift-ovn-kubevirt
ci/prow/e2e-vsphere-ovn ab4e7d6 link false /test e2e-vsphere-ovn
ci/prow/e2e-gcp-ovn ab4e7d6 link true /test e2e-gcp-ovn
ci/prow/e2e-ovn-step-registry ab4e7d6 link false /test e2e-ovn-step-registry
ci/prow/e2e-aws-ovn-serial ab4e7d6 link false /test e2e-aws-ovn-serial
ci/prow/e2e-ovn-ipsec-step-registry ab4e7d6 link false /test e2e-ovn-ipsec-step-registry
ci/prow/e2e-aws-ovn-upgrade ab4e7d6 link true /test e2e-aws-ovn-upgrade
ci/prow/4.17-upgrade-from-stable-4.16-e2e-aws-ovn-upgrade ab4e7d6 link false /test 4.17-upgrade-from-stable-4.16-e2e-aws-ovn-upgrade
ci/prow/4.17-upgrade-from-stable-4.16-e2e-gcp-ovn-upgrade ab4e7d6 link false /test 4.17-upgrade-from-stable-4.16-e2e-gcp-ovn-upgrade
ci/prow/e2e-network-mtu-migration-ovn-ipv4 ab4e7d6 link false /test e2e-network-mtu-migration-ovn-ipv4
ci/prow/e2e-vsphere-ovn-dualstack-primaryv6 ab4e7d6 link false /test e2e-vsphere-ovn-dualstack-primaryv6
ci/prow/e2e-aws-ovn-local-to-shared-gateway-mode-migration ab4e7d6 link false /test e2e-aws-ovn-local-to-shared-gateway-mode-migration
ci/prow/e2e-azure-ovn ab4e7d6 link false /test e2e-azure-ovn
ci/prow/e2e-vsphere-ovn-dualstack ab4e7d6 link false /test e2e-vsphere-ovn-dualstack
ci/prow/e2e-azure-ovn-upgrade ab4e7d6 link true /test e2e-azure-ovn-upgrade
ci/prow/e2e-aws-ovn-shared-to-local-gateway-mode-migration ab4e7d6 link false /test e2e-aws-ovn-shared-to-local-gateway-mode-migration
ci/prow/security ab4e7d6 link false /test security
ci/prow/e2e-aws-ovn-hypershift-conformance ab4e7d6 link true /test e2e-aws-ovn-hypershift-conformance
ci/prow/e2e-openstack-ovn ab4e7d6 link false /test e2e-openstack-ovn
ci/prow/e2e-ovn-hybrid-step-registry ab4e7d6 link false /test e2e-ovn-hybrid-step-registry
ci/prow/e2e-aws-ovn-single-node ab4e7d6 link false /test e2e-aws-ovn-single-node

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-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant