-
Notifications
You must be signed in to change notification settings - Fork 19
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 TDX specific configuration #35
Conversation
Signed-off-by: Leonardo Milleri <[email protected]>
api/v1alpha1/kbsconfig_types.go
Outdated
@@ -76,6 +76,9 @@ type KbsConfigSpec struct { | |||
|
|||
// kbsResourcePolicyConfigMapName is the name of the configmap that contains the Resource Policy | |||
KbsResourcePolicyConfigMapName string `json:"kbsResourcePolicyConfigMapName,omitempty"` | |||
|
|||
// kbsTdxConfigMapName is the name of the configmap that contains the TDX specific config | |||
KbsTdxConfigMapName string `json:"kbsTdxConfigMapName,omitempty"` |
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.
Should we create a separate struct for TDX config? In case there are other configs that might be needed going forward
a9ce140
to
87fa8ec
Compare
README.md
Outdated
KbsServiceType corev1.ServiceType `json:"kbsServiceType,omitempty"` | ||
|
||
// KbsDeploymentType is the type of KBS deployment | ||
// It can assume one of the following values: | ||
// It can assume one of the fREADME.mdollowing values: |
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.
typo ?
README.md
Outdated
|
||
// TdxConfigSpec defines the desired state for TDX configuration | ||
type TdxConfigSpec struct { | ||
// kbsTdxConfigMapName is the name of the configmap that mounts the sgx_default_qcnl.conf |
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.
// kbsTdxConfigMapName is the name of the configmap that mounts the sgx_default_qcnl.conf | |
kbsTdxConfigMapName is the name of the configmap containing sgx_default_qcnl.conf file |
api/v1alpha1/kbsconfig_types.go
Outdated
@@ -36,6 +36,13 @@ const ( | |||
DeploymentTypeMicroservices DeploymentType = "MicroservicesDeployment" | |||
) | |||
|
|||
// TdxConfigSpec defines the desired state for TDX configuration | |||
type TdxConfigSpec struct { | |||
// kbsTdxConfigMapName is the name of the configmap that mounts the sgx_default_qcnl.conf |
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.
// kbsTdxConfigMapName is the name of the configmap that mounts the sgx_default_qcnl.conf | |
kbsTdxConfigMapName is the name of the configmap containing sgx_default_qcnl.conf file |
The config file /etc/sgx_default_qcnl.conf can be overriden by creating the correspondent config map Signed-off-by: Leonardo Milleri <[email protected]>
These configmaps are optional - resource-policy - TDX specific configuration Signed-off-by: Leonardo Milleri <[email protected]>
Signed-off-by: Leonardo Milleri <[email protected]>
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
…references/main chore(deps): update konflux references
New ConfigMap added for mounting
sgx_default_qcnl.conf
in/etc
.If you update the configmap, trustee deployment needs to be restarted.