-
Notifications
You must be signed in to change notification settings - Fork 237
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
tests: csau test #3286
tests: csau test #3286
Conversation
/assign @acpana |
...ata/basic/gkehub/v1beta1/gkehubfeaturemembership/basicacmgkehubfeaturemembership/update.yaml
Outdated
Show resolved
Hide resolved
/lgtm thanks for splitting the tests! |
syncWaitSecs: "20" | ||
syncRev: "HEAD" | ||
secretType: "none" | ||
version: "1.18.1" |
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.
Could you make the test case be updating from one management mode (e.g. automatic) to another management mode (e.g. manual)? We want to test the update of this field as well.
...data/basic/gkehub/v1beta1/gkehubfeaturemembership/basiccsaugkehubfeaturemembership/_http.log
Outdated
Show resolved
Hide resolved
I suggest we don't update from using |
For the
|
Good point.
Note that KCC pass in the version in the HTTP request because version is also specified in the KRM object. Check #3344 (comment) for more details. So basically this means user specified both
If no-op, then it means the live state is considered SoT and the desired intention is ignored. We should find the diff in between the desired state and live state and return an error accordingly if there is a diff. |
Right. Passing in both version and management could be okay, it defers to how the GKEHub service responses. For the 3 possible results I gave, KCC only need additional logic if GKEHub service allows both values and ignore the version. |
Answer: the GCP server returns an error if both version and csau is specified in the spec.
|
Thanks for the digging. I don't think this PR should be blocked on the test gap. I can remove the version field in the created.yaml |
@maqiuyujoyce the gap is in test, I wonder what's the behavior for base controller when doing update, does it |
Answer
If this is desired, this means the status.version field should be optional because it should only be populated when csau is disabled. This PR only adds test cases, I think we can address the status.version in followups. |
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.
/lgtm
/approve
/hold
Do you have any other concerns, @yuwenma ?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acpana, maqiuyujoyce 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 |
Do you infer the version is required now and not in |
/hold cancel Looks good on my side. |
4901040
into
GoogleCloudPlatform:master
My bad, I corrected my previous statement. The |
Right, that's option 3 I mentioned. If If GCP service take into account the version, KCC can treat it as a no-op, and let users take actions according to the GCP error |
Change description
Remove version filed if auto-upgrade is turned on.
Tests you have done
make ready-pr
to ensure this PR is ready for review.