Skip to content

Commit bcdee7b

Browse files
authored
Merge pull request #1350 from marquiz/devel/security-labels
cpu: drop the deprecated sgx and se labels
2 parents a2083f8 + c126764 commit bcdee7b

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

docs/usage/customization-guide.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,12 +755,8 @@ The following features are available for matching:
755755
| | | **`sev.enabled`** | bool | `true` if AMD SEV (Secure Encrypted Virtualization) is available on the host and has been enabled, otherwise does not exist
756756
| | | **`sev.es.enabled`** | bool | `true` if AMD SEV-ES (Encrypted State supported) is available on the host and has been enabled, otherwise does not exist
757757
| | | **`sev.snp.enabled`** | bool | `true` if AMD SEV-SNP (Secure Nested Paging supported) is available on the host and has been enabled, otherwise does not exist
758-
| **`cpu.sgx`** | attribute | | | **DEPRECATED**: replaced by **`cpu.security`** feature
759-
| | | **`enabled`** | bool | **DEPRECATED**: use **`sgx.enabled`** from **`cpu.security`** instead
760758
| **`cpu.sst`** | attribute | | | Intel SST (Speed Select Technology) capabilities
761759
| | | **`bf.enabled`** | bool | `true` if Intel SST-BF (Intel Speed Select Technology - Base frequency) has been enabled, otherwise does not exist
762-
| **`cpu.se`** | attribute | | | **DEPRECATED**: replaced by **`cpu.security`** feature
763-
| | | **`enabled`** | bool | **DEPRECATED**: use **`se.enabled`** from **`cpu.security`** instead
764760
| **`cpu.topology`** | attribute | | | CPU topology related features
765761
| | | **`hardware_multithreading`** | bool | Hardware multithreading, such as Intel HTT, is enabled
766762
| **`cpu.coprocessor`** | attribute | | | CPU Coprocessor related features

docs/usage/features.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ feature.node.kubernetes.io/<feature> = <value>
6464
| **`cpu-security.sev.snp.enabled`**| true | Set to 'true' if ADM SEV-SNP is available on the host and has been enabled (requires `/sys/module/kvm_amd/parameters/sev_snp`).
6565
| **`cpu-security.sex.asids`** | int | The total amount of AMD SEV address-space identifiers (ASIDs), based on the `/sys/fs/cgroup/misc.capacity` information.
6666
| **`cpu-security.sex.encrypted_state_ids`** | int | The total amount of AMD SEV-ES and SEV-SNP supported, based on the `/sys/fs/cgroup/misc.capacity` information.
67-
| **`cpu-sgx.enabled`** | true | **DEPRECATED**: use **`cpu-security.sgx.enabled`** instead.
68-
| **`cpu-se.enabled`** | true | **DEPRECATED**: use **`cpu-security.se.enabled`** instead.
6967
| **`cpu-model.vendor_id`** | string | Comparable CPU vendor ID.
7068
| **`cpu-model.family`** | int | CPU family.
7169
| **`cpu-model.id`** | int | CPU model number.

source/cpu/cpu.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ const (
4141
CstateFeature = "cstate"
4242
PstateFeature = "pstate"
4343
RdtFeature = "rdt"
44-
SeFeature = "se" // DEPRECATED in v0.12: will be removed in the future
4544
SecurityFeature = "security"
46-
SgxFeature = "sgx" // DEPRECATED in v0.12: will be removed in the future
4745
SstFeature = "sst"
4846
TopologyFeature = "topology"
4947
CoprocessorFeature = "coprocessor"
@@ -189,16 +187,6 @@ func (s *cpuSource) GetLabels() (source.FeatureLabels, error) {
189187
}
190188
}
191189

192-
// SGX
193-
for k, v := range features.Attributes[SgxFeature].Elements {
194-
labels["sgx."+k] = v
195-
}
196-
197-
// Secure Execution
198-
for k, v := range features.Attributes[SeFeature].Elements {
199-
labels["se."+k] = v
200-
}
201-
202190
// SST
203191
for k, v := range features.Attributes[SstFeature].Elements {
204192
labels["power.sst_"+k] = v
@@ -248,20 +236,6 @@ func (s *cpuSource) Discover() error {
248236
// Detect available guest protection(SGX,TDX,SEV) features
249237
s.features.Attributes[SecurityFeature] = nfdv1alpha1.NewAttributeFeatures(discoverSecurity())
250238

251-
// Detect SGX features
252-
//
253-
// DEPRECATED in v0.12: will be removed in the future
254-
if val, ok := s.features.Attributes[SecurityFeature].Elements["sgx.enabled"]; ok {
255-
s.features.Attributes[SgxFeature] = nfdv1alpha1.NewAttributeFeatures(map[string]string{"enabled": val})
256-
}
257-
258-
// Detect Secure Execution features
259-
//
260-
// DEPRECATED in v0.12: will be removed in the future
261-
if val, ok := s.features.Attributes[SecurityFeature].Elements["se.enabled"]; ok {
262-
s.features.Attributes[SeFeature] = nfdv1alpha1.NewAttributeFeatures(map[string]string{"enabled": val})
263-
}
264-
265239
// Detect SST features
266240
s.features.Attributes[SstFeature] = nfdv1alpha1.NewAttributeFeatures(discoverSST())
267241

0 commit comments

Comments
 (0)