mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-28 02:37:11 +00:00
Merge pull request #28 from ConnorDoyle/rm-version-from-keys
Automatic merge from submit-queue Removed version from published label keys. Fixes #24
This commit is contained in:
commit
be5a271e8f
2 changed files with 6 additions and 6 deletions
10
README.md
10
README.md
|
@ -59,7 +59,7 @@ The current set of feature sources are the following:
|
|||
|
||||
The published node labels encode a few pieces of information:
|
||||
|
||||
- A "namespace" to denote the vendor/provider (e.g. `node.alpha.intel.com`).
|
||||
- A "namespace" (e.g. `node.alpha.intel.com/nfd`).
|
||||
- The version of this discovery code that wrote the label, according to
|
||||
`git describe --tags --dirty --always`.
|
||||
- The source for each label (e.g. `cpuid`).
|
||||
|
@ -72,9 +72,9 @@ the only label value published for features is the string `"true"`._
|
|||
```json
|
||||
{
|
||||
"node.alpha.intel.com/node-feature-discovery.version": "v0.1.0",
|
||||
"node.alpha.intel.com/v0.1.0-cpuid-<feature-name>": "true",
|
||||
"node.alpha.intel.com/v0.1.0-rdt-<feature-name>": "true",
|
||||
"node.alpha.intel.com/v0.1.0-pstate-<feature-name>": "true"
|
||||
"node.alpha.intel.com/nfd-cpuid-<feature-name>": "true",
|
||||
"node.alpha.intel.com/nfd-rdt-<feature-name>": "true",
|
||||
"node.alpha.intel.com/nfd-pstate-<feature-name>": "true"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -179,7 +179,7 @@ following example shows how to target nodes with Intel TurboBoost enabled.
|
|||
}
|
||||
],
|
||||
"nodeSelector": {
|
||||
"node.alpha.intel.com/v0.1.0-pstate-turbo": "true"
|
||||
"node.alpha.intel.com/nfd-pstate-turbo": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
main.go
2
main.go
|
@ -29,7 +29,7 @@ const (
|
|||
|
||||
var (
|
||||
version = "" // Must not be const, set using ldflags at build time
|
||||
prefix = fmt.Sprintf("%s/%s", Namespace, version)
|
||||
prefix = fmt.Sprintf("%s/nfd", Namespace)
|
||||
)
|
||||
|
||||
// Labels are a Kubernetes representation of discovered features.
|
||||
|
|
Loading…
Add table
Reference in a new issue