integ/kubernetes/cni/plugins/centos
Steven Webster 82b19f0a3c cni plugins: add IFNAME key support to the tuning plugin
This commit backports IFNAME key support from v1.1.1 of the
k8s containernetworking-plugins:

c16cff9805

IFNAME key support allows one to use the keyword
'IFNAME' in a network attachment definition using the
tuning plugin.  Without this, the actual interface name
(whether specified in the pod spec, or the default 'net<X>')
must be specified.

Example:

apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: hd0
spec:
  config: '{
    "cniVersion": "0.3.1",
    "plugins": [
      {
        "name": "hd0",
        "type": "host-device",
        "device": "eth1000"
      },
      {
        "type": "tuning",
        "sysctl": {
          "net.ipv6.conf.IFNAME.accept_ra": "0"
        }
      }
    ]
  }'

The above example would disable the processing of
IPv6 router advertisements on the interface associated
with the network attachment definition, regardless of
what the interface has been named in the container.

Note: Currently, StarlingX supports v1.0.1 of the
containernetworking-plugins.  Once the plugins have been
up-revved to v1.1.1, this patch can be removed.

Testing:

- Ensure patch is applied and build successful
  on CentOS and Debian
- Perform a functional test of the tuning plugin using
  the IFNAME key on CentOS and Debian

Story: 2010114
Task: 45693

Signed-off-by: Steven Webster <steven.webster@windriver.com>
Change-Id: I4fc617390b25bcf74a2a319fcb4409a0633c4a31
2022-06-30 09:22:36 -04:00
..
files cni plugins: add IFNAME key support to the tuning plugin 2022-06-30 09:22:36 -04:00
build_srpm.data cni plugins: add IFNAME key support to the tuning plugin 2022-06-30 09:22:36 -04:00
containernetworking-plugins.spec cni plugins: add IFNAME key support to the tuning plugin 2022-06-30 09:22:36 -04:00
containernetworking-plugins.spec.orig uprev the containernetwork-plugins 2021-08-13 11:35:07 -04:00