Skip to content

Commit

Permalink
Merge pull request #687 from tu1h/fix_noderesourcestopo_api
Browse files Browse the repository at this point in the history
Update api version and field for noderesourcetopology
  • Loading branch information
k8s-ci-robot authored Jan 5, 2024
2 parents c0a200b + fafdc9b commit d9c3dcc
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
8 changes: 7 additions & 1 deletion manifests/noderesourcetopology/worker-node-A.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: topology.node.k8s.io/v1alpha1
apiVersion: topology.node.k8s.io/v1alpha2
kind: NodeResourceTopology
metadata:
name: worker-node-a
Expand All @@ -11,21 +11,27 @@ zones:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 1
allocatable: 1
available: 1
- name: example.com/deviceB
capacity: 2
allocatable: 2
available: 2
- name: node-1
type: Node
resources:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 2
allocatable: 2
available: 2
- name: example.com/deviceB
capacity: 1
allocatable: 1
available: 1
6 changes: 5 additions & 1 deletion manifests/noderesourcetopology/worker-node-B.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: topology.node.k8s.io/v1alpha1
apiVersion: topology.node.k8s.io/v1alpha2
kind: NodeResourceTopology
metadata:
name: worker-node-b
Expand All @@ -11,15 +11,19 @@ zones:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 3
allocatable: 3
available: 3
- name: node-1
type: Node
resources:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceB
capacity: 3
allocatable: 3
available: 3
10 changes: 10 additions & 0 deletions pkg/noderesourcetopology/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,24 +197,30 @@ zones:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 1
allocatable: 1
available: 1
- name: example.com/deviceB
capacity: 2
allocatable: 2
available: 2
- name: numa-node-1
type: Node
resources:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 2
allocatable: 2
available: 2
- name: example.com/deviceB
capacity: 1
allocatable: 1
available: 1
```

```yaml
Expand All @@ -231,18 +237,22 @@ zones:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 3
allocatable: 3
available: 3
- name: numa-node-1
type: Node
resources:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceB
capacity: 3
allocatable: 3
available: 3
```

- Verify if the CRD has been created by running
Expand Down
10 changes: 10 additions & 0 deletions site/content/en/docs/plugins/noderesourcetopology.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,24 +195,30 @@ zones:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 1
allocatable: 1
available: 1
- name: example.com/deviceB
capacity: 2
allocatable: 2
available: 2
- name: numa-node-1
type: Node
resources:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 2
allocatable: 2
available: 2
- name: example.com/deviceB
capacity: 1
allocatable: 1
available: 1
```

```yaml
Expand All @@ -229,18 +235,22 @@ zones:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceA
capacity: 3
allocatable: 3
available: 3
- name: numa-node-1
type: Node
resources:
- name: cpu
capacity: 4
allocatable: 3
available: 3
- name: example.com/deviceB
capacity: 3
allocatable: 3
available: 3
```

- Verify if the CRD has been created by running
Expand Down

0 comments on commit d9c3dcc

Please sign in to comment.