-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add support for confidential compute #809
Add support for confidential compute #809
Conversation
Hi @eranco74. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
@eranco74 - thanks for this. Does the current CAPI image satisfy the requirements for the guest OS? |
Yes, it has all the required guest-os-feature tags:
|
eeeb980
to
cc4f263
Compare
cc4f263
to
24c1c2f
Compare
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.
Great work @eranco74 . Just a few minor comments (including an addition to Joel's comment).
24c1c2f
to
1c366be
Compare
@eranco74 - it's probably worth creating an issue to follow this up with updating the e2e tests to cover confidential compute. wdyt? |
ea40fed
to
72b5a0b
Compare
df00e89
to
36b5ae3
Compare
36b5ae3
to
962a9a9
Compare
962a9a9
to
c37a092
Compare
Add manual conversion for ConfidentialCompute and OnHostMaintenance Add webhook to validate that OnHostMaintenance is set to TERMINATE if ConfidentialCompute is Enabled Add webhook to validate that the instanceType belongs to a machine series that support confidentail computing Update machine.go to set instance.ConfidentialCompute and instance.OnHostMaintenance according to GCPMachine.Spec
25254f1
to
d41dd4b
Compare
In the future we should consider restructuring our code so that anything that isn't intended to be used outside this project is moved to internal folders.....which is most of the code except our API definitions. Until that point happens we can ignore this: /override pull-cluster-api-provider-gcp-apidiff |
@richardcase: Overrode contexts on behalf of richardcase: pull-cluster-api-provider-gcp-apidiff In response to this:
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. |
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.
Thanks for the updates
/lgtm
@@ -40,7 +42,7 @@ type instancegroupsInterface interface { | |||
// Scope is an interfaces that hold used methods. | |||
type Scope interface { | |||
cloud.Machine | |||
InstanceSpec() *compute.Instance | |||
InstanceSpec(log logr.Logger) *compute.Instance |
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.
nit, we could probably have this on the concrete struct instead of as a parameter.
Great work, and thanks for the updates from review. From my side: /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eranco74, richardcase 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 |
/kind feature
What this PR does / why we need it:
The PR adds support for enabling confidential compute service as well as setting the instances on host maintenance policy.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
#804
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note:
-->