Skip to content

Commit

Permalink
update sample deployment manifests
Browse files Browse the repository at this point in the history
This update corrects the resource references that match with existing configMap.
Also fixes a problem where Network Status not being populated due to cniVersion was missing
for sriov network CRD.

Change-Id: I2ef7104ec3b94627698eb21b0708a79adcce7f59
  • Loading branch information
ahalimx86 authored and zshi-redhat committed Aug 26, 2019
1 parent ea11747 commit de334c5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
4 changes: 2 additions & 2 deletions deployments/pod-tc1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spec:
args: [ "while true; do sleep 300000; done;" ]
resources:
requests:
intel.com/sriov: '1'
intel.com/intel_sriov_netdevice: '1'
limits:
intel.com/sriov: '1'
intel.com/intel_sriov_netdevice: '1'
4 changes: 2 additions & 2 deletions deployments/pod-tc2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spec:
args: [ "while true; do sleep 300000; done;" ]
resources:
requests:
intel.com/sriov: '1'
intel.com/intel_sriov_netdevice: '1'
limits:
intel.com/sriov: '1'
intel.com/intel_sriov_netdevice: '1'
18 changes: 0 additions & 18 deletions deployments/pod-tc3.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion deployments/sriov-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ kind: NetworkAttachmentDefinition
metadata:
name: sriov-net1
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/sriov
k8s.v1.cni.cncf.io/resourceName: intel.com/intel_sriov_netdevice
spec:
config: '{
"type": "sriov",
"cniVersion": "0.3.1",
"name": "sriov-network",
"ipam": {
"type": "host-local",
Expand Down

0 comments on commit de334c5

Please sign in to comment.