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

docs: update sgx doc and sgx-test tag #3349

Merged
merged 15 commits into from
May 29, 2020

Conversation

salsal97
Copy link
Contributor

@salsal97 salsal97 commented May 27, 2020

Reason for Change:

Rewrote parts of the sgx documentation to reflect current state, ordered it according to execution and added device-plugin yaml for deployment as a file instead of in the readme.

Linked the dockerfile for container referenced in the test to build helloworld oe

Updated test of updated docker image sgx-test:1.0

Issue Fixed:

Requirements:

Notes:

@salsal97
Copy link
Contributor Author

/cc agowdamsft

@acs-bot
Copy link

acs-bot commented May 27, 2020

@salsal97: GitHub didn't allow me to request PR reviews from the following users: agowdamsft.

Note that only Azure members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc agowdamsft

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.

@salsal97
Copy link
Contributor Author

/cc @agowdamsft

@acs-bot
Copy link

acs-bot commented May 27, 2020

@salsal97: GitHub didn't allow me to request PR reviews from the following users: agowdamsft.

Note that only Azure members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @agowdamsft

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.

@salsal97
Copy link
Contributor Author

/assign @brendandburns

@salsal97 salsal97 marked this pull request as ready for review May 28, 2020 01:27
@salsal97
Copy link
Contributor Author

/hold cancel

agowdamsft
agowdamsft previously approved these changes May 28, 2020
Copy link
Contributor

@agowdamsft agowdamsft left a comment

Choose a reason for hiding this comment

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

Looks prefect for the user flow and best practice recommendation.

@vtikoo
Copy link
Contributor

vtikoo commented May 28, 2020

@salsal97 the link to sgx documentation in https://github.com/Azure/aks-engine/blob/master/docs/topics/README.md also needs to be updated.

@acs-bot acs-bot added size/L and removed size/XL labels May 28, 2020
@vtikoo
Copy link
Contributor

vtikoo commented May 28, 2020

/approve lgtm 👍

vtikoo
vtikoo previously approved these changes May 28, 2020
Copy link

@paulcallen paulcallen left a comment

Choose a reason for hiding this comment

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

couple of things would like to see updated.

@salsal97 salsal97 requested a review from paulcallen May 29, 2020 21:47
@salsal97 salsal97 changed the title docs: update sgx topic doc docs: update sgx doc and sgx-test May 29, 2020
@salsal97 salsal97 changed the title docs: update sgx doc and sgx-test docs: update sgx doc and sgx-test tag May 29, 2020
@salsal97 salsal97 requested a review from vtikoo May 29, 2020 22:47
@salsal97
Copy link
Contributor Author

/assign @jackfrancis

@@ -7,8 +7,7 @@ spec:
spec:
containers:
- name: sgxtest
image: oeciteam/sgx-test
command: ["/helloworld/host/helloworldhost", "/helloworld/enclave/helloworldenc.signed"]
image: oeciteam/sgx-test:1.0
Copy link
Member

Choose a reason for hiding this comment

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

Shall I assume this image has the equivalent "run something to validate basic SGX functionality and exit 0 if success" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! It has the same helloworld application, just moved the executing command to the image itself

Copy link
Member

Choose a reason for hiding this comment

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

I'm running tests to validate this now, then will merge, thanks!

Btw, do we know why we are only testing Kubernetes v1.15 and v1.16? Does the sgx-device-plugin not work w/ v1.17+ for some reason (that would be weird), or do we need to enable tests for those versions of Kubernetes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where exactly is this test happening? There's a different version of the yaml file for k8s v1.17 onwards because of changes from beta mode

Copy link
Member

Choose a reason for hiding this comment

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

We use this config as input to the Jenkinsfile in the root of the project:

https://github.com/Azure/aks-engine/blob/master/test/e2e/test_cluster_configs/sgx.json

Essentially, by building an 18.04-LTS node pool w/ the Standard_DC2s VM SKU, we expect that the drivers will be installed and that this sgx-test.yaml will be properly scheduled and executed on a node in the cluster.

I'm building a 1.18 cluster now /w a 18.04 + Standard_DC2s node pool, I'll report back...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The sgx-test.yml mounts /dev/sgx so it essentially doesn't depend on the plugin...

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

/lgtm

@acs-bot acs-bot added the lgtm label May 29, 2020
@jackfrancis jackfrancis merged commit 5df48ee into Azure:master May 29, 2020
@acs-bot
Copy link

acs-bot commented May 29, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, paulcallen, salsal97, vtikoo

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

penggu pushed a commit to penggu/aks-engine that referenced this pull request Oct 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants