k8snetworkplumbingwg / network-resources-injector

A Kubernetes Dynamic Admission Controller that patches Pods to add additional information.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Defined Injections - documentation is misleading

MichalGuzieniuk opened this issue · comments

The ConfigMap given as an example at https://github.com/k8snetworkplumbingwg/network-resources-injector#user-defined-injections is wrong, and in result it is not possible to take example as it is and verify if User Defined Injections feature of NRI is working correctly.

ConfigMap does not support '/' character. There is an issue described at kubernetes/kubernetes#87119. In result the key of data section feature.pod.kubernetes.io/sriov-network: is invalid and not accepted by kubernetes.

It is described within documentation https://pkg.go.dev/k8s.io/api/core/v1#ConfigMap that

Each key must consist of alphanumeric characters, '-', '_' or '.'.