diff --git a/deploy/fake-gpu-operator/crds/nvidia.com_clusterpolicies.yaml b/deploy/fake-gpu-operator/crds/nvidia.com_clusterpolicies.yaml new file mode 100644 index 0000000..02652ef --- /dev/null +++ b/deploy/fake-gpu-operator/crds/nvidia.com_clusterpolicies.yaml @@ -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: {} + + diff --git a/deploy/fake-gpu-operator/templates/gpu-operator/deployment.yml b/deploy/fake-gpu-operator/templates/gpu-operator/deployment.yml new file mode 100644 index 0000000..a32190c --- /dev/null +++ b/deploy/fake-gpu-operator/templates/gpu-operator/deployment.yml @@ -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