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

e2e test taking ownership of a field #28740

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Apr 24, 2024

demonstrate how to take ownership of a set-list.

/hold

@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 Apr 24, 2024
Copy link
Contributor

openshift-ci bot commented Apr 24, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

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 Apr 24, 2024
Force: true,
})
postBytes, _ = json.Marshal(postApply.Object)
framework.Logf("after trying to replace the field\n%v", string(postBytes))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

{
  "apiVersion": "testing.openshift.io/v1",
  "kind": "SSAWithSet",
  "metadata": {
    "creationTimestamp": "2024-04-24T21:14:18Z",
    "generation": 2,
    "managedFields": [
      {
        "apiVersion": "testing.openshift.io/v1",
        "fieldsType": "FieldsV1",
        "fieldsV1": {
          "f:spec": {
            "f:setList": {
              "v:\"first\"": {},
              "v:\"second\"": {}
            },
            "f:unrelatedField": {}
          }
        },
        "manager": "creator",
        "operation": "Apply",
        "time": "2024-04-24T21:14:18Z"
      },
      {
        "apiVersion": "testing.openshift.io/v1",
        "fieldsType": "FieldsV1",
        "fieldsV1": {
          "f:spec": {
            "f:setList": {
              "v:\"apple\"": {},
              "v:\"banana\"": {}
            }
          }
        },
        "manager": "new-owner",
        "operation": "Apply",
        "time": "2024-04-24T21:14:18Z"
      }
    ],
    "name": "foo",
    "resourceVersion": "65295",
    "uid": "27acfc2e-7452-4722-b043-5e1a86cab35f"
  },
  "spec": {
    "setList": [
      "first",
      "second",
      "apple",
      "banana"
    ],
    "unrelatedField": "keep-original-owner"
  }
}

@deads2k
Copy link
Contributor Author

deads2k commented Apr 24, 2024

alright, the combination of shared ownership and set sharing and ownership transfer means that there is no clear way to transfer ownership of set lists.

We'll need to decide whether to

  1. issue a patch to take ownership to start
  2. change the list to atomic
  3. "fake" a request from the bootstrap client setting all other pertinent field (too complicated in practice)
  4. directly modify the managedField (potentially more useful, harder than desired right now)

Copy link
Contributor

openshift-ci bot commented May 8, 2024

@deads2k: 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/e2e-aws-ovn-fips 01d88ca link true /test e2e-aws-ovn-fips
ci/prow/e2e-aws-ovn-single-node 01d88ca link false /test e2e-aws-ovn-single-node
ci/prow/e2e-gcp-ovn 01d88ca link true /test e2e-gcp-ovn
ci/prow/e2e-openstack-ovn 01d88ca link false /test e2e-openstack-ovn
ci/prow/e2e-metal-ipi-sdn 01d88ca link false /test e2e-metal-ipi-sdn
ci/prow/e2e-aws-ovn-upgrade 01d88ca link false /test e2e-aws-ovn-upgrade
ci/prow/e2e-aws-ovn-single-node-upgrade 01d88ca link false /test e2e-aws-ovn-single-node-upgrade
ci/prow/e2e-aws-ovn-single-node-serial 01d88ca link false /test e2e-aws-ovn-single-node-serial
ci/prow/e2e-metal-ipi-ovn-ipv6 01d88ca link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-aws-ovn-cgroupsv2 01d88ca link false /test e2e-aws-ovn-cgroupsv2
ci/prow/e2e-aws-ovn-edge-zones 01d88ca link true /test e2e-aws-ovn-edge-zones

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.

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