Skip to content

Commit

Permalink
Optimize ClusterPolicy CRD size by removing unwanted fields and using…
Browse files Browse the repository at this point in the history
… common attributes
  • Loading branch information
shivamerla committed Jun 23, 2021
1 parent acde786 commit 4e4fd43
Show file tree
Hide file tree
Showing 17 changed files with 363 additions and 17,899 deletions.
198 changes: 16 additions & 182 deletions api/v1/clusterpolicy_types.go

Large diffs are not rendered by default.

185 changes: 20 additions & 165 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions assets/gpu-feature-discovery/0500_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ spec:
app: gpu-feature-discovery
app.kubernetes.io/part-of: nvidia-gpu
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.gpu-feature-discovery: "true"
serviceAccount: nvidia-gpu-feature-discovery
initContainers:
- name: toolkit-validation
Expand Down
6 changes: 2 additions & 4 deletions assets/state-container-toolkit/0400_container_toolkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ spec:
labels:
app: nvidia-container-toolkit-daemonset
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.container-toolkit: "true"
serviceAccount: nvidia-container-toolkit
hostPID: true
initContainers:
Expand Down
10 changes: 2 additions & 8 deletions assets/state-device-plugin/0400_device_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ spec:
labels:
app: nvidia-device-plugin-daemonset
spec:
tolerations:
# Allow this pod to be rescheduled while the node is in "critical add-ons only" mode.
# This, along with the annotation above marks this pod as a critical add-on.
- key: CriticalAddonsOnly
operator: Exists
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.device-plugin: "true"
serviceAccount: nvidia-device-plugin
initContainers:
- name: toolkit-validation
Expand Down
6 changes: 2 additions & 4 deletions assets/state-driver/0500_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ spec:
labels:
app: nvidia-driver-daemonset
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.driver: "true"
serviceAccount: nvidia-driver
serviceAccountName: nvidia-driver
hostPID: true
Expand Down
6 changes: 2 additions & 4 deletions assets/state-mig-manager/0600_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ spec:
labels:
app: nvidia-mig-manager
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.mig-manager: "true"
serviceAccount: nvidia-mig-manager
initContainers:
- name: toolkit-validation
Expand Down
6 changes: 2 additions & 4 deletions assets/state-monitoring/0900_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ spec:
labels:
app: nvidia-dcgm-exporter
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.dcgm-exporter: "true"
serviceAccount: nvidia-dcgm-exporter
serviceAccountName: nvidia-dcgm-exporter
initContainers:
Expand Down
6 changes: 2 additions & 4 deletions assets/state-operator-validation/0500_daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ spec:
app: nvidia-operator-validator
app.kubernetes.io/part-of: gpu-operator
spec:
tolerations:
- key: nvidia.com/gpu
operator: Exists
effect: NoSchedule
nodeSelector:
nvidia.com/gpu.deploy.operator-validator: "true"
serviceAccount: nvidia-operator-validator
initContainers:
- name: driver-validation
Expand Down
Loading

0 comments on commit 4e4fd43

Please sign in to comment.