Skip to content

Commit

Permalink
Fake nvidia's clusterpolicy CRD and gpu operator deployment (#63)
Browse files Browse the repository at this point in the history
* Add CRD and deployment YAML files for fake-gpu-operator

* .
  • Loading branch information
gshaibi authored Feb 28, 2024
1 parent fb484f1 commit 48fd4be
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
24 changes: 24 additions & 0 deletions deploy/fake-gpu-operator/crds/nvidia.com_clusterpolicies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusterpolicies.nvidia.com
spec:
group: nvidia.com
names:
kind: ClusterPolicy
listKind: ClusterPolicyList
plural: clusterpolicies
singular: clusterpolicy
scope: Cluster
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
subresources:
status: {}


27 changes: 27 additions & 0 deletions deploy/fake-gpu-operator/templates/gpu-operator/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gpu-operator
labels:
app: gpu-operator
spec:
selector:
matchLabels:
app: gpu-operator
component: gpu-operator
replicas: 0
template:
metadata:
labels:
app: gpu-operator
component: gpu-operator
spec:
containers:
- name: gpu-operator
image: ubuntu:22.04
args:
- sleep
- infinity
restartPolicy: Always
imagePullSecrets:
- name: gcr-secret

0 comments on commit 48fd4be

Please sign in to comment.