Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Create minimial v1a2 to v1a1 converters #1162

Merged

Conversation

adrianludwin
Copy link
Contributor

While investigating another issue, I looked at the logs from the K8s
apiserver and observed that we were seeing tons of errors as the
apiserver asked HNC to convert the v1a2 objects back to v1a1 -
specifically, that their names has changed. I have no idea why K8s is
asking for these objects to be backconverted, but after glancing at the
K8s source code, I guessed that copying the object metadata would work
to fix the issue, and it did.

Tested: observed no more logspam from the apiserver

While investigating another issue, I looked at the logs from the K8s
apiserver and observed that we were seeing tons of errors as the
apiserver asked HNC to convert the v1a2 objects back to v1a1 -
specifically, that their names has changed. I have no idea why K8s is
asking for these objects to be backconverted, but after glancing at the
K8s source code, I guessed that copying the object metadata would work
to fix the issue, and it did.

Tested: observed no more logspam from the apiserver
@adrianludwin adrianludwin added this to the hnc-v0.6 milestone Sep 30, 2020
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 30, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrianludwin

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 30, 2020
@adrianludwin
Copy link
Contributor Author

/assign @yiqigao217
/cc @rjbez17
/cc @GinnyJI

Copy link
Contributor

@yiqigao217 yiqigao217 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2020
@k8s-ci-robot k8s-ci-robot merged commit 84f75d2 into kubernetes-retired:master Sep 30, 2020
adrianludwin added a commit to adrianludwin/multi-tenancy that referenced this pull request Sep 30, 2020
This change fixes todos in the cherrypick for kubernetes-retired#1150 (see issue kubernetes-retired#1149).
It simplifies and restructures a lot of the logic to make it easier to
follow while looking at less data (e.g. a lot more focus on
anchor.Status.State). It also adds a lots more documentation.

Tested: all e2e tests pass on GKE 1.18 when combined with fixes to the
e2e tests (PRs kubernetes-retired#1160, kubernetes-retired#1162, kubernetes-retired#1163 and kubernetes-retired#1164).
adrianludwin added a commit to adrianludwin/multi-tenancy that referenced this pull request Sep 30, 2020
This change fixes todos in the cherrypick for kubernetes-retired#1150 (see issue kubernetes-retired#1149).
It simplifies and restructures a lot of the logic to make it easier to
follow while looking at less data (e.g. a lot more focus on
anchor.Status.State). It also adds a lots more documentation.

Tested: all e2e tests pass on GKE 1.18 when combined with fixes to the
e2e tests (PRs kubernetes-retired#1160, kubernetes-retired#1162, kubernetes-retired#1163 and kubernetes-retired#1164).
@adrianludwin adrianludwin deleted the minimal-v1a1-converstion branch October 5, 2020 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants