-
Notifications
You must be signed in to change notification settings - Fork 127
Description
When we create SRIOVNetwork operator creates net-attach-defination automatically. But it does not inheritate annotations from SRIOVNetwork.
`root@node1:~# kubectl get sriovnetwork.sriovnetwork.openshift.io -n sriov-network-operator example -o yaml
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetwork
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"sriovnetwork.openshift.io/v1","kind":"SriovNetwork","metadata":{"annotations":{},"name":"example","namespace":"sriov-network-operator"},"spec":{"ipam":"{\n "type": "host-local",\n "subnet": "10.56.217.0/24",\n "rangeStart": "10.56.217.171",\n "rangeEnd": "10.56.217.181",\n "routes": [{\n "dst": "0.0.0.0/0"\n }],\n "gateway": "10.56.217.1"\n}\n","resourceName":"intelnics","vlan":0}}
operator.sriovnetwork.openshift.io/last-network-namespace: sriov-network-operator
creationTimestamp: "2025-03-26T07:47:59Z"
finalizers:
- netattdef.finalizers.sriovnetwork.openshift.io
generation: 2
name: example
namespace: sriov-network-operator
resourceVersion: "3883157"
uid: 5309fac2-6bd6-4a08-ad91-d94693c48079
spec:
ipam: |
{
"type": "host-local",
"subnet": "10.56.217.0/24",
"rangeStart": "10.56.217.171",
"rangeEnd": "10.56.217.181",
"routes": [{
"dst": "0.0.0.0/0"
}],
"gateway": "10.56.217.1"
}
logLevel: info
resourceName: intelnics
root@node1:~# kubectl get net-attach-def -n sriov-network-operator example -o yaml
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
annotations:
k8s.v1.cni.cncf.io/resourceName: openshift.io/intelnics
creationTimestamp: "2025-03-26T07:47:59Z"
generation: 1
name: example
namespace: sriov-network-operator
resourceVersion: "3883156"
uid: d15b3010-1abb-460e-9b5e-8e384650ad92
spec:
config: |-
{
"cniVersion": "1.0.0",
"name": "example",
"type": "sriov",
"vlan": 0,
"vlanQoS": 0,
"logLevel": "info",
"ipam": {
"type": "host-local",
"subnet": "10.56.217.0/24",
"rangeStart": "10.56.217.171",
"rangeEnd": "10.56.217.181",
"routes": [
{
"dst": "0.0.0.0/0"
}
],
"gateway": "10.56.217.1"
}
}`