mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-30 19:54:46 +00:00
Merge pull request #31 from ConnorDoyle/update-namespace
Automatic merge from submit-queue Update published label prefix. Fixes #27. - Changed prefix from `node.alpha.intel.com/nfd` to `node.alpha.kubernetes-incubator.io/nfd`
This commit is contained in:
commit
307348468a
2 changed files with 7 additions and 7 deletions
12
README.md
12
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:
|
The published node labels encode a few pieces of information:
|
||||||
|
|
||||||
- A "namespace" (e.g. `node.alpha.intel.com/nfd`).
|
- A "namespace" (e.g. `node.alpha.kubernetes-incubator.io/nfd`).
|
||||||
- The version of this discovery code that wrote the label, according to
|
- The version of this discovery code that wrote the label, according to
|
||||||
`git describe --tags --dirty --always`.
|
`git describe --tags --dirty --always`.
|
||||||
- The source for each label (e.g. `cpuid`).
|
- The source for each label (e.g. `cpuid`).
|
||||||
|
@ -71,10 +71,10 @@ the only label value published for features is the string `"true"`._
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"node.alpha.intel.com/node-feature-discovery.version": "v0.1.0",
|
"node.alpha.kubernetes-incubator.io/node-feature-discovery.version": "v0.1.0",
|
||||||
"node.alpha.intel.com/nfd-cpuid-<feature-name>": "true",
|
"node.alpha.kubernetes-incubator.io/nfd-cpuid-<feature-name>": "true",
|
||||||
"node.alpha.intel.com/nfd-rdt-<feature-name>": "true",
|
"node.alpha.kubernetes-incubator.io/nfd-rdt-<feature-name>": "true",
|
||||||
"node.alpha.intel.com/nfd-pstate-<feature-name>": "true"
|
"node.alpha.kubernetes-incubator.io/nfd-pstate-<feature-name>": "true"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ following example shows how to target nodes with Intel TurboBoost enabled.
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"nodeSelector": {
|
"nodeSelector": {
|
||||||
"node.alpha.intel.com/nfd-pstate-turbo": "true"
|
"node.alpha.kubernetes-incubator.io/nfd-pstate-turbo": "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
main.go
2
main.go
|
@ -18,7 +18,7 @@ const (
|
||||||
ProgramName = "node-feature-discovery"
|
ProgramName = "node-feature-discovery"
|
||||||
|
|
||||||
// Namespace is the prefix for all published labels.
|
// Namespace is the prefix for all published labels.
|
||||||
Namespace = "node.alpha.intel.com"
|
Namespace = "node.alpha.kubernetes-incubator.io"
|
||||||
|
|
||||||
// PodNameEnv is the environment variable that contains this pod's name.
|
// PodNameEnv is the environment variable that contains this pod's name.
|
||||||
PodNameEnv = "POD_NAME"
|
PodNameEnv = "POD_NAME"
|
||||||
|
|
Loading…
Add table
Reference in a new issue